Difference between revisions of "Template:Styles table"
(Updated available languages) |
(Converted to wiki syntax. Using !! to create new cells since newlines get stripped. Removed <nowiki> tags since <pre> prevents transclusion.) |
||
Line 1: | Line 1: | ||
{{#if:{{{hatnotes|}}}||{{main|Styles{{if lang}}|l1={{item name|styles}}}}}} | {{#if:{{{hatnotes|}}}||{{main|Styles{{if lang}}|l1={{item name|styles}}}}}} | ||
− | + | {| class="wikitable grid" cellpadding="2" | |
− | + | ! class="header" colspan="11" | {{item name|styles}} | |
− | + | |- | |
− | + | | [[File:{{{image1}}}|{{{width|80px}}}|center]]{{ | |
− | + | #if:{{{style2|}}}|{{!!}} [[File:{{{image2}}}|{{{width|80px}}}|center]]}}{{ | |
− | #if:{{{style2|}}}| | + | #if:{{{style3|}}}|{{!!}} [[File:{{{image3}}}|{{{width|80px}}}|center]]}}{{ |
− | #if:{{{style3|}}}| | + | #if:{{{style4|}}}|{{!!}} [[File:{{{image4}}}|{{{width|80px}}}|center]]}}{{ |
− | #if:{{{style4|}}}| | + | #if:{{{style5|}}}|{{!!}} [[File:{{{image5}}}|{{{width|80px}}}|center]]}}{{ |
− | #if:{{{style5|}}}| | + | #if:{{{style6|}}}|{{!!}} [[File:{{{image6}}}|{{{width|80px}}}|center]]}}{{ |
− | #if:{{{style6|}}}| | + | #if:{{{style7|}}}|{{!!}} [[File:{{{image7}}}|{{{width|80px}}}|center]]}}{{ |
− | #if:{{{style7|}}}| | + | #if:{{{style8|}}}|{{!!}} [[File:{{{image8}}}|{{{width|80px}}}|center]]}}{{ |
− | #if:{{{style8|}}}| | + | #if:{{{style9|}}}|{{!!}} [[File:{{{image9}}}|{{{width|80px}}}|center]]}}{{ |
− | #if:{{{style9|}}}| | + | #if:{{{style10|}}}|{{!!}} [[File:{{{image10}}}|{{{width|80px}}}|center]]}}{{ |
− | #if:{{{style10|}}}| | + | #if:{{{style11|}}}|{{!!}} [[File:{{{image11}}}|{{{width|80px}}}|center]]}} |
− | #if:{{{style11|}}}| | + | |- |
− | + | ! style="background:#F9D483;" | {{Item name|{{{style1}}}}}{{ | |
− | + | #if:{{{style2|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style2}}}}}}}{{ | |
− | #if:{{{style2|}}}| | + | #if:{{{style3|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style3}}}}}}}{{ |
− | #if:{{{style3|}}}| | + | #if:{{{style4|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style4}}}}}}}{{ |
− | #if:{{{style4|}}}| | + | #if:{{{style5|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style5}}}}}}}{{ |
− | #if:{{{style5|}}}| | + | #if:{{{style6|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style6}}}}}}}{{ |
− | #if:{{{style6|}}}| | + | #if:{{{style7|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style7}}}}}}}{{ |
− | #if:{{{style7|}}}| | + | #if:{{{style8|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style8}}}}}}}{{ |
− | #if:{{{style8|}}}| | + | #if:{{{style9|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style9}}}}}}}{{ |
− | #if:{{{style9|}}}| | + | #if:{{{style10|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style10}}}}}}}{{ |
− | #if:{{{style10|}}}| | + | #if:{{{style11|}}}|!! style="background:#F9D483;" {{!}} {{Item name|{{{style11}}}}}}} |
− | #if:{{{style11|}}}| | + | |}<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}} | ||
Line 34: | Line 32: | ||
== Usage == | == Usage == | ||
− | <pre | + | <pre> |
{{Styles table | {{Styles table | ||
| hatnotes = | | hatnotes = | ||
Line 54: | Line 52: | ||
| width = | | width = | ||
}} | }} | ||
− | + | </pre> | |
== Parameters == | == Parameters == | ||
Line 70: | Line 68: | ||
== Example == | == Example == | ||
− | <pre | + | <pre> |
{{Styles table | {{Styles table | ||
| hatnotes = pootis | | hatnotes = pootis | ||
Line 82: | Line 80: | ||
| width = 40px | | width = 40px | ||
}} | }} | ||
− | + | </pre> | |
will appear as: | will appear as: | ||
{{Styles table | {{Styles table |
Revision as of 00:37, 24 January 2017
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 |