Difference between revisions of "Template:Painted variants full/doc"

From Team Fortress Wiki
Jump to: navigation, search
m (Links for other Painted variant templates.)
(added documentation for the features I ported over)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{hatnote|To view all painted images, see [[Paint Can#Paintable item previews]].}}
+
{{Hatnote|To view all painted images, see [[Paint Can#Paintable item previews]].}}
This template is used to display painted variants on hat pages. It can also display [[styles]].
+
This template is used to display painted variants on pages. It can also display [[styles]].
  
This template is different than [[Template:Painted variants]] as it includes BLU team previews for Single color paint cans.
+
This template is different than {{tl|Painted variants}} as it includes BLU team previews for Single color paint cans.
  
 
=== Example ===
 
=== Example ===
Line 13: Line 13:
 
== Painted variants ==
 
== Painted variants ==
 
{{Painted variants full|default=New School}}
 
{{Painted variants full|default=New School}}
=== Styles ===
+
{{Painted variants full|style=Old School|h=0}}
{{Painted variants full|style=Old School}}
 
 
{{Painted variants full|style=Older School|h=0}}
 
{{Painted variants full|style=Older School|h=0}}
 
{{Painted variants full|style=Oldest School|h=0}}
 
{{Painted variants full|style=Oldest School|h=0}}
Line 25: Line 24:
 
:; ''style''
 
:; ''style''
 
:: The name of the painted style being displayed in a particular instance. Calls {{tl|item name}} to display the correct translation.
 
:: The name of the painted style being displayed in a particular instance. Calls {{tl|item name}} to display the correct translation.
 +
 +
:; ''style-unpainted''
 +
:: The name of the painted style for the unpainted variant (this is not required and always defaults to whatever {{code|style}} is set to). If set to {{code|none}}, it will prevent {{code|style}} from being applied to the unpainted variants at all. Useful for medals.
  
 
:; ''h''
 
:; ''h''
Line 31: Line 33:
 
:; ''override''
 
:; ''override''
 
:: Override {{code|<nowiki>{{BASEPAGENAME}}</nowiki>}} and use custom name, useful for sub-pages.
 
:: Override {{code|<nowiki>{{BASEPAGENAME}}</nowiki>}} and use custom name, useful for sub-pages.
 +
 +
:; ''override-unpainted''
 +
:: Override {{code|<nowiki>{{BASEPAGENAME}}</nowiki>}} and {{code|override}}, but only for the unpainted variants. Useful for medals.
  
 
:; ''name''
 
:; ''name''
 
:: Overrides the style name and calls {{tl|item name}} to display the correct translation, useful for items with generic styles such as "Hat" and "No Hat".
 
:: Overrides the style name and calls {{tl|item name}} to display the correct translation, useful for items with generic styles such as "Hat" and "No Hat".
 +
 +
:; ''width''
 +
:: Sets custom width for images inside the table. Default is 85px.
  
 
=== Other Painted variant templates ===
 
=== Other Painted variant templates ===
 
* [[Template:Painted variants]] - Standard template for Painted variants. Does not include BLU team previews on Single color paint cans.
 
* [[Template:Painted variants]] - Standard template for Painted variants. Does not include BLU team previews on Single color paint cans.
 +
* [[Template:Painted variants unused]] - Used for items that have paintability enabled, but aren't possible to actually be painted as they aren't marked as paintable in the [[Item schema]].
 +
* [[Template:Painted variants unused full]] - Used for items that have paintability enabled, but aren't possible to actually be painted as they aren't marked as paintable in the [[Item schema]], while also including RED and BLU images for Single color paint cans.
 +
* [[Template:Painted variants unused UGC]] - Used for [[United Gaming Clans|UGC Tournament Medal]] pages. Specifically, [[Tournament Medal - UGC 4vs4|4vs4]]'s unused paintability for the Season 17-18 medals, [[Tournament Medal - UGC 6vs6|6vs6]]'s unused paintability for the Season 30-31 medals and [[Tournament Medal - UGC Highlander|Highlander]]'s unused paintability for the Season 8, 28-29 Medals.
 +
* [[Template:Painted variants/Title]]
 +
* [[Template:Painted variants/Notes]]
 +
* [[Template:Painted variants unused/Notes]]
  
[[Category:Templates|Painted variants]]
+
[[Category:Template documentation]]
[[Category:Paint templates|Painted variants]]
+
[[Category:Paint templates]]

Latest revision as of 04:59, 16 November 2024

To view all painted images, see Paint Can#Paintable item previews.

This template is used to display painted variants on pages. It can also display styles.

This template is different than {{Painted variants}} as it includes BLU team previews for Single color paint cans.

Example

== Painted variants ==
{{Painted variants full}}
== Painted variants ==
{{Painted variants full|default=New School}}
{{Painted variants full|style=Old School|h=0}}
{{Painted variants full|style=Older School|h=0}}
{{Painted variants full|style=Oldest School|h=0}}

Parameters

default
If the item has a style, its 'default' style should be named here. Calls {{item name}} to display the correct translation.
style
The name of the painted style being displayed in a particular instance. Calls {{item name}} to display the correct translation.
style-unpainted
The name of the painted style for the unpainted variant (this is not required and always defaults to whatever style is set to). If set to none, it will prevent style from being applied to the unpainted variants at all. Useful for medals.
h
If defined at all, it will hide the {{main}} and 'mouseover' notes and just display the table.
override
Override {{BASEPAGENAME}} and use custom name, useful for sub-pages.
override-unpainted
Override {{BASEPAGENAME}} and override, but only for the unpainted variants. Useful for medals.
name
Overrides the style name and calls {{item name}} to display the correct translation, useful for items with generic styles such as "Hat" and "No Hat".
width
Sets custom width for images inside the table. Default is 85px.

Other Painted variant templates