Template:InfoItem: Difference between revisions
From IdleOn MMO Wiki
Poopmcpoop (talk | contribs) ((Attempt to) fix faulty type Template:Pluralizer formatting, e.g., for Paper Boat -> Shirt, when it should link to Shirts) |
(Moved description from its own section to a caption under the image) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 33: | Line 33: | ||
### Cargo Store ### | ### Cargo Store ### | ||
--><includeonly>{{#invoke:SlabStuff|SlabNumGrab|Item={{PAGENAME}}}}{{#cargo_store:_table=Items | --><includeonly>{{#invoke:SlabStuff|SlabNumGrab|Item={{PAGENAME}}}}{{#cargo_store:_table=Items | ||
|Image=[[File:{{PAGENAME}}.png]] | |Image=[[File:{{{image|{{PAGENAME}}}}}.png]] | ||
|Type={{{type|Typeless}}} | |Type={{{type|Typeless}}} | ||
|Level={{{level|0}}} | |Level={{{level|0}}} | ||
Line 86: | Line 86: | ||
File:{{#titleparts:{{PAGENAME}}}} Chat Box.png{{!}}Chat Message | File:{{#titleparts:{{PAGENAME}}}} Chat Box.png{{!}}Chat Message | ||
}} | }} | ||
|File:{{#titleparts:{{PAGENAME}}}}.png}}<!-- Using Titleparts fixes issues with apostrophes --> | |File:{{#titleparts:{{{image|{{PAGENAME}}}}}}}.png}}<!-- Using Titleparts fixes issues with apostrophes --> | ||
</default> | </default> | ||
<caption source="description" /> | |||
</image> | </image> | ||
</section> | </section> | ||
</panel> | </panel> | ||
<group name="TrophySection"> | <group name="TrophySection"> | ||
<header>Character Effect</header> | <header>Character Effect</header> | ||
Line 118: | Line 115: | ||
</data> | </data> | ||
<data source="skillpower"> | <data source="skillpower"> | ||
<label>{{{skill|Skill}}} Power</label> | <label>{{#ifeq:{{lc:{{{type|}}}}}|dna splicer|Splice|{{{skill|Skill}}}}} Power</label> | ||
<format>{{skillicon|{{{skill|{{{type}}}}}}}} {{{skillpower|}}}</format> | <format>{{skillicon|{{{skill|{{{type}}}}}}}} {{{skillpower|}}}</format> | ||
</data> | </data> | ||
Line 174: | Line 171: | ||
<data source="type"> | <data source="type"> | ||
<label>Type</label> | <label>Type</label> | ||
<format>[[{{{{{Pluralizer|type | <format>[[{{{type|Uncategorized Item}}}|{{Pluralizer|{{{type|Uncategorized Item}}}}}]]</format> | ||
</data> | </data> | ||
<data source="rarity"> | <data source="rarity"> |
Latest revision as of 20:22, 12 June 2024
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) |quest=example |hascard=Yes/No (for ores, logs, fish and bugs) |setname=Amarok (For any items that are part of a themed set and have a page made) }} Don't have empty definitions, that will produce empty fields. If there is no description for example, don't include a description= at all.