Template:Item infobox: Difference between revisions
Created page with "{| class="infobox wikitable" style="box-sizing:content-box;clear:right;float:right;margin:0 0 1em 1em;width:calc(240px + (2 * 0.4em →td padding horizontal: ) + (2 * 0.2em →table border-spacing: ));" |+ |colspan="2"|<div style="text-align:center;font-size:larger;font-weight:bold;">{{{1|{{PAGENAME}}}}}</div> |- |colspan="2"|<div style="display:flex;justify-content:center;">[[File:{{{1|{{PAGENAME}}}}}.png|72x72px]]</div> |- |colspan="2"|<div style="text-align:center;f..." |
mNo edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
|- | |- | ||
|Quality | |Quality | ||
| | |{{Item quality|{{{1|{{PAGENAME}}}}}}}<!-- | ||
|- | -->{{#if:{{Mechanic upgrade|{{{1|{{PAGENAME}}}}}}}| | ||
| | {{!}}+ | ||
| | !colspan=2{{!}}[[The Mechanic|Mechanic]] upgrade | ||
{{!}}- | |||
{{!}}colspan=2 style="text-align:center;"{{!}}{{Mechanic upgrade|{{{1|{{PAGENAME}}}}}}}}}<!-- | |||
| | -->{{#if:{{Mechanic quote|{{{1|{{PAGENAME}}}}}}}| <!-- it doesn't work without this nobreak space. don't ask me why --> | ||
|} | {{!}}- | ||
</div> | {{!}}colspan=2{{!}}<!-- font-size and line-height stolen from discord embeds --><div style="font-size:.875rem;line-height:1.125;font-style:italic;">[[File:Murphy.webp|16px|noframe|float=inline-start|alt=|link=Murphy]] {{Mechanic quote|{{{1|{{PAGENAME}}}}}}}</div>}} | ||
|}<includeonly>{{#if:{{{nocat|}}}||[[Category:Items]]{{#switch:{{{1|{{PAGENAME}}}}}|Ace|Backpack|Battery|Blank Card|Booster Cookie|Cake Slice|Canoe|Chains|Cocktail|Coupon|Cracked Mystery Egg|Egg|Eyedropper|Fixed Clock|Fortune Cookie|Goggles|Green Tea|Hatched Mystery Egg|Loot Box|Lotus|Magic Mirror|Mystery Chick|Mystery Meat|Needle|Pineapple|Rice Ball|Rice Cracker|Screwdriver|Telescope|Unstable Wand|Very Cracked Mystery Egg=[[Category:Upgraded items]]|=}}}}</includeonly> | |||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 27: | Line 27: | ||
"example": "Coffee", | "example": "Coffee", | ||
"type": "string" | "type": "string" | ||
}, | |||
"nocat": { | |||
"description": "Do not add [[:Category:Items]] or [[:Category:Upgraded items]]", | |||
"type": "boolean", | |||
"suggested": true | |||
} | } | ||
} | } | ||
Latest revision as of 20:03, 5 June 2024
Item infobox
| |
“”
| |
| Quality | Cannot show quality of unknown item: Item infobox[citation needed] |
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Item | 1 | Item to show information on (defaults to page title)
| String | optional |
| nocat | nocat | Do not add [[:Category:Items]] or [[:Category:Upgraded items]] | Boolean | suggested |