Jump to content

Template:Germany HR Infobox: Difference between revisions

Added code to add category if more than one CID is connected to article
mNo edit summary
(Added code to add category if more than one CID is connected to article)
Line 3: Line 3:
|colspan="2" style="color:#FFFFFF; background:#85B807; text-align:center; font-size:16pt" |'''Access the Records'''
|colspan="2" style="color:#FFFFFF; background:#85B807; text-align:center; font-size:16pt" |'''Access the Records'''
|-
|-
| colspan="2" style="vertical-align: middle" | {{#ifeq:{{{scheduled|}}}|{{{scheduled|yes}}}| | <div align="center"> '''{{{category|[[Category:FamilySearch Historical Records Published Collections|{{PAGENAME}}]]}}} {{RecordSearch|{{#replace:{{{CID|}}}|CID|}}|{{{title|}}}|access={{{access}}}}}''' {{#if: {{{CID3|}}}|,}}{{#if: {{{CID2{{{CID3|}}}|}}}|&nbsp;and}}{{#if: {{{CID2|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID2|}}}|CID|}}|{{{title2|}}}|access={{{access}}}}}'''}}{{#if: {{{CID3|}}}|,}}{{#if: {{{CID3{{{CID4|}}}|}}}|&nbsp;and}}{{#if: {{{CID3|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID3|}}}|CID|}}|{{{title3|}}}|access={{{access}}}}}'''}}{{#if: {{{CID4|}}}|,}}{{#if: {{{CID4{{{CID5|}}}|}}}|&nbsp;and}}{{#if: {{{CID4|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID4|}}}|CID|}}|{{{title4|}}}|access={{{access}}}}}'''}}{{#if: {{{CID5|}}}|,}}{{#if: {{{CID5{{{CID6|}}}|}}}|&nbsp;and}}{{#if: {{{CID5|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID5|}}}|CID|}}|{{{title5|}}}|access={{{access}}}}}'''}}{{#if: {{{CID6|}}}|,}}{{#if: {{{CID6{{{CID7|}}}|}}}|&nbsp;and}}{{#if: {{{CID6|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID6|}}}|CID|}}|{{{title6|}}}|access={{{access}}}}}'''}}{{#if: {{{CID7|}}}|,}}{{#if: {{{CID7{{{CID8|}}}|}}}|&nbsp;and}}{{#if: {{{CID7|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID7|}}}|CID|}}|{{{title7|}}}|access={{{access}}}}}'''}}{{#if: {{{CID8|}}}|,}}{{#if: {{{CID8{{{CID9|}}}|}}}|&nbsp;and}}{{#if: {{{CID8|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID8|}}}|CID|}}|{{{title8|}}}|access={{{access}}}}}'''}}{{#if: {{{CID9|}}}|,&nbsp;and&nbsp;'''{{RecordSearch|{{#replace:{{{CID9|}}}|CID|}}|{{{title9|}}}|access={{{access}}}}}'''}} }}<div></div>
| colspan="2" style="vertical-align: middle" | {{#ifeq:{{{scheduled|}}}|{{{scheduled|yes}}}| | <div align="center"> '''{{{category|[[Category:FamilySearch Historical Records Published Collections|{{PAGENAME}}]]}}} {{RecordSearch|{{#replace:{{{CID|}}}|CID|}}|{{{title|}}}|access={{{access}}}}}''' {{#if: {{{CID3|}}}|,}}{{#if: {{{CID2{{{CID3|}}}|}}}|&nbsp;and}}{{#if: {{{CID2|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID2|}}}|CID|}}|{{{title2|}}}|access={{{access}}}}}'''}}{{#if: {{{CID3|}}}|,}}{{#if: {{{CID3{{{CID4|}}}|}}}|&nbsp;and}}{{#if: {{{CID3|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID3|}}}|CID|}}|{{{title3|}}}|access={{{access}}}}}'''}}{{#if: {{{CID4|}}}|,}}{{#if: {{{CID4{{{CID5|}}}|}}}|&nbsp;and}}{{#if: {{{CID4|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID4|}}}|CID|}}|{{{title4|}}}|access={{{access}}}}}'''}}{{#if: {{{CID5|}}}|,}}{{#if: {{{CID5{{{CID6|}}}|}}}|&nbsp;and}}{{#if: {{{CID5|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID5|}}}|CID|}}|{{{title5|}}}|access={{{access}}}}}'''}}{{#if: {{{CID6|}}}|,}}{{#if: {{{CID6{{{CID7|}}}|}}}|&nbsp;and}}{{#if: {{{CID6|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID6|}}}|CID|}}|{{{title6|}}}|access={{{access}}}}}'''}}{{#if: {{{CID7|}}}|,}}{{#if: {{{CID7{{{CID8|}}}|}}}|&nbsp;and}}{{#if: {{{CID7|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID7|}}}|CID|}}|{{{title7|}}}|access={{{access}}}}}'''}}{{#if: {{{CID8|}}}|,}}{{#if: {{{CID8{{{CID9|}}}|}}}|&nbsp;and}}{{#if: {{{CID8|}}}|&nbsp;'''{{RecordSearch|{{#replace:{{{CID8|}}}|CID|}}|{{{title8|}}}|access={{{access}}}}}'''}}{{#if: {{{CID9|}}}|,&nbsp;and&nbsp;'''{{RecordSearch|{{#replace:{{{CID9|}}}|CID|}}|{{{title9|}}}|access={{{access}}}}}'''}} }}
{{#if:{{{CID2|}}}|{{{category|[[Category:FamilySearch Historical Records Articles for Multiple Collections]]}}}| }}<div></div>
<div style="display: none">{{{CID}}}</div>
<div style="display: none">{{{CID}}}</div>
<div style="display: none">{{{CID2}}} </div>
<div style="display: none">{{{CID2}}} </div>