Template:Inventory: Difference between revisions
Jump to navigation
Jump to search
(replaced third argument with an equipped boolean. added doc table) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{#cargo_declare:_table=Inventory|Item=String|Quantity=Integer|Equipped=Boolean}}[[Category:Templates]]</noinclude> | <noinclude>{{#cargo_declare:_table=Inventory|Item=String|Quantity=Integer|Equipped=Boolean}}[[Category:Templates]]</noinclude> | ||
<includeonly>{{#cargo_store:_table=Inventory|Item={{{1|}}}|Quantity={{{2|1}}}|Equipped={{{3|yes}}}}}<p>[[{{{1}}}]]x{{{2|1}}} {{#ifeq:{{{3|yes}}} | yes | {{color | y |(equipped)}} }}</p></includeonly><noinclude> | <includeonly>{{#cargo_store:_table=Inventory|Item={{{1|}}}|Quantity={{{2|1}}}|Equipped={{{3|yes}}}}}<p>[[{{{1}}}]] x{{{2|1}}} {{#ifeq:{{{3|yes}}} | yes | {{color | y |(equipped)}} }}</p></includeonly><noinclude> | ||
{| class="wikitable" | {| class="wikitable" | ||
! 1st argument | ! 1st argument |
Revision as of 15:35, 26 July 2019
This template defines the table "Inventory". View table.
1st argument | item name. use string, it will auto link |
---|---|
2nd argument | quantity. defaults to 1 |
3rd agument | if the item is equipped. defaults to yes |