Template:Inventory: Difference between revisions
Jump to navigation
Jump to search
m (store id to page) |
(replaced with module. will throw an inventory error if the page isn't updated with the most recent QBE) |
||
Line 1: | Line 1: | ||
<noinclude>{{#cargo_declare:_table=Inventory|Item=String|Quantity=String|Equipped=Boolean|Chance=Integer}}[[Category:Cargo Store Templates]]</noinclude><includeonly>{{#cargo_store:_table=Inventory|Item={{ID to page|{{{1|}}}}}|Quantity={{{2|1}}}|Equipped={{{3|no}}}|Chance={{{4|100}}}}} | <noinclude>{{#cargo_declare:_table=Inventory|Item=String|Quantity=String|Equipped=Boolean|Chance=Integer}}[[Category:Cargo Store Templates]]</noinclude><includeonly>{{#cargo_store:_table=Inventory|Item={{ID to page|{{{1|}}}}}|Quantity={{{2|1}}}|Equipped={{{3|no}}}|Chance={{{4|100}}}}}{{#invoke:Inventory| main |{{{1|}}}|{{{2|1}}}|{{{3|no}}}|{{{4|100}}}}}</includeonly><noinclude> | ||
}} | |||
} | |||
Template for inventory items that a Character is carrying. Meant for use in the <code>Character</code> template. | Template for inventory items that a Character is carrying. Meant for use in the <code>Character</code> template. |
Revision as of 16:33, 19 September 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).
|
4th argument | percent chance that the item will be in the character's inventory. 100 by default. |
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|yes}}
Character is carrying 2 laser pistols that are both equipped.
{{inventory|electrobow|1|no|20}}
Character has a 20% chance to be carrying 1 electrobow, which is not equipped.