Difference between revisions of "Template:Painted variants"
m (Refined styles team unpainted trigger & refined argument/#if logic) |
(Fix'd) |
||
Line 198: | Line 198: | ||
| align="center" class="paintCell" | [[File:Painted {{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}}} C36C2D{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] | | align="center" class="paintCell" | [[File:Painted {{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}}} C36C2D{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] | ||
| align="center" class="paintCell" | [[File:Painted {{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}}} B88035{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] | | align="center" class="paintCell" | [[File:Painted {{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}}} B88035{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] | ||
− | {{#ifexist: File: | + | {{#ifexist: File:BLU {{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}}}_{{{style|{{{1}}}}}}}}.png | |
{{!}}align="center" class="paintCell"{{!}}[[File:RED {{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}}}{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] | {{!}}align="center" class="paintCell"{{!}}[[File:RED {{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}}}{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] | ||
{{!}}align="center" class="paintCell"{{!}}[[File:BLU {{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}}}{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] | {{!}}align="center" class="paintCell"{{!}}[[File:BLU {{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}}}{{#if:{{{style|{{{1|}}}}}}|_{{{style|{{{1}}}}}}}}.png|85x85px]] | ||
Line 207: | Line 207: | ||
! 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: | + | {{#ifexist: File:BLU_{{#if:{{{override|}}}|{{{override}}}|{{BASEPAGENAME}}_{{{style|{{{1}}}}}}}}.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}} |
Revision as of 22:52, 13 May 2012
Main article: Paint Can
Mouseover cells to preview the images on a dark background.
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Painted variants/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: ar, de, es, fi, fr, hu, it, ja, ko, nl, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant (add) |
Documentation for Painted variants
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.