Template:Itemvar: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
(test for adding tags automatically)
Line 1: Line 1:
<includeonly>* {{{1}}} {{#if:{{{2|}}}| ({{{2}}})|}}{{#if:{{{3|}}}| at [[{{{3}}}]] only.}}</includeonly><noinclude>
<includeonly>* {{#switch:{{{t}}}|m=[[uses material::{{{1}}}]]{{{1}}}|s=[[uses symbol::{{{1}}}]]{{{1}}}|c=[[uses color::{{{1}}}]]{{{1}}}|{{{1}}}}} {{#if:{{{2|}}}| ({{{2}}})|}}{{#if:{{{3|}}}| at [[{{{3}}}]] only.}}</includeonly><noinclude>
This is a plug in for items so that general items, such as a ring, can have variant metals and gems listed.
This is a plug in for items so that general items, such as a ring, can have variant metals and gems listed.


==Usage Documentation==
==Usage Documentation==
<pre>{{itemvar | (variant appearance) | (change in cost, optional) | (limits to availability, optional)</pre>
<pre>{{itemvar | t= | <variant appearance> | <change in cost> (optional) | <limits to availability> (optional)</pre>

[[Category:Templates|{{PAGENAME}}]][[category:Templates for Templates|{{PAGENAME}}]]</noinclude>
The "t" variable is used to set the material (m), color (c), and symbol (s) tags.
{{cat|Templates,Templates for Templates}}</noinclude>

Revision as of 04:10, 19 May 2013

This is a plug in for items so that general items, such as a ring, can have variant metals and gems listed.

Usage Documentation

{{itemvar | t= | <variant appearance> | <change in cost> (optional) | <limits to availability> (optional)

The "t" variable is used to set the material (m), color (c), and symbol (s) tags.