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

From Yugipedia
Jump to: navigation, search
m (While not mandatory on Wikia, it's good practice to include these quotation marks.)
(document changing the delimited)
Line 3: Line 3:
  
 
Whether the list appears linked or not depends on the property type.
 
Whether the list appears linked or not depends on the property type.
 +
 +
An optional third parameter can be used to change the bullets to a different character.
  
 
===Usage===
 
===Usage===
Line 23: Line 25:
 
* [[Cards used::Luster Dragon 2|Luster Dragon #2]]<ref group="Note">Only in the anime</ref>
 
* [[Cards used::Luster Dragon 2|Luster Dragon #2]]<ref group="Note">Only in the anime</ref>
 
</pre>
 
</pre>
 +
 +
<pre>{{Value list|[[Red]], [[green]], [[blue]]|Color|,}}</pre>
 +
 +
becomes...
 +
 +
<pre>[[Color::Red]], [[Color::green]], [[Color::blue]]</pre>
  
 
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. <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>

Revision as of 02:51, 3 September 2012

{{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.

An optional third parameter can be used to change the bullets to a different character.

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

* [[Cards used::Blue-Eyes White Dragon]]
* [[Cards used::Obelisk the Tormentor (original)|Obelisk the Tormentor]]
* [[Cards used::Luster Dragon 2|Luster Dragon #2]]<ref group="Note">Only in the anime</ref>
{{Value list|[[Red]], [[green]], [[blue]]|Color|,}}

becomes...

[[Color::Red]], [[Color::green]], [[Color::blue]]

This is typically used in templates. e.g. {{Value list|{{{cards}}}|Cards used}} allows a bulleted list of cards to be added after |cards =