Difference between revisions of "Template:Styles table"

From Team Fortress Wiki
Jump to: navigation, search
m (Added <includeonly>{{lang cat|Items with styles}}</includeonly>.)
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=}}

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, without File: 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
Item icon Ghastlier Gibus.png
Item icon Ghastly Gibus.png
Ghastlier Gibus Ghastly Gibus