Still landing on the old Fandom wiki? Install the HighSpell Wiki Redirector browser extension to automatically redirect all highspell.fandom.com links to highspell.wiki. Works on both Firefox and Chrome, and is open-source. → Learn more and install it now!

Template:AddLoot: Difference between revisions

From HighSpell Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Manual revert
(23 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
   |LootKey=String
   |Item=Page
   |Item=Page
   |Quantity=Integer
   |MinimumQuantity=Integer
  |MaximumQuantity=Integer
   |Rarity=String
   |Rarity=String
}}
  |RaritySort=Integer
</noinclude>
}}</noinclude><includeonly><span style="display:none">{{#cargo_store:
<includeonly>
{{#vardefine:lootSource|{{#if:{{{alt|}}}|{{{alt}}}|{{FULLPAGENAME}}}}}
{{#vardefine:lootKey|
  {{lc:{{#replace:{{#replace:{{#replace:{{#var:lootSource}}|%27|}}|_|}}}}}
}}
{{#cargo_store:
   _table=LootTable
   _table=LootTable
   |Source={{#var:lootSource}}
   |Source={{FULLPAGENAMEE}}
   |LootKey={{#var:lootKey}}
   |LootKey={{lc:{{#replace:{{#replace:{{#replace:{{{alt|{{PAGENAMEE}}}}}|%27|}}|_|}}}}}}
   |Item={{{item}}}
   |Item={{{item}}}
   |Quantity={{{quantity|1}}}
   |MinimumQuantity={{{minquantity|1}}}
  |MaximumQuantity={{#if:{{{maxquantity|}}}|{{{maxquantity}}}|{{{minquantity|1}}}}}
   |Rarity={{{rarity|Unknown}}}
   |Rarity={{{rarity|Unknown}}}
}}
  |RaritySort={{#invoke:RarityHandler|getSortValue|{{{rarity|Unknown}}}}}
</includeonly>
}}</span></includeonly>

Revision as of 21:20, 18 May 2025

This template defines the table "LootTable". View table.