Template:InfoItem: Difference between revisions
From IdleOn MMO Wiki
Kiokurashi (talk | contribs) No edit summary |
Kiokurashi (talk | contribs) No edit summary Tag: Reverted |
||
Line 33: | Line 33: | ||
### Cargo Store ### | ### Cargo Store ### | ||
--><includeonly>{{#cargo_store:_table=Items | --><includeonly><div style="display: None">{{#vardefine:sources|{{#cargo_query:tables=AnvilCraft | ||
|fields=IF(RecipeFrom = "Start", CONCAT("[[Smithing]]"), CONCAT("[[Smithing]] (", RecipeFrom, ")")) | |||
|where=_pageName LIKE "{{{1|{{PAGENAME}}}}}" | |||
|format=list | |||
|order by=_pageName ASC | |||
|default= | |||
}}}}{{#vardefine:sources|{{#var:sources}}{{#cargo_query:tables=DropTables | |||
|fields=CONCAT("[[", DropSourceEntity, "]]") | |||
|where=DropItem="{{{1|{{PAGENAME}}}}}" AND NOT DropSourceEntity LIKE "%DropTable%" | |||
|format=list | |||
|group by=DropSourceEntity | |||
|order by=DropSourceEntity ASC | |||
|default= | |||
|intro={{#if:{{#var:sources}}|, }} | |||
}}}}{{#vardefine:sources|{{#var:sources}}{{#cargo_query:tables=Quests | |||
|fields=_pageName | |||
|where=Rewards HOLDS LIKE "%>{{{1|{{PAGENAME}}}}}<%" | |||
|format=list | |||
|group by=_pageName | |||
|default= | |||
|intro={{#if:{{#var:sources}}|, }} | |||
}}}}{{#vardefine:sources|{{#var:sources}}{{#cargo_query:tables=VendorItems | |||
|fields=CONCAT("[[Vendors#", Vendor, "\{\{!\}\}", Vendor, "]]") | |||
|where=Item="{{{1|{{PAGENAME}}}}}" | |||
|format=list | |||
|order by=Vendor | |||
|default= | |||
|intro={{#if:{{#var:sources}}|, }} | |||
}}}}{{#vardefine:sources|{{#var:sources}}{{#cargo_query:tables=Sources | |||
|fields=CONCAT("[[", Link, "]]", IF(SpecialText = "None", "", CONCAT(" (", SpecialText, ")"))) | |||
|where=Item="{{{1|{{PAGENAME}}}}}" | |||
|format=list | |||
|order by=Source | |||
|default= | |||
|intro={{#if:{{#var:sources}}|, }} | |||
}}}}{{#vardefine:sources|{{#var:sources}}{{#cargo_query:tables=Sources | |||
|fields=CONCAT("<br/><sup><i>", Item, " can be obtained from any enemy during its event.</i></sup>") | |||
|where=Item="{{{1|{{PAGENAME}}}}}" AND EventRules=1 | |||
|format=list | |||
|group by=Item | |||
|default= | |||
}}}}</div>{{#cargo_store:_table=Items | |||
|Image=[[File:{{PAGENAME}}.png]] | |Image=[[File:{{PAGENAME}}.png]] | ||
|InternalGameID={{{order|-1}}} | |InternalGameID={{{order|-1}}} | ||
Line 59: | Line 100: | ||
|Rarity={{#switch:{{{rarity|}}}|Bronze=1|Silver=2|Golden|Gold=3|Platinum=4|Dementia=5|Void=6|Lustre=7|Dreadlo=8|#default=0}} | |Rarity={{#switch:{{{rarity|}}}|Bronze=1|Silver=2|Golden|Gold=3|Platinum=4|Dementia=5|Void=6|Lustre=7|Dreadlo=8|#default=0}} | ||
|Tier={{{tier|Null}}} | |Tier={{{tier|Null}}} | ||
|Source={{ | |Source={{#var:sources | Unobtainable}} | ||
|Family={{{family|Null}}} | |Family={{{family|Null}}} | ||
}}<!-- | }}<!-- |
Revision as of 04:21, 28 December 2022
This template defines the table "Items". View table.
Usage: {{InfoItem |type=example (needs to be included every time) |class=example |level=example |skill=example |skillpower=example (needs a defined skill to display correctly) |weaponpower=example |str=example |agi=example |wis=example |luck=example |reach=example (only for weapons) |speed=example (only for weapons) |misc=example |defence=example |upgrade=example |quest=example (only for quest items) |description=example |notes=example |sellprice=example |rarity=example (for obols) |tier=example (for upgrade stones) |source=example |quest=example |hascard=Yes/No (for ores, logs, fish and bugs) }} Don't have empty definitions, that will produce empty fields. If there is no description for example, don't include a description= at all.