Difference between revisions of "Template:Value list"

From Yugipedia
Jump to: navigation, search
(don't bother with any of this if {{{1}}} is empty or undefined)
(I don't see why we can't do this (and play a bit with the whitespace))
Line 5: Line 5:
 
       |{{{3|*}}}
 
       |{{{3|*}}}
 
       |$list_item
 
       |$list_item
       |{{ #if: {{{3|}}} || * }} {{ #ifeq: {{ #sub: $list_item || 1 }} | [  
+
       |{{ #if: {{{3|}}} || * }} [[{{{2}}}::{{
         | [[{{{2}}}::{{ #explode: {{ #sub: $list_item | 2 | -2 }} | {{!}} }}| ]]
+
        #ifeq: {{ #sub: $list_item || 1 }} | [  
         | [[{{{2}}}::{{ #explode: $list_item | <ref }}| ]]
+
         | {{ #explode: {{ #sub: $list_item | 2 | -2 }} | {{!}}   }}
         }}$list_item
+
         | {{ #explode:         $list_item             | <ref }}
 +
         }}| ]]$list_item
 
       |{{ #if: {{{3|}}} | {{{3}}}  | \n }}
 
       |{{ #if: {{{3|}}} | {{{3}}}  | \n }}
 
     }}
 
     }}

Revision as of 20:10, 26 November 2012