Difference between revisions of "Template:Painted variants/doc"
m |
m |
||
Line 22: | Line 22: | ||
:; ''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'' | ||
:: If defined at all, it will hide the {{tl|main}} and 'mouseover' notes and just display the table. | :: If defined at all, it will hide the {{tl|main}} and 'mouseover' notes and just display the table. | ||
+ | |||
+ | :; ''hh'' | ||
+ | :: If defined at all, it will hide the table header containing the item name. | ||
:; ''override'' | :; ''override'' | ||
Line 33: | Line 39: | ||
:; ''override-prefix'' | :; ''override-prefix'' | ||
− | :: Override the default prefix in file names ("Painted"). Particularly useful | + | :: Override the default prefix in file names ("Painted"). Particularly useful for painted items [[Team_Fortress_Wiki:Images#Naming|uploaded for use in userspaces]]. |
:; ''name'' | :; ''name'' |
Revision as of 00:13, 7 September 2023
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.
Example
== Painted variants == {{Painted variants}}
== Painted variants == {{Painted variants|default=New School}} {{Painted variants|style=Old School|h=0}} {{Painted variants|style=Older School|h=0}} {{Painted variants|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 tonone
, it will preventstyle
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.
- hh
- If defined at all, it will hide the table header containing the item name.
- override
- Override
{{BASEPAGENAME}}
and use custom name, useful for sub-pages.
- override-unpainted
- Override
{{BASEPAGENAME}}
andoverride
, but only for the unpainted variants. Useful for medals.
- override-prefix
- Override the default prefix in file names ("Painted"). Particularly useful for painted items uploaded for use in userspaces.
- 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".
Other Painted variant templates
- Template:Painted variants full - Used for cosmetics that shows different colors per team even 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/Title
- Template:Painted variants/Notes
- Template:Painted variants unused/Notes