Difference between revisions of "Template:Value list"

From Yugipedia
Jump to: navigation, search
(Created page with "<includeonly>{{#arraymap:* {{{1}}} |* |$x$ |* [[{{{2}}}::{{#sub:$x$|2|-2}}]]{{#negref:$x$|$y$|$ref$|$ref$}} |\n }}</includeonly><noinclude> {{documentation}}</noinclude>")
 
(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))
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#arraymap:* {{{1}}}
+
{{ #if: {{{1|}}}
   |*
+
   | {{ #arraydefine: @vl_list | {{{1}}} | * }}{{ #arraysearcharray: @vl_list | @vl_list | /.+/ }}{{ #ifeq: {{ #arraysize: @vl_list }} | 1
  |$x$
+
    | {{ #arrayprint: @vl_list || $list_item | $list_item[[{{ #if: 1 | {{{2}}} }}::{{unlink|{{ #explode: $list_item | &lt;ref }}}}| ]] }}
  |* [[{{{2}}}::{{#sub:$x$|2|-2}}]]{{#negref:$x$|$y$|$ref$|$ref$}}
+
    | {{ #arrayprint: @vl_list || $list_item | <nowiki/>
   |\n
+
* $list_item[[{{ #if: 1 | {{{2}}} }}::{{unlink|{{ #explode: $list_item | &lt;ref }}}}| ]]
}}</includeonly><noinclude>
+
    }}
 +
   }}
 +
}}<noinclude>
  
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 22:36, 14 December 2019