Difference between revisions of "Template:Value list"

From Yugipedia
Jump to: navigation, search
(Giving this variable a more meaningful name.)
(don't bother with any of this if {{{1}}} is empty or undefined)
Line 1: Line 1:
<includeonly>{{IfSemantics
+
<includeonly>{{
  |{{#arraymap:{{ #if: {{{3|}}} || * }} {{{1}}}
+
  #if: {{{1|}}}
    |{{{3|*}}}
+
  | {{IfSemantics
    |$list_item
+
    |{{#arraymap:{{ #if: {{{3|}}} || * }} {{{1}}}
    |{{ #if: {{{3|}}} || * }} {{ #ifeq: {{ #sub: $list_item || 1 }} | [  
+
      |{{{3|*}}}
      | [[{{{2}}}::{{#explode: {{ #sub: $list_item | 2 | -2 }} | {{!}} }}| ]]
+
      |$list_item
      | [[{{{2}}}::{{#explode: $list_item | &lt;ref }}| ]]
+
      |{{ #if: {{{3|}}} || * }} {{ #ifeq: {{ #sub: $list_item || 1 }} | [  
      }}$list_item
+
        | [[{{{2}}}::{{ #explode: {{ #sub: $list_item | 2 | -2 }} | {{!}} }}| ]]
    |{{ #if: {{{3|}}} | {{{3}}}&#32; | \n }}
+
        | [[{{{2}}}::{{ #explode: $list_item | &lt;ref }}| ]]
  }}
+
        }}$list_item
  |{{{1}}}
+
      |{{ #if: {{{3|}}} | {{{3}}}&#32; | \n }}
 +
    }}
 +
    |{{{1}}}
 +
  }}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
  
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 20:06, 26 November 2012