Difference between revisions of "Template:Value list/doc"

From Yugipedia
Jump to: navigation, search
m (Example)
(this hasn't been the case since 2013 (though maybe there's an argument for reintroducing a third parameter to change the list type? at least, it hasn't come up anywhere I'm aware of))
 
(7 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
* [[Blue-Eyes White Dragon]]
 
* [[Blue-Eyes White Dragon]]
 
* [[Obelisk the Tormentor (original)|Obelisk the Tormentor]]
 
* [[Obelisk the Tormentor (original)|Obelisk the Tormentor]]
* [[Luster Dragon 2|Luster Dragon #2]]<ref group=Note>Only in the anime</ref>
+
* [[Luster Dragon 2|Luster Dragon #2]]<ref group="Note">Only in the anime</ref>
 
|Cards used
 
|Cards used
 
}}</pre>
 
}}</pre>
Line 18: Line 18:
 
becomes...
 
becomes...
  
<pre>
+
{{ #tag: pre |
* [[Cards used::Blue-Eyes White Dragon]]
+
{{Value list|
* [[Cards used::Obelisk the Tormentor (original)|Obelisk the Tormentor]]
+
* [[Blue-Eyes White Dragon]]
* [[Cards used::Luster Dragon 2|Luster Dragon #2]]<ref group=Note>Only in the anime</ref>
+
* [[Obelisk the Tormentor (original)|Obelisk the Tormentor]]
</pre>
+
* [[Luster Dragon 2|Luster Dragon #2]]<ref group="Note">Only in the anime</ref>
 +
|Cards used
 +
}}
 +
}}
 +
====Notes====
 +
<references group="Note" />
  
This is typically used in templates. e.g. <code>{{tlx|Value list|<nowiki>{{{cards}}}</nowiki>|Cards used}}</code> allows a bulleted list of cards to be added after <code><nowiki>|cards = </nowiki></code>
+
This is typically used in templates. e.g. {{tlx|Value list|<nowiki>{{{cards}}}</nowiki>|Cards used}} allows a bulleted list of cards to be added after <code><nowiki>|cards = </nowiki></code>
  
 
<includeonly>
 
<includeonly>
[[Category:Templates|{{PAGENAME}}]]
+
[[Category:Property templates]]
 
</includeonly>
 
</includeonly>

Latest revision as of 23:00, 14 December 2019

{{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[edit]

{{Value list|list of values|property to apply}}

Example[edit]

{{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[edit]

  1. 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 =