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

From Team Fortress Wiki
Jump to: navigation, search
m (Fixed template names on the examples.)
m (Added new arguments / syntaxes)
Line 31: Line 31:
 
:; ''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".
 +
 +
:; ''collapsed''
 +
:: By default, the table is collapsed automatically when loading the page. The argument {{code|<nowiki>collapsed=no</nowiki>}} can be used to show the table entirely upon loading a page.
 +
 +
:; ''title''
 +
:: The title "{{code|Unused painted variants table}}" is shown by default. Using the {{code|<nowiki>title=no</nowiki>}} argument will hide the header, and automatically make the table uncollapsed in the process.
  
 
=== Other Painted variant templates ===
 
=== Other Painted variant templates ===

Revision as of 16:28, 23 February 2023

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

This template is used to display painted variants on the "Unused content" section of some pages. It's collapsed by default. It can also display styles.

Example

== Painted variants ==
{{Painted variants unused}}
== Painted variants ==
{{Painted variants unused|default=Outdoorsmen}}
{{Painted variants unused|style=Blood Bin|h=0}}
{{Painted variants unused|style=Investor|h=0}}
{{Painted variants unused|style=J.R. Gyle|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.
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".
collapsed
By default, the table is collapsed automatically when loading the page. The argument collapsed=no can be used to show the table entirely upon loading a page.
title
The title "Unused painted variants table" is shown by default. Using the title=no argument will hide the header, and automatically make the table uncollapsed in the process.

Other Painted variant templates