Template:Cosmetic 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..." |
now auto-adds Category:Leader cosmetics |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
|- | |- | ||
|Emoji | |Emoji | ||
| | |{{Cosmetic emoji plain|{{{1|{{PAGENAME}}}}}}} | ||
{{#if: {{Fallback emoji|{{{1|PAGENAME}}} }}| | {{#if: {{Fallback emoji|{{{1|{{PAGENAME}} }}}}}| | ||
{{!}}- | {{!}}- | ||
{{!}}Fallback emoji | {{!}}Fallback emoji | ||
{{!}} {{Fallback emoji|{{{1|PAGENAME}}} }} | {{!}} {{Fallback emoji|{{{1|{{PAGENAME}}}}}}} | ||
}} | |||
{{#if: {{Special effect|{{{1|{{PAGENAME}} }}}}}| | |||
{{!}}- | |||
{{!}}Special effect | |||
{{!}} {{Special effect|{{{1|{{PAGENAME}}}}}}} | |||
}} | }} | ||
|} | |} | ||
</ | {{#if:{{{nocat|}}}||<includeonly>{{#switch:{{{1|{{PAGENAME}}}}}|Ancient Axe|Blindfold|Fox Fire|Golden Feather|Heavenly Cloud|Le Fishe au Chocolat|Magical Moon|Old Nail|Special Snowflake|Tidal Wave=[[Category:Leader cosmetics]]|=[[Category:Cosmetics]]}}</includeonly>}} | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
| Line 28: | Line 30: | ||
"example": "Grass", | "example": "Grass", | ||
"type": "string" | "type": "string" | ||
}, | |||
"nocat": { | |||
"description": "Don't add the Cosmetics category. Meant for leader cosmetics, which have their own category.", | |||
"type": "boolean", | |||
"suggested": true | |||
} | } | ||
} | }, | ||
"description": "Shows an infobox for a given cosmetic. Also adds the page to [[Category:Cosmetics]]." | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:05, 5 June 2024
Cosmetic infobox
| |
“”
| |
| Emoji | Cannot show emoji for unknown cosmetic: Cosmetic infobox |
| Fallback emoji | (unknown) |
| Special effect | Special effect missing: Cosmetic infobox |
Shows an infobox for a given cosmetic. Also adds the page to [[Category:Cosmetics]].
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Relic | 1 | Cosmetic to show information on (defaults to page title)
| String | optional |
| nocat | nocat | Don't add the Cosmetics category. Meant for leader cosmetics, which have their own category. | Boolean | suggested |