Template:Inventory: Difference between revisions
Jump to navigation
Jump to search
(add displayname-tooltip-override) |
(add chance parameter & cargo column) |
||
Line 1: | Line 1: | ||
<noinclude>{{#cargo_declare:_table=Inventory|Item=String|Quantity=Integer|Equipped=Boolean}}[[Category:Cargo Store Templates]]</noinclude><includeonly>{{#cargo_store:_table=Inventory|Item={{{1|}}}|Quantity={{{2|1}}}|Equipped={{{3|no}}}}}<div class="qud-inventory-item">{{favilink|{{{1}}}|displayname-tooltip-override}} <span class="qud-item-qty">x{{{2|1}}}</span></div></includeonly><noinclude> | <noinclude>{{#cargo_declare:_table=Inventory|Item=String|Quantity=Integer|Equipped=Boolean|Chance=Integer}}[[Category:Cargo Store Templates]]</noinclude><includeonly>{{#cargo_store:_table=Inventory|Item={{{1|}}}|Quantity={{{2|1}}}|Equipped={{{3|no}}}|Chance={{{4|100}}}}}<div class="qud-inventory-item">{{favilink|{{{1}}}|displayname-tooltip-override}} <span class="qud-item-qty">x{{{2|1}}}</span></div></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. | ||
Line 12: | Line 12: | ||
! 3rd argument | ! 3rd argument | ||
| is the item equipped? Enter <code>yes</code> here to indicate that the item is equipped (used for Cargo storage). | | is the item equipped? Enter <code>yes</code> 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. | |||
|} | |} | ||
Line 28: | Line 31: | ||
Character is carrying 2 laser pistols that are both equipped. | Character is carrying 2 laser pistols that are both equipped. | ||
<code><nowiki>{{inventory|electrobow|1|no|20}}</nowiki></code> | |||
Character has a 20% chance to be carrying 1 electrobow, which is not equipped. | |||
</noinclude> | </noinclude> |