Template:AddLoot: Difference between revisions
Created page with "<noinclude> {{#cargo_declare: _table=LootTable |Source=Page |Key=String |Item=Page |Quantity=Integer |Rarity=String }} </noinclude> <includeonly> {{#vardefine:lootSource|{{#if:{{{alt|}}}|{{{alt}}}|{{FULLPAGENAME}}}}} {{#vardefine:lootKey|{{lc:{{#replace:{{#replace:{{#replace:{{#var:lootSource}}|%27|}}|_|}}}}}} {{#cargo_store: _table=LootTable |Source={{#var:lootSource}} |Key={{#var:lootKey}} |Item={{{item}}} |Quantity={{{quantity|1}}} |Rarity={{{..." |
No edit summary Tag: Manual revert |
||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>{{#cargo_declare: | ||
{{#cargo_declare: | |||
_table=LootTable | _table=LootTable | ||
|Source=Page | |Source=Page | ||
| | |LootKey=String | ||
|Item=Page | |Item=Page | ||
| | |MinimumQuantity=Integer | ||
|MaximumQuantity=Integer | |||
|Rarity=String | |Rarity=String | ||
}} | |RaritySort=Integer | ||
</noinclude> | }}</noinclude><includeonly><span style="display:none">{{#cargo_store: | ||
<includeonly> | |||
{{#cargo_store: | |||
_table=LootTable | _table=LootTable | ||
|Source={{ | |Source={{FULLPAGENAMEE}} | ||
| | |LootKey={{lc:{{#replace:{{#replace:{{#replace:{{{alt|{{PAGENAMEE}}}}}|%27|}}|_|}}}}}} | ||
|Item={{{item}}} | |Item={{{item}}} | ||
| | |MinimumQuantity={{{minquantity|1}}} | ||
|MaximumQuantity={{#if:{{{maxquantity|}}}|{{{maxquantity}}}|{{{minquantity|1}}}}} | |||
|Rarity={{{rarity|Unknown}}} | |Rarity={{{rarity|Unknown}}} | ||
}} | |RaritySort={{#invoke:RarityHandler|getSortValue|{{{rarity|Unknown}}}}} | ||
</includeonly> | }}</span></includeonly> |