Difference between revisions of "Template:Styles table"
BrazilianNut (talk | contribs) m (Added <includeonly>{{lang cat|Items with styles}}</includeonly>.) |
BrazilianNut (talk | contribs) m (Let's see if it adds the category to articles without categorizing the template. Please revert if it breaks anything.) |
||
Line 26: | Line 26: | ||
#if:{{{style10|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style10}}}}}}}{{ | #if:{{{style10|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style10}}}}}}}{{ | ||
#if:{{{style11|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style11}}}}}}} | #if:{{{style11|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style11}}}}}}} | ||
− | |}<includeonly>{{lang cat|Items with styles}}</includeonly><noinclude> | + | |}<includeonly>{{#if: {{{nocategory|}}}||{{lang cat|Items with styles}}}}</includeonly><noinclude> |
{{translation switching|en, ar, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, no, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant}} | {{translation switching|en, ar, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, no, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant}} | ||
{{doc begin}} | {{doc begin}} |
Revision as of 23:11, 25 October 2020
Main article: [[Styles|Template:Dictionary/items/styles]]
Template:Dictionary/items/styles | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
[[File:{{{image1}}}|80px|center]] | ||||||||||
{{dictionary/items/{{{style1}}}|null=|list=}} |
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Styles table/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: en, ar, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, no, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant (add) |
Documentation for Styles table
This template is used on item articles to show several styles. It currently supports up to 11 styles.
Usage
{{Styles table | hatnotes = | style1 = | style2 = | style3 = | style4 = ... | style11 = | image1 = | image2 = | image3 = | image4 = ... | image11 = | width = }}
Parameters
- hatnotes
- Hides hatnotes for main article if used.
- styleX
- Name for style X. This should not be translated, as it uses strings from Template:Dictionary. If the item has less than 11 styles, remove the unused ones from the template.
- imageX
- Image for style X. This should be placed as
Filename.extension
, withoutFile:
on the start. If the item has less than 11 styles, remove the unused ones from the template.
- width
- Sets custom width for images. Default is 80px.
Example
{{Styles table | hatnotes = pootis | style1 = Ghastlier Gibus | style2 = Ghastly Gibus | image1 = Item icon Ghastlier Gibus.png | image2 = Item icon Ghastly Gibus.png | width = 40px }}
will appear as:
Styles | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Ghastlier Gibus | Ghastly Gibus |