8,290
edits
(replaced with module. will throw an inventory error if the page isn't updated with the most recent QBE) |
m (support * argument for quantity) |
||
(4 intermediate revisions by 2 users not shown) | |||
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}}}}}{{#invoke:Inventory| main |{{{1|}}}|{{{2|1}}}|{{{3|no}}}|{{{4|100}}}}}</includeonly><noinclude> | <noinclude>{{#cargo_declare:_table=Inventory|Item=String|ItemID=String|Population=String|Quantity=String|Equipped=Boolean|Chance=Integer|JoinKey=String}}[[Category:Cargo Store Templates]]</noinclude><includeonly>{{#cargo_store:_table=Inventory | ||
|Item={{#ifeq:{{{5|no}}}|yes||{{ID to page|{{{1|}}}}}}} | |||
|ItemID={{#ifeq:{{{5|no}}}|yes||{{{1|}}}}} | |||
|Population={{#ifeq:{{{5|no}}}|yes|{{{1|}}}|}} | |||
|Quantity={{{2|1}}} | |||
|Equipped={{{3|no}}} | |||
|Chance={{{4|100}}} | |||
|JoinKey={{FULLPAGENAME}}}}<!-- | |||
CONTENT START | |||
-->{{#invoke:Inventory| main |{{{1|}}}|{{{2|1}}}|{{{3|no}}}|{{{4|100}}}|{{{5|no}}}}}</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 8: | Line 19: | ||
|- | |- | ||
! 2nd argument | ! 2nd argument | ||
| quantity. defaults to 1 | | quantity. defaults to 1. Can be set to '*' in combination with 5th argument set to 'yes' to represent a complex population that might return various items. | ||
|- | |- | ||
! 3rd argument | ! 3rd argument | ||
Line 15: | Line 26: | ||
! 4th argument | ! 4th argument | ||
| percent chance that the item will be in the character's inventory. 100 by default. | | percent chance that the item will be in the character's inventory. 100 by default. | ||
|- | |||
! 5th argument | |||
| 'yes' if this is a population table name. 'no' if this is a normal object ID. | |||
|} | |} | ||