Template:Itemvar: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>* {{#switch:{{{t}}}|m={{#if:{{{a|}}}|{{#arraymap:{{{a}}}|+|@@@@|[[uses material::@@@@| ]]|}}|{{#arraymap:{{{1}}}|+|@@@@|[[uses material::@@@@| ]]|}}}}{{{1}}}|s={{#if:{{{a|}}}|{{#arraymap:{{{a}}}|+|@@@@|[[uses symbol::@@@@| ]]|}}|{{#arraymap:{{{1}}}|+|@@@@|[[uses symbol::@@@@| ]]|}}}}{{{1}}}|c={{#if:{{{a|}}}|{{#arraymap:{{{a}}}|+|@@@@|[[uses color::@@@@| ]]|}}|{{#arraymap:{{{1}}}|+|@@@@|[[uses color::@@@@| ]]|}}}}{{{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.
<includeonly>* {{#switch:{{{t}}}|m={{#if:{{{a|}}}|{{#arraymap:{{{a}}}|+|@@@@|[[uses material::@@@@| ]]|}}|{{#arraymap:{{{1}}}|+|@@@@|[[uses material::@@@@| ]]|}}}}{{{1}}}|s={{#if:{{{a|}}}|{{#arraymap:{{{a}}}|+|@@@@|[[uses symbol::@@@@| ]]|}}|{{#arraymap:{{{1}}}|+|@@@@|[[uses symbol::@@@@| ]]|}}}}{{{1}}}|c={{#if:{{{a|}}}|{{#arraymap:{{{a}}}|+|@@@@|[[uses color::@@@@| ]]|}}|{{#arraymap:{{{1}}}|+|@@@@|[[uses color::@@@@| ]]|}}}}{{{1}}}|{{{1}}}}} {{#if:{{{2|}}}| ({{{2}}})|}}{{#if:{{{3|}}}| at [[{{{3}}}]] only.}}{{#if:{{{c|}}}|{{#arraymap:{{{c}}}|+|@@@@|[[uses color::@@@@| ]]|}}}}</includeonly><noinclude>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
<pre>{{itemvar | t= | <variant appearance> | <change in cost> (optional) | <limits to availability> (optional)</pre>
| t=<m/c/s> for material/color/symbol tagging (optional)
| <variant appearance>
| <change in cost> (optional)
| <limits to availability> (optional)
| c=<color> for combination with materials (optional)
}}</pre>


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

Latest revision as of 16:58, 23 June 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=<m/c/s> for material/color/symbol tagging (optional)
| <variant appearance> 
| <change in cost> (optional) 
| <limits to availability> (optional)
| c=<color> for combination with materials (optional)
}}

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