Template:Inventory: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(replaced with Test version) |
||
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}}}}}<div class="qud-inventory-item">{{favilink|{{{1}}}}} <span class="qud-item-qty">x{{{2|1}}}</span></div></includeonly><noinclude> | ||
<includeonly>{{#cargo_store:_table=Inventory|Item={{{1|}}}|Quantity={{{2|1}}}|Equipped={{{3|yes}}}}}< | |||
Template for inventory items that a Character is carrying. Meant for use in the <code>Character</code> template. | |||
{| class="wikitable" | {| class="wikitable" | ||
! 1st argument | ! 1st argument | ||
| item name. use string, it will | | item name. use string, it will turn it into a link using [[Template:favilink]]. | ||
|- | |- | ||
! 2nd argument | ! 2nd argument | ||
| quantity. defaults to 1 | | quantity. defaults to 1 | ||
|- | |- | ||
! 3rd | ! 3rd argument | ||
| | | is the item equipped? Enter <code>yes</code> here to indicate that the item is equipped (used for Cargo storage). | ||
|}</noinclude> | |} | ||
===Examples=== | |||
<code><nowiki>{{inventory|hypertractor}}</nowiki></code> | |||
Character is carrying 1 hypertractor that is not equipped. | |||
<code><nowiki>{{inventory|ulnar stimulators|2}}</nowiki></code> | |||
Character is carrying 2 ulnar stimulators that are not equipped. | |||
<code><nowiki>{{inventory|laser pistol|2|equipped}}</nowiki></code> | |||
Character is carrying 2 laser pistols that are both equipped. | |||
</noinclude> |
Revision as of 18:53, 12 August 2019
This template defines the table "Inventory". View table.
Template for inventory items that a Character is carrying. Meant for use in the Character
template.
1st argument | item name. use string, it will turn it into a link using Template:favilink. |
---|---|
2nd argument | quantity. defaults to 1 |
3rd argument | is the item equipped? Enter yes here to indicate that the item is equipped (used for Cargo storage).
|
Examples
{{inventory|hypertractor}}
Character is carrying 1 hypertractor that is not equipped.
{{inventory|ulnar stimulators|2}}
Character is carrying 2 ulnar stimulators that are not equipped.
{{inventory|laser pistol|2|equipped}}
Character is carrying 2 laser pistols that are both equipped.