Difference between revisions of "Template:Value list"
Dinoguy1000 (talk | contribs) (I don't see why we can't do this (and play a bit with the whitespace)) |
Dinoguy1000 (talk | contribs) (hcomma should be used instead of this now) |
||
Line 2: | Line 2: | ||
#if: {{{1|}}} | #if: {{{1|}}} | ||
| {{IfSemantics | | {{IfSemantics | ||
− | |{{#arraymap: | + | |{{#arraymap:* {{{1}}} |
− | + | |* | |
|$list_item | |$list_item | ||
− | + | |* [[{{{2}}}::{{ | |
#ifeq: {{ #sub: $list_item || 1 }} | [ | #ifeq: {{ #sub: $list_item || 1 }} | [ | ||
| {{ #explode: {{ #sub: $list_item | 2 | -2 }} | {{!}} }} | | {{ #explode: {{ #sub: $list_item | 2 | -2 }} | {{!}} }} | ||
| {{ #explode: $list_item | <ref }} | | {{ #explode: $list_item | <ref }} | ||
}}| ]]$list_item | }}| ]]$list_item | ||
− | + | |\n | |
}} | }} | ||
|{{{1}}} | |{{{1}}} |
Revision as of 02:51, 1 January 2013
{{Value list}}
is used to apply properties to a list of values in link bracketed bulleted list format, without worrying about references or piped links.
Whether the list appears linked or not depends on the property type.
Usage
{{Value list|list of values|property to apply}}
Example
{{Value list| * [[Blue-Eyes White Dragon]] * [[Obelisk the Tormentor (original)|Obelisk the Tormentor]] * [[Luster Dragon 2|Luster Dragon #2]]<ref group="Note">Only in the anime</ref> |Cards used }}
becomes...
* [[Blue-Eyes White Dragon]][[Cards used::Blue-Eyes White Dragon| ]] * [[Obelisk the Tormentor (original)|Obelisk the Tormentor]][[Cards used::Obelisk the Tormentor (original)| ]] * [[Luster Dragon 2|Luster Dragon #2]][Note 1][[Cards used::Luster Dragon 2| ]]
Notes
- ↑ Only in the anime
This is typically used in templates. e.g. {{Value list|{{{cards}}}|Cards used}}
allows a bulleted list of cards to be added after |cards =