Template:InfoItem: Difference between revisions
From IdleOn MMO Wiki
Kiokurashi (talk | contribs) No edit summary |
Kiokurashi (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
-->{{#cargo_declare:_table=Items | -->{{#cargo_declare:_table=Items | ||
|Image=Wikitext | |Image=Wikitext | ||
| | |SlabOrder=Integer | ||
|Type=String | |Type=String | ||
|Level=Integer | |Level=Integer | ||
Line 35: | Line 35: | ||
--><includeonly>{{#cargo_store:_table=Items | --><includeonly>{{#cargo_store:_table=Items | ||
|Image=[[File:{{PAGENAME}}.png]] | |Image=[[File:{{PAGENAME}}.png]] | ||
| | |SlabOrder={{{order|-1}}} | ||
|Type={{{type|Typeless}}} | |Type={{{type|Typeless}}} | ||
|Level={{{level|0}}} | |Level={{{level|0}}} | ||
Line 59: | Line 59: | ||
|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={{#invoke:SourcesQuery|Main|item={{PAGENAME}}}} | ||
|Family={{{family|Null}}} | |Family={{{family|Null}}} | ||
}}<!-- | |||
--><div class="Infobox"> | --><div class="Infobox"> | ||
Line 110: | Line 110: | ||
{{#if:{{{rarity|}}}|<dt>Rarity</dt><dd>{{{rarity|}}}</dd>}} | {{#if:{{{rarity|}}}|<dt>Rarity</dt><dd>{{{rarity|}}}</dd>}} | ||
{{#if:{{{tier|}}}|<dt>Tier</dt><dd>{{{tier|}}}</dd>}} | {{#if:{{{tier|}}}|<dt>Tier</dt><dd>{{{tier|}}}</dd>}} | ||
<dt>Source</dt><dd style="display:inline;">{{#var | <dt>Source</dt><dd style="display:inline;">{{#invoke:LuaVar|var|name=Sources}}</dd> | ||
</dl> | </dl> | ||
{{#ifeq: {{{hascard}}} | no || {{#cargo_query:tables=Cards | {{#ifeq: {{{hascard}}} | no || {{#cargo_query:tables=Cards |
Revision as of 15:47, 29 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.