Difference between revisions of "Template:Styles table"

From Team Fortress Wiki
Jump to: navigation, search
(improve/added zh-hans translate)
(zh-hans: parameter fix; translation improvement)
Line 39: Line 39:
 
   | ru = ''Этот предмет имеет очень маленький эффект на внешний вид при смене его стиля. Он покрашен в [[Paint can/ru|{{item name|{{{littlediff}}}}}]] для демонстрационных целей.''
 
   | ru = ''Этот предмет имеет очень маленький эффект на внешний вид при смене его стиля. Он покрашен в [[Paint can/ru|{{item name|{{{littlediff}}}}}]] для демонстрационных целей.''
 
   | tr = ''Bu eşyanın görünümünde boyanmadığı zaman çok ufak bir değişiklik olur. [[Paint Can/tr|{{item name|{{{littlediff}}}}}]] boyası burada örnekleme amacı ile kullanılmıştır.''
 
   | tr = ''Bu eşyanın görünümünde boyanmadığı zaman çok ufak bir değişiklik olur. [[Paint Can/tr|{{item name|{{{littlediff}}}}}]] boyası burada örnekleme amacı ile kullanılmıştır.''
   | zh-hans = 该物品在没有染色时更改式样只有很轻微的外观差异。以上为使用了[[Paint Can/zh-hans|{{item name|{{{littlediff}}}}}]]染色后的效果,以作更好的展示。
+
   | zh-hans = 该物品未经染色时,更改式样产生的外观差异微不足道。为提升演示效果,此处的示例图应用了{{item name|Paint Can}}:[[Paint Can/zh-hans|{{item name|{{{littlediff}}}}}]]
 
   | zh-hant = 這物品除非有上色過,要不然很難看出來樣式有改變。這裡以[[Paint Can/zh-hant|{{item name|{{{littlediff}}}}}]]來當作範例。
 
   | zh-hant = 這物品除非有上色過,要不然很難看出來樣式有改變。這裡以[[Paint Can/zh-hant|{{item name|{{{littlediff}}}}}]]來當作範例。
 
  }}
 
  }}
Line 45: Line 45:
 
   | en = ''This item has no effect on its appearance when its styles are changed unless painted. [[Paint Can|{{item name|{{{nodiff}}}}}]] paint is used here for demonstration purposes.''
 
   | en = ''This item has no effect on its appearance when its styles are changed unless painted. [[Paint Can|{{item name|{{{nodiff}}}}}]] paint is used here for demonstration purposes.''
 
   | pt-br = ''Este item não tem efeito sobre sua aparência quando seus estilos são alterados a menos que esteja pintado. A tinta [[Paint Can/pt-br|{{item name|{{{nodiff}}}}}]] é usada aqui para fins de demonstração.''
 
   | pt-br = ''Este item não tem efeito sobre sua aparência quando seus estilos são alterados a menos que esteja pintado. A tinta [[Paint Can/pt-br|{{item name|{{{nodiff}}}}}]] é usada aqui para fins de demonstração.''
   | zh-hans = 该物品在没有染色时更改式样不会产生任何外观上的差异。以上为使用了[[Paint Can/zh-hans|{{item name|{{{littlediff}}}}}]]染色后的效果,以作展示。
+
   | zh-hans = 该物品未经染色时,更改式样不会产生任何外观差异。为提升演示效果,此处的示例图应用了{{item name|Paint Can}}:[[Paint Can/zh-hans|{{item name|{{{nodiff}}}}}]]
 
  }}
 
  }}
 
}}<includeonly>{{#if: {{{nocategory|}}}||{{lang cat|Items with styles}}}}</includeonly><noinclude>
 
}}<includeonly>{{#if: {{{nocategory|}}}||{{lang cat|Items with styles}}}}</includeonly><noinclude>

Revision as of 07:20, 14 July 2023

Main article: Styles
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.
littlediff
A note for when items have very little difference between styles unless painted.
nodiff
A note for when items have no difference between styles unless painted.

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
| littlediff = Mann Co. Orange
}}

will appear as:

Styles
Item icon Ghastlier Gibus.png
Item icon Ghastly Gibus.png
Ghastlier Gibus Ghastly Gibus
This item has very little effect on its appearance when its styles are changed unless painted. Mann Co. Orange paint is used here for demonstration purposes.