Dicemonger (talk | contribs) mNo edit summary |
Dicemonger (talk | contribs) mNo edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params:Category|SubCategory|Rarity|Level|Price_Gp|Price_Sp|Price_Cp|Bulk|Short|Description}} | {{#template_params:Category|SubCategory|Rarity|Level|Price_Gp|Price_Sp|Price_Cp|Bulk|Short|Description|Traits}} | ||
{{#cargo_declare:_table=Equipment|Name=String|Category=String|SubCategory=String|Rarity=String|Level=Integer|Price_Gp=Integer|Price_Sp=Integer|Price_Cp=Integer|Price=String|Bulk=String|Short=String|Description=WikiText|Image=String}} | {{#cargo_declare:_table=Equipment|Name=String|Category=String|SubCategory=String|Rarity=String|Level=Integer|Price_Gp=Integer|Price_Sp=Integer|Price_Cp=Integer|Price=String|Bulk=String|Short=String|Description=WikiText|Traits=List (,) of String|Image=String}} | ||
</noinclude><includeonly>{{#cargo_store:_table=Equipment|Name={{SUBPAGENAME}}|Price={{#if:{{{Price_Gp|}}}|{{{Price_Gp}}} gp|{{#if:{{{Price_Sp|}}}|{{{Price_Sp}}} sp|{{#if:{{{Price_Cp|}}}|{{{Price_Cp}}} cp|{{{Cost|—}}}}}}}}}}} | </noinclude><includeonly>{{#cargo_store:_table=Equipment|Name={{SUBPAGENAME}}|Price={{#if:{{{Price_Gp|}}}|{{{Price_Gp}}} gp|{{#if:{{{Price_Sp|}}}|{{{Price_Sp}}} sp|{{#if:{{{Price_Cp|}}}|{{{Price_Cp}}} cp|{{{Cost|—}}}}}}}}}}} | ||
<yambe | {{DISPLAYTITLE:{{SUBPAGENAME}}}}<div id="yambe" class="noprint">[[Main Page|Front Page]] > [[Equipment]] > {{SUBPAGENAME}}</div><!-- | ||
-->{{#if:{{{Image|}}}|[[{{{Image}}}|200px|thumb|right]]}}<!-- | -->{{#if:{{{Image|}}}|[[{{{Image}}}|200px|thumb|right]]}}<!-- | ||
Line 11: | Line 11: | ||
! {{#ifeq:{{{Rarity|}}}|Common||Rarity !!}} {{#if:{{{Level|}}}|Level !!}} Price !! Bulk | ! {{#ifeq:{{{Rarity|}}}|Common||Rarity !!}} {{#if:{{{Level|}}}|Level !!}} Price !! Bulk | ||
|- | |- | ||
| {{#ifeq:{{{Rarity|}}}|Common||{{{Rarity}} {{#!:||}}}} {{#if:{{{Level|}}}|{{{Level}}} {{#!:||}}}} {{#if:{{{Price_Gp|}}}|{{{Price_Gp}}} gp|{{#if:{{{Price_Sp|}}}|{{{Price_Sp}}} sp|{{#if:{{{Price_Cp|}}}|{{{Price_Cp}}} cp|{{{Cost|—}}}}}}}}} || {{{Bulk|—}}} | | {{#ifeq:{{{Rarity|}}}|Common||{{{Rarity}}} {{#!:||}}}} {{#if:{{{Level|}}}|{{{Level}}} {{#!:||}}}} {{#if:{{{Price_Gp|}}}|{{{Price_Gp}}} gp|{{#if:{{{Price_Sp|}}}|{{{Price_Sp}}} sp|{{#if:{{{Price_Cp|}}}|{{{Price_Cp}}} cp|{{{Cost|—}}}}}}}}} || {{{Bulk|—}}} | ||
|}}} | |}}} | ||
{{{Description|}}} | {{{Description|}}} | ||
{{#if:{{{Traits|}}}|<h4>Traits</h4> | |||
{{#arraymap:{{{Traits}}}|,|x|{{#cargo_query:tables=Equipment_Traits|fields=Name,Description|where=Name="x"|format=template|template=Equipment_Traits|named args=yes}}|<br>}}}} | |||
[[Category:Equipment]] | [[Category:Equipment]] | ||
</includeonly> | </includeonly> |
Latest revision as of 13:26, 16 June 2023
This is the "Equipment Item" template.
It should be called in the following format:
{{Equipment Item |Category= |SubCategory= |Rarity= |Level= |Price_Gp= |Price_Sp= |Price_Cp= |Bulk= |Short= |Description= |Traits= }}
Edit the page to see the template text.
This template defines the table "Equipment". View table.