Difference between revisions of "Template:Styles table"

From Team Fortress Wiki
Jump to: navigation, search
m
m
 
(42 intermediate revisions by 18 users not shown)
Line 1: Line 1:
{{#if: {{{hatnotes|}}}
+
{{#if:{{{hatnotes|}}}||{{main|Styles{{if lang}}|l1={{common string|Styles}}}}}}
| {{ns:0}}
+
{| class="wikitable grid" cellpadding="2"
| {{main|Styles{{if lang}}|l1={{item name|styles}}}}
+
! class="header" colspan="11" | {{common string|Styles}}
 +
|-
 +
| [[File:{{{image1}}}|{{{width|80px}}}|center]]{{
 +
#if:{{{style2|}}}|{{!!}} [[File:{{{image2}}}|{{{width|80px}}}|center]]}}{{
 +
#if:{{{style3|}}}|{{!!}} [[File:{{{image3}}}|{{{width|80px}}}|center]]}}{{
 +
#if:{{{style4|}}}|{{!!}} [[File:{{{image4}}}|{{{width|80px}}}|center]]}}{{
 +
#if:{{{style5|}}}|{{!!}} [[File:{{{image5}}}|{{{width|80px}}}|center]]}}{{
 +
#if:{{{style6|}}}|{{!!}} [[File:{{{image6}}}|{{{width|80px}}}|center]]}}{{
 +
#if:{{{style7|}}}|{{!!}} [[File:{{{image7}}}|{{{width|80px}}}|center]]}}{{
 +
#if:{{{style8|}}}|{{!!}} [[File:{{{image8}}}|{{{width|80px}}}|center]]}}{{
 +
#if:{{{style9|}}}|{{!!}} [[File:{{{image9}}}|{{{width|80px}}}|center]]}}{{
 +
#if:{{{style10|}}}|{{!!}} [[File:{{{image10}}}|{{{width|80px}}}|center]]}}{{
 +
#if:{{{style11|}}}|{{!!}} [[File:{{{image11}}}|{{{width|80px}}}|center]]}}
 +
|-
 +
! style="background:#F9D483;" | {{Item name|{{{style1}}}}}{{
 +
#if:{{{style2|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style2}}}}}}}{{
 +
#if:{{{style3|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style3}}}}}}}{{
 +
#if:{{{style4|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style4}}}}}}}{{
 +
#if:{{{style5|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style5}}}}}}}{{
 +
#if:{{{style6|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style6}}}}}}}{{
 +
#if:{{{style7|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style7}}}}}}}{{
 +
#if:{{{style8|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style8}}}}}}}{{
 +
#if:{{{style9|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style9}}}}}}}{{
 +
#if:{{{style10|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style10}}}}}}}{{
 +
#if:{{{style11|}}}|!! style="background:#F9D483;" {{!}} {{style name|{{{style11}}}}}}}
 +
|}{{#if:{{{littlediff|}}}|{{lang
 +
  | en = ''This item has very little effect on its appearance when its styles are changed unless painted. [[Paint Can|{{item name|{{{littlediff}}}}}]] paint is used here for demonstration purposes.''
 +
  | da = ''Denne genstand skifter ikke udseende hvis dens stile er ændret, medmindre den har maling påført. [[Paint Can/da|{{item name|{{{littlediff}}}}}]] er brugt her for at demonstrere.''
 +
  | de = ''Dieser Gegenstand verändert sich kaum sichtbar, wenn unbemalt. Zu Demonstrationszwecken wurde der Gegenstand mit [[Paint Can/de|{{item name|{{{littlediff}}}}}]] bemalt.''
 +
  | es = ''Este objeto tiene muy pocos cambios en su apariencia al cambiar de estilos a menos que esté pintado. La pintura [[Paint Can/es|{{item name|{{{littlediff}}}}}]] es usada aquí para su demostración.''
 +
  | fr = ''Changer le style de cet objet ne modifie que très peu son apparence s'il n'est pas peint. La peinture [[Paint Can/fr|{{item name|{{{littlediff}}}}}]] est utilisée ici pour illustrer la différence.''
 +
  | ja = 注:このアイテムのスタイルによる差は、ペイントされていない状態ではごく僅かです。 ここではスタイルを比較しやすくするため、[[Paint Can/ja|{{item name|{{{littlediff}}}}}]]ペイントを適用した状態で表示しています。
 +
  | ko = ''이 아이템은 페인트칠 되지 않은 상태에서는 외관상 거의 차이가 없습니다. 설명을 위해 [[Paint Can/ko|{{item name|{{{littlediff}}}}}]] 페인트를 사용했습니다.''
 +
  | nl = ''De stijlen van dit voorwerp veranderen weinig aan het uiterlijk, tenzij het voorwerp geverft is. [[Paint Can/nl|{{item name|{{{littlediff}}}}}]] wordt hier gebruikt om de veranderingen aan te geven.''
 +
  | no = ''Denne gjenstanden har en liten effekt på farge endringer om ikke den er malt. [[Paint Can/no|{{item name|{{{littlediff}}}}}]] malingen er brukt for å demonstrere i denne sammenhengen.''
 +
  | pl = ''Style tego przedmiotu w niewielkim stopniu zmieniają jego wygląd, jeśli nie jest on przemalowany. Farba [[Paint Can/pl|{{item name|{{{littlediff}}}}}]] została tutaj użyta jako przykład.''
 +
  | pt = ''Este item tem muito pouco efeito na sua aparência quando os estilos são alterados, a não ser que seja pintado. A tinta [[Paint Can/pt|{{item name|{{{littlediff}}}}}]] é usada aqui para fins de demonstração.''
 +
  | pt-br = ''Este item tem muito pouco efeito sobre sua aparência quando seus estilos são alterados a menos que esteja pintado. A tinta [[Paint Can/pt-br|{{item name|{{{littlediff}}}}}]] é usada aqui para fins de demonstração.''
 +
  | ro = ''Stilurile acestui obiect fac schimbări minore dacă obiectul nu este vopsit. Vopseaua [[Paint Can/ro|{{item name|{{{littlediff}}}}}]] este folosită în cazul de față pentru a demonstra diferența.''
 +
  | 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.''
 +
  | zh-hans = 该物品未经染色时,更改式样产生的外观差异微不足道。为提升演示效果,此处的示例图应用了{{item name|Paint Can}}:[[Paint Can/zh-hans|{{item name|{{{littlediff}}}}}]]。
 +
  | zh-hant = 這物品除非有上色過,要不然很難看出來樣式有改變。這裡以[[Paint Can/zh-hant|{{item name|{{{littlediff}}}}}]]來當作範例。
 +
}}
 +
}}{{#if:{{{nodiff|}}}|{{lang
 +
  | 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.''
 +
  | da = ''Denne genstand har ingen effekt på sit udseende, når dens stilarter ændres, medmindre den er malet. [[Paint Can/da|{{item name|{{{nodiff}}}}}]] malingen anvendes til denne demonstration.''
 +
  | de = ''Die Stile dieses Gegenstands sind identisch, wenn er nicht angemalt wurde. Zu Demonstrationszwecken wird hier [[Paint Can/de|{{item name|{{{nodiff}}}}}]] verwendet.''
 +
  | es = ''Este objeto no tiene ningún cambio en su apariencia al cambiar de estilos a menos que esté pintado. La pintura [[Paint Can/es|{{item name|{{{nodiff}}}}}]] es usada aquí para su demostración.''
 +
  | fr = ''Changer le style de cet objet ne modifie pas son apparence s'il n'est pas peint. La peinture [[Paint Can/fr|{{item name|{{{nodiff}}}}}]] est utilisée ici pour illustrer la différence.''
 +
  | ko = ''이 아이템은 페인트 칠을 하지 않을 경우 양식에 변화가 없습니다. 여기서는 예시를 위해 [[Paint Can/ko|{{item name|{{{nodiff}}}}}]] 페인트가 사용 되었습니다.''
 +
  | nl = ''De stijlen van dit voorwerp veranderen niks aan het uiterlijk, tenzij het voorwerp geverft is. [[Paint Can/nl|{{item name|{{{nodiff}}}}}]] wordt hier gebruikt om de veranderingen aan te geven.''
 +
  | pl = ''Style tego przedmiotu nie zmieniają jego wyglądu, jeśli nie jest on przemalowany. Farba [[Paint Can/pl|{{item name|{{{nodiff}}}}}]] została tutaj użyta jako przykład.''
 +
  | pt = ''Este item não tem efeito na sua aparência quando os estilos são alterados, a não ser que seja pintado. A tinta [[Paint Can/pt|{{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.''
 +
  | ro = ''Stilurile acestui obiect nu modifică obiectul dacă acesta nu este vopsit. Vopseaua [[Paint Can/ro|{{item name|{{{nodiff}}}}}]] este folosită în cazul de față pentru a demonstra diferența.''
 +
  | ru = ''У этого предмета без покраски нет изменений во внешнем виде при выборе разных стилей. Он покрашен в [[Paint can/ru|{{item name|{{{nodiff}}}}}]] для демонстрационных целей.''
 +
  | sv = ''Detta föremål har ingen ändring om den inte är målad. [[Paint Can/sv|{{item name|{{{nodiff}}}}}]] färgen används här som demonstration.''
 +
  | tr = ''Bu öğe boyanmadığı sürece iki tarzın da öğenin görünümü üzerinde hiçbir etkisi yoktur. [[Paint Can/tr|{{item name|{{{nodiff}}}}}]] adlı boya kutusu burada farkı göstermek amacıyla kullanılmıştır.''
 +
  | zh-hans = 该物品未经染色时,更改式样不会产生任何外观差异。为提升演示效果,此处的示例图应用了{{item name|Paint Can}}:[[Paint Can/zh-hans|{{item name|{{{nodiff}}}}}]]。
 +
}}
 +
}}<includeonly>{{#if: {{{nocategory|}}}||{{lang cat|Items with styles}}}}</includeonly><noinclude>
 +
 
 +
{{translation switching|en, da, de, es, fr, ko, nl, pl, pt, pt-br, ro, ru, sv, tr, zh-hans}}
 +
{{doc begin}}
 +
This template is used on [[Items|item]] articles to show several [[styles]]. It currently supports up to 11 styles.
 +
 
 +
== Usage ==
 +
<pre>
 +
{{Styles table
 +
| hatnotes =
 +
 
 +
| style1 =
 +
| style2 =
 +
| style3 =
 +
| style4 =
 +
...
 +
| style11 =
 +
 
 +
| image1 =
 +
| image2 =
 +
| image3 =
 +
| image4 =
 +
...
 +
| image11 =
 +
 
 +
| width =
 +
}}
 +
</pre>
 +
 
 +
== 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/items|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 <code>Filename.extension</code>, without <code>File:</code> 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 ==
 +
<pre>
 +
{{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
 
}}
 
}}
{{lang
+
</pre>
  | en = This item has {{#expr:1{{#if:{{{style2|}}}|+1}}{{#if:{{{style3|}}}|+1}}{{#if:{{{style4|}}}|+1}}}} {{#if:{{{style2|}}}|styles|style}}.
+
will appear as:
  | pt-br = Este item tem {{#expr:1{{#if:{{{style2|}}}|+1}}{{#if:{{{style3|}}}|+1}}{{#if:{{{style4|}}}|+1}}}} {{#if:{{{style2|}}}|estilos|estilo}}.
+
{{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
 
}}
 
}}
<table colspan={{#expr:1{{#if:{{{style2|}}}|+1}}{{#if:{{{style3|}}}|+1}}{{#if:{{{style4|}}}|+1}}}} class="wikitable grid" cellpadding="2" style="font-size:90%;">
 
  <tr>
 
    <th class="header" >{{item name|styles}}</th>
 
  </tr>
 
  <tr>
 
    <td>[[{{{image1}}}|{{{width|80px}}}|center]]</td>
 
    {{#if:{{{style2|}}}|<td>[[{{{image2}}}|{{{width|80px}}}|center]]</td>}}
 
    {{#if:{{{style3|}}}|<td>[[{{{image3}}}|{{{width|80px}}}|center]]</td>}}
 
    {{#if:{{{style4|}}}|<td>[[{{{image4}}}|{{{width|80px}}}|center]]</td>}}
 
  </tr>
 
  <tr>
 
    <td>{{{style1}}}</td>
 
    {{#if:{{{style2|}}}|<td>{{{style2}}}</td>}}
 
    {{#if:{{{style3|}}}|<td>{{{style3}}}</td>}}
 
    {{#if:{{{style4|}}}|<td>{{{style4}}}</td>}}
 
  </tr>
 
</table>
 
{| class="wikitable grid"
 
! class="header" colspan={{#expr:1{{#if:{{{style2|}}}|+1}}{{#if:{{{style3|}}}|+1}}{{#if:{{{style4|}}}|+1}}}}|{{item name|styles}}
 
|-
 
| [[{{{image1}}}|{{{width|80px}}}|center]]
 
{{#if:{{{style2|}}}|[[{{{image2}}}|{{{width|80px}}}|center]]}}
 
{{#if:{{{style3|}}}|[[{{{image3}}}|{{{width|80px}}}|center]]}}
 
{{#if:{{{style4|}}}|[[{{{image4}}}|{{{width|80px}}}|center]]}}
 
|-
 
! style="background:#F9D483;" | {{{style1}}}
 
{{#if:{{{style2|}}}|! style="background:#F9D483;" | {{{style2}}}}}
 
{{#if:{{{style3|}}}|! style="background:#F9D483;" | {{{style3}}}}}
 
{{#if:{{{style4|}}}|! style="background:#F9D483;" | {{{style4}}}}}
 
  
|-
+
[[Category:Infobox templates|Styles table]]
|}
+
</noinclude>

Latest revision as of 20:45, 24 March 2024

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.