Difference between revisions of "Template:Painted variants/doc"
m (moving {{translation switching}}) |
m (→Parameters) |
||
Line 29: | Line 29: | ||
:; ''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. | ||
+ | |||
+ | :; ''names'' | ||
+ | :: 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". | ||
[[Category:Templates|Painted variants]] | [[Category:Templates|Painted variants]] | ||
[[Category:Paint templates|Painted variants]] | [[Category:Paint templates|Painted variants]] |
Revision as of 19:59, 3 October 2020
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.
Example
== Painted variants == {{Painted variants}}
== Painted variants == {{Painted variants|default=New School}} === Styles === {{Painted variants|style=Old School}} {{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.
- 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.
- names
- 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".