Template:Counterparts: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
I see what the issue was: when {{{1}}} wasn't being set with the intent of having the template use {{{name}}}, the loop was skipping over {{{1}}} entirely and so completely missing the code for it. The code for 1 is now a special case before the loop
m (missed this bracket in my last edit)
(I see what the issue was: when {{{1}}} wasn't being set with the intent of having the template use {{{name}}}, the loop was skipping over {{{1}}} entirely and so completely missing the code for it. The code for 1 is now a special case before the loop)
Line 1: Line 1:
<infobox theme="infobox">
<infobox theme="infobox">
         <header><center><small>Alternate counterparts of</small><br/>[[{{{name|{{PAGENAME}}}}}|{{{dname|{{da smw|{{{name|{{PAGENAME}}}}}}}}}}]]</center></header>
         <header><center><small>Alternate counterparts of</small><br/>[[{{{name|{{PAGENAME}}}}}|{{{dname|{{da smw|{{{name|{{PAGENAME}}}}}}}}}}]]</center></header>
         <navigation><center style="font-weight:500"><!--loops through all numbered arguments: {{{1}}}, {{{2}}}, etc-->{{#fornumargs: num <!--the number of the argument for the current iteration-->
         <navigation><center style="font-weight:500">[[{{{1|{{{name|}}}}}}|{{{d1|The Doctor's universe}}}]]<!--loops through all numbered arguments: {{{1}}}, {{{2}}}, etc-->{{#fornumargs: num <!--the number of the argument for the current iteration-->
  | value <!--the value of the argument-->
  | value <!--the value of the argument-->
  |{{#ifeq:{{#var:num}}|1|[[{{#var:value|{{{name|}}}}}|{{{d{{#var:num}}|The Doctor's universe}}}]]|<nowiki/> • [[{{#var:value}}|{{{d{{#var:num}}|{{gd|{{#var:value}}}}}}}]]}}
  |{{#ifeq:{{#var:num}}|1||<nowiki/> • [[{{#var:value}}|{{{d{{#var:num}}|{{gd|{{#var:value}}}}}}}]]}}
}}</center></navigation></infobox><noinclude>{{Documentation}}[[Category:Parallel counterpart infoboxes| ]]</noinclude>
}}</center></navigation></infobox><noinclude>{{Documentation}}[[Category:Parallel counterpart infoboxes| ]]</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.