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)
(prettify output code a bit (this is mainly to benefit the documentation; I don't think it'll affect anything else but could be wrong))
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{
+
{{ #if: {{{1|}}}
  #if: {{{1|}}}
+
   | {{ #arraydefine: @vl_list | {{{1}}} | * }}{{ #arraysearcharray: @vl_list | @vl_list | /.+/ }}{{ #ifeq: {{ #arraysize: @vl_list }} | 1
   | {{IfSemantics
+
    | {{ #arrayprint: @vl_list || $list_item | $list_item[[{{ #if: 1 | {{{2}}} }}::{{unlink|{{ #explode: $list_item | &lt;ref }}}}| ]] }}
    |{{#arraymap:{{ #if: {{{3|}}} || * }} {{{1}}}
+
    | {{ #arrayprint: @vl_list || $list_item | <nowiki/>
      |{{{3|*}}}
+
* $list_item[[{{ #if: 1 | {{{2}}} }}::{{unlink|{{ #explode: $list_item | &lt;ref }}}}| ]]
      |$list_item
+
     }}
      |{{ #if: {{{3|}}} || * }} {{ #ifeq: {{ #sub: $list_item || 1 }} | [
 
        | [[{{{2}}}::{{ #explode: {{ #sub: $list_item | 2 | -2 }} | {{!}} }}| ]]
 
        | [[{{{2}}}::{{ #explode: $list_item | &lt;ref }}| ]]
 
        }}$list_item
 
      |{{ #if: {{{3|}}} | {{{3}}}&#32; | \n }}
 
    }}
 
     |{{{1}}}
 
 
   }}
 
   }}
}}</includeonly><noinclude>
+
}}<noinclude>
  
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 22:36, 14 December 2019