Difference between revisions of "Template:Painted variants"
m (Cleaned up the code to be more efficient. Moved documentation to a subpage.) |
|||
Line 77: | Line 77: | ||
}}}} | }}}} | ||
|- | |- | ||
− | | align="center" class="paintCell" style="width:100px;" | [[File:Painted | + | | align="center" class="paintCell" style="width:100px;" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} E6E6E6{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" style="width:100px;" | [[File:Painted | + | | align="center" class="paintCell" style="width:100px;" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} D8BED8{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" style="width:100px;" | [[File:Painted | + | | align="center" class="paintCell" style="width:100px;" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} C5AF91{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" style="width:100px;" | [[File:Painted | + | | align="center" class="paintCell" style="width:100px;" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 7E7E7E{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
|- | |- | ||
! style="border-top:solid 5px #E6E6E6;" | {{Paint name|An Extraordinary Abundance of Tinge}} | ! style="border-top:solid 5px #E6E6E6;" | {{Paint name|An Extraordinary Abundance of Tinge}} | ||
Line 87: | Line 87: | ||
! style="border-top:solid 5px #7E7E7E;" | {{Paint name|Aged Moustache Grey}} | ! style="border-top:solid 5px #7E7E7E;" | {{Paint name|Aged Moustache Grey}} | ||
|- | |- | ||
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 141414{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 2D2D24{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 694D3A{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 7C6C57{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
|- | |- | ||
! style="border-top:solid 5px #141414;" | {{Paint name|A Distinctive Lack of Hue}} | ! style="border-top:solid 5px #141414;" | {{Paint name|A Distinctive Lack of Hue}} | ||
Line 97: | Line 97: | ||
! style="border-top:solid 5px #7C6C57;" | {{Paint name|Ye Olde Rustic Colour}} | ! style="border-top:solid 5px #7C6C57;" | {{Paint name|Ye Olde Rustic Colour}} | ||
|- | |- | ||
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} A57545{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} CF7336{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} E7B53B{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} F0E68C{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
|- | |- | ||
! style="border-top:solid 5px #A57545;" | {{Paint name|Muskelmannbraun}} | ! style="border-top:solid 5px #A57545;" | {{Paint name|Muskelmannbraun}} | ||
Line 107: | Line 107: | ||
! style="border-top:solid 5px #F0E68C;" | {{Paint name|The Color of a Gentlemann's Business Pants}} | ! style="border-top:solid 5px #F0E68C;" | {{Paint name|The Color of a Gentlemann's Business Pants}} | ||
|- | |- | ||
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} E9967A{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} FF69B4{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 7D4071{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 51384A{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
|- | |- | ||
! style="border-top:solid 5px #E9967A;" | {{Paint name|Dark Salmon Injustice}} | ! style="border-top:solid 5px #E9967A;" | {{Paint name|Dark Salmon Injustice}} | ||
Line 117: | Line 117: | ||
! style="border-top:solid 5px #51384A;" | {{Paint name|Noble Hatter's Violet}} | ! style="border-top:solid 5px #51384A;" | {{Paint name|Noble Hatter's Violet}} | ||
|- | |- | ||
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 2F4F4F{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 424F3B{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 808000{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 729E42{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
|- | |- | ||
! style="border-top:solid 5px #2F4F4F;" | {{Paint name|A Color Similar to Slate}} | ! style="border-top:solid 5px #2F4F4F;" | {{Paint name|A Color Similar to Slate}} | ||
Line 127: | Line 127: | ||
! style="border-top:solid 5px #729E42;" | {{Paint name|Indubitably Green}} | ! style="border-top:solid 5px #729E42;" | {{Paint name|Indubitably Green}} | ||
|- | |- | ||
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 32CD32{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} BCDDB3{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
| colspan="2" rowspan="2" | | | colspan="2" rowspan="2" | | ||
|- | |- | ||
Line 175: | Line 175: | ||
}}}} | }}}} | ||
|- | |- | ||
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} A89A8C{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 839FA3{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 3B1F23{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 18233D{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
|- | |- | ||
! style="border-top:solid 5px #A89A8C;" | {{Paint name|waterlogged lab coat red}} | ! style="border-top:solid 5px #A89A8C;" | {{Paint name|waterlogged lab coat red}} | ||
Line 185: | Line 185: | ||
! style="border-top:solid 5px #18233D;" | {{Paint name|balaclavas are forever blu}} | ! style="border-top:solid 5px #18233D;" | {{Paint name|balaclavas are forever blu}} | ||
|- | |- | ||
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} B8383B{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 5885A2{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 483838{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 384248{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
|- | |- | ||
! style="border-top:solid 5px #B8383B;" | {{Paint name|Team Spirit (RED)}} | ! style="border-top:solid 5px #B8383B;" | {{Paint name|Team Spirit (RED)}} | ||
Line 195: | Line 195: | ||
! style="border-top:solid 5px #384248;" | {{Paint name|operator's overalls blu}} | ! style="border-top:solid 5px #384248;" | {{Paint name|operator's overalls blu}} | ||
|- | |- | ||
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 803020{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 256D8D{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 654740{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} 28394D{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
|- | |- | ||
! style="border-top:solid 5px #803020;" | {{Paint name|the value of teamwork red}} | ! style="border-top:solid 5px #803020;" | {{Paint name|the value of teamwork red}} | ||
Line 205: | Line 205: | ||
! style="border-top:solid 5px #28394D;" | {{Paint name|an air of debonair blu}} | ! style="border-top:solid 5px #28394D;" | {{Paint name|an air of debonair blu}} | ||
|- | |- | ||
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} C36C2D{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | | align="center" class="paintCell" | [[File:Painted | + | | align="center" class="paintCell" | [[File:Painted {{{override|{{BASEPAGENAME}}}}} B88035{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | {{#ifexist: File:BLU_ | + | {{#ifexist: File:BLU_{{{override|{{BASEPAGENAME}}}}}{{#if:{{{style|}}}|_{{{style}}}}}.png | |
− | {{!}}align="center" class="paintCell"{{!}}[[File:RED | + | {{!}}align="center" class="paintCell"{{!}}[[File:RED {{{override|{{BASEPAGENAME}}}}}{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | {{!}}align="center" class="paintCell"{{!}}[[File:BLU | + | {{!}}align="center" class="paintCell"{{!}}[[File:BLU {{{override|{{BASEPAGENAME}}}}}{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
− | |{{!}}align="center" class="paintCell"{{!}}[[File:Painted | + | |{{!}}align="center" class="paintCell"{{!}}[[File:Painted {{{override|{{BASEPAGENAME}}}}} UNPAINTED{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] |
{{!}}colspan="1" rowspan="2"{{!}} | {{!}}colspan="1" rowspan="2"{{!}} | ||
}} | }} | ||
Line 216: | Line 216: | ||
! style="border-top:solid 5px #C36C2D;" | {{Paint name|cream spirit red}} | ! style="border-top:solid 5px #C36C2D;" | {{Paint name|cream spirit red}} | ||
! style="border-top:solid 5px #B88035;" | {{Paint name|cream spirit blu}} | ! style="border-top:solid 5px #B88035;" | {{Paint name|cream spirit blu}} | ||
− | {{#ifexist: File:BLU_ | + | {{#ifexist: File:BLU_{{{override|{{BASEPAGENAME}}}}}{{#if:{{{style|}}}|_{{{style}}}}}.png | |
! style="border-top:solid 5px #B8383B;" {{!}} {{Paint name|unpainted red}} | ! style="border-top:solid 5px #B8383B;" {{!}} {{Paint name|unpainted red}} | ||
! style="border-top:solid 5px #5885A2;" {{!}} {{Paint name|unpainted blu}} | ! style="border-top:solid 5px #5885A2;" {{!}} {{Paint name|unpainted blu}} | ||
Line 223: | Line 223: | ||
|- | |- | ||
|}<noinclude> | |}<noinclude> | ||
− | {{ | + | {{documentation}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 21:50, 29 October 2012
Main article: Paint Can
Mouseover cells to preview the images on a dark background.
This template is very complex. Please, sandbox any changes before making them. If you have questions about this template, feel free to ask on the IRC. |
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.
Examples
When used on Bill's Hat:
{{Painted variants}}
Results in:
Main article: Paint Can
Mouseover cells to preview the images on a dark background. Click on the images to enlarge them.
When used on Batter's Helmet (in conjunction with {{Tabs}}
):
{{Tabs | collapsed = yes | noalign = 1 | width = 430px | title = {{common string|Painted variants}} | orientation = horizontal | icon1 = {{item name|Hat and Headphones}} | icon2 = {{item name|No Hat and No Headphones}} | content1 = {{Painted variants|default=Hat and Headphones|h=0}} | content2 = {{Painted variants|style=No Hat and No Headphones|h=0}} }}
Results in:
[show]Painted variants
- Hat and Headphones
- No Hat and No Headphones
show;hide
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".
- width
- Sets custom width for images inside the table. Default is 85px.
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 unused UGC - Used for UGC Tournament Medal pages. Specifically, 4vs4's unused paintability for the Season 17-18 medals, 6vs6's unused paintability for the Season 30-31 medals and Highlander's unused paintability for the Season 8, 28-29 Medals.
- Template:Painted variants/Title
- Template:Painted variants/Notes
- Template:Painted variants unused/Notes