Difference between pages "Template:Mw-langlink" and "User:Darkid/Sandbox"

(Difference between pages)
Jump to: navigation, search
Page 1
Page 2
(Add TFW as valid namespace, support non-main namespaces (edit by darkid))
 
m (Replaced content with "{{subst:Painted variants|style=No Hat and No Headphones|h=0}}")
(Tag: Replaced)
 
Line 1: Line 1:
{{#switch:{{NAMESPACE}} <!-- Whitelisting certain namespaces -->
+
{{#if:0
| Template
+
| {{ns:0}}
| Help
+
| {{#if:No Hat and No Headphones
| Team Fortress Wiki
+
| {{main|Styles{{if lang}}|l1={{common string|Styles}}}}
| Talk
+
| {{main|Paint Can{{if lang}}|l1={{item name|Paint Can}}}}
| Category
+
}}
| User
+
{{Hatnote|<small>{{Painted variants/Title|title-0}}</small>}}
| blank
+
}}
| none
+
{| class="wikitable grid" style="font-size:{{lang incomplete|en=x-small|zh-hans=small|zh-hant=small}}; font:transparent; line-height:125%; margin-bottom:0.5em"
| {{ns:0}} = {{#ifexist:{{#ifeq:{{NAMESPACE}}|{{ns:0}}||{{NAMESPACE}}:}}{{{{if lang|non-en=BASE}}PAGENAME}}{{#if:{{{en|}}}||/{{{1|}}}}}
+
{{#if:|{{ns:0}}|{{#if:No Hat and No Headphones
|{{#ifeq:{{NAMESPACE}}|{{ns:0}}||{{NAMESPACE}}:}}{{{{if lang|non-en=BASE}}PAGENAME}}{{#if:{{{en|}}}||/{{{1|}}}}}|-}} <!--End #ifexist -->
+
| {{!}}+ style="text-align:left; font-size:1.5em; padding:0.5em 0em" colspan="4" {{!}} {{#if:|{{item name|{{{name}}}}}|{{item name|No Hat and No Headphones}}}}
| #default = -
+
}}}}
}}<noinclude>{{protected|small=1}}
+
! class="header" colspan="4" | {{tooltip|'''{{Painted variants/Title|single colors}}'''|{{Painted variants/Title|title-1}}}}
== Usage ==
+
|-
* {{tlx|mw-langlink|2=fr}} on [[Hats]] will display the text "{{code|Hats/fr}}" (no link). See talk.
+
| align="center" class="paintCell" style="width:100px" title="{{item name|An Extraordinary Abundance of Tinge}}" | [[File:Painted {{BASEPAGENAME}} E6E6E6{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 
+
| align="center" class="paintCell" style="width:100px" title="{{item name|Color No. 216-190-216}}" | [[File:Painted {{BASEPAGENAME}} D8BED8{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
[[Category:Templates]]
+
| align="center" class="paintCell" style="width:100px" title="{{item name|Peculiarly Drab Tincture}}" | [[File:Painted {{BASEPAGENAME}} C5AF91{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
[[Category:Language templates]]
+
| align="center" class="paintCell" style="width:100px" title="{{item name|Aged Moustache Grey}}" | [[File:Painted {{BASEPAGENAME}} 7E7E7E{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
[[Category:Interface templates]]
+
|-
</noinclude>
+
! style="border-top:solid 5px #E6E6E6" | {{item name|An Extraordinary Abundance of Tinge}}
 +
! style="border-top:solid 5px #D8BED8" | {{item name|Color No. 216-190-216}}
 +
! style="border-top:solid 5px #C5AF91" | {{item name|Peculiarly Drab Tincture}}
 +
! style="border-top:solid 5px #7E7E7E" | {{item name|Aged Moustache Grey}}
 +
|-
 +
| align="center" class="paintCell" title="{{item name|A Distinctive Lack of Hue}}" | [[File:Painted {{BASEPAGENAME}} 141414{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|After Eight}}" | [[File:Painted {{BASEPAGENAME}} 2D2D24{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|Radigan Conagher Brown}}" | [[File:Painted {{BASEPAGENAME}} 694D3A{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|Ye Olde Rustic Colour}}" | [[File:Painted {{BASEPAGENAME}} 7C6C57{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
|-
 +
! style="border-top:solid 5px #141414" | {{item name|A Distinctive Lack of Hue}}
 +
! style="border-top:solid 5px #2D2D24" | {{item name|After Eight}}
 +
! style="border-top:solid 5px #694D3A" | {{item name|Radigan Conagher Brown}}
 +
! style="border-top:solid 5px #7C6C57" | {{item name|Ye Olde Rustic Colour}}
 +
|-
 +
| align="center" class="paintCell" title="{{item name|Muskelmannbraun}}" | [[File:Painted {{BASEPAGENAME}} A57545{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|Mann Co. Orange}}" | [[File:Painted {{BASEPAGENAME}} CF7336{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|Australium Gold}}" | [[File:Painted {{BASEPAGENAME}} E7B53B{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|The Color of a Gentlemann's Business Pants}}" | [[File:Painted {{BASEPAGENAME}} F0E68C{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
|-
 +
! style="border-top:solid 5px #A57545" | {{item name|Muskelmannbraun}}
 +
! style="border-top:solid 5px #CF7336" | {{item name|Mann Co. Orange}}
 +
! style="border-top:solid 5px #E7B53B" | {{item name|Australium Gold}}
 +
! style="border-top:solid 5px #F0E68C" | {{item name|The Color of a Gentlemann's Business Pants}}
 +
|-
 +
| align="center" class="paintCell" title="{{item name|Dark Salmon Injustice}}" | [[File:Painted {{BASEPAGENAME}} E9967A{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|Pink as Hell}}" | [[File:Painted {{BASEPAGENAME}} FF69B4{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|A Deep Commitment to Purple}}" | [[File:Painted {{BASEPAGENAME}} 7D4071{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|Noble Hatter's Violet}}" | [[File:Painted {{BASEPAGENAME}} 51384A{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
|-
 +
! style="border-top:solid 5px #E9967A" | {{item name|Dark Salmon Injustice}}
 +
! style="border-top:solid 5px #FF69B4" | {{item name|Pink as Hell}}
 +
! style="border-top:solid 5px #7D4071" | {{item name|A Deep Commitment to Purple}}
 +
! style="border-top:solid 5px #51384A" | {{item name|Noble Hatter's Violet}}
 +
|-
 +
| align="center" class="paintCell" title="{{item name|A Color Similar to Slate}}" | [[File:Painted {{BASEPAGENAME}} 2F4F4F{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|Zepheniah's Greed}}" | [[File:Painted {{BASEPAGENAME}} 424F3B{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|Drably Olive}}" | [[File:Painted {{BASEPAGENAME}} 808000{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|Indubitably Green}}" | [[File:Painted {{BASEPAGENAME}} 729E42{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
|-
 +
! style="border-top:solid 5px #2F4F4F" | {{item name|A Color Similar to Slate}}
 +
! style="border-top:solid 5px #424F3B" | {{item name|Zepheniah's Greed}}
 +
! style="border-top:solid 5px #808000" | {{item name|Drably Olive}}
 +
! style="border-top:solid 5px #729E42" | {{item name|Indubitably Green}}
 +
|-
 +
| align="center" class="paintCell" title="{{item name|The Bitter Taste of Defeat and Lime}}" | [[File:Painted {{BASEPAGENAME}} 32CD32{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{item name|A Mann's Mint}}" | [[File:Painted {{BASEPAGENAME}} BCDDB3{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| colspan="2" rowspan="2" |
 +
|-
 +
! style="border-top:solid 5px #32CD32" | {{item name|The Bitter Taste of Defeat and Lime}}
 +
! style="border-top:solid 5px #BCDDB3" | {{item name|A Mann's Mint}}
 +
|-
 +
! class="header" colspan="4" | {{tooltip|'''{{Painted variants/Title|team colors}}'''|{{Painted variants/Title|title-2}}}}
 +
|-
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Waterlogged Lab Coat|RED}}" | [[File:Painted {{BASEPAGENAME}} A89A8C{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Waterlogged Lab Coat|BLU}}" | [[File:Painted {{BASEPAGENAME}} 839FA3{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Balaclavas Are Forever|RED}}" | [[File:Painted {{BASEPAGENAME}} 3B1F23{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Balaclavas Are Forever|BLU}}" | [[File:Painted {{BASEPAGENAME}} 18233D{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
|-
 +
! style="border-top:solid 5px #A89A8C" | {{Painted variants/Paint name|Waterlogged Lab Coat|RED}}
 +
! style="border-top:solid 5px #839FA3" | {{Painted variants/Paint name|Waterlogged Lab Coat|BLU}}
 +
! style="border-top:solid 5px #3B1F23" | {{Painted variants/Paint name|Balaclavas Are Forever|RED}}
 +
! style="border-top:solid 5px #18233D" | {{Painted variants/Paint name|Balaclavas Are Forever|BLU}}
 +
|-
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Team Spirit|RED}}" | [[File:Painted {{BASEPAGENAME}} B8383B{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Team Spirit|BLU}}" | [[File:Painted {{BASEPAGENAME}} 5885A2{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Operator's Overalls|RED}}" | [[File:Painted {{BASEPAGENAME}} 483838{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Operator's Overalls|BLU}}" | [[File:Painted {{BASEPAGENAME}} 384248{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
|-
 +
! style="border-top:solid 5px #B8383B" | {{Painted variants/Paint name|Team Spirit|RED}}
 +
! style="border-top:solid 5px #5885A2" | {{Painted variants/Paint name|Team Spirit|BLU}}
 +
! style="border-top:solid 5px #483838" | {{Painted variants/Paint name|Operator's Overalls|RED}}
 +
! style="border-top:solid 5px #384248" | {{Painted variants/Paint name|Operator's Overalls|BLU}}
 +
|-
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|The Value of Teamwork|RED}}" | [[File:Painted {{BASEPAGENAME}} 803020{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|The Value of Teamwork|BLU}}" | [[File:Painted {{BASEPAGENAME}} 256D8D{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|An Air of Debonair|RED}}" | [[File:Painted {{BASEPAGENAME}} 654740{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|An Air of Debonair|BLU}}" | [[File:Painted {{BASEPAGENAME}} 28394D{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
|-
 +
! style="border-top:solid 5px #803020" | {{Painted variants/Paint name|The Value of Teamwork|RED}}
 +
! style="border-top:solid 5px #256D8D" | {{Painted variants/Paint name|The Value of Teamwork|BLU}}
 +
! style="border-top:solid 5px #654740" | {{Painted variants/Paint name|An Air of Debonair|RED}}
 +
! style="border-top:solid 5px #28394D" | {{Painted variants/Paint name|An Air of Debonair|BLU}}
 +
|-
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Cream Spirit|RED}}" | [[File:Painted {{BASEPAGENAME}} C36C2D{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
| align="center" class="paintCell" title="{{Painted variants/Paint name|Cream Spirit|BLU}}" | [[File:Painted {{BASEPAGENAME}} B88035{{#if:No Hat and No Headphones|_No Hat and No Headphones}}.png|85x85px]]
 +
{{#ifexist: File:{{#if:|{{{override-prefix}}} BLU_|BLU_}}{{BASEPAGENAME}}{{#ifeq:{{lc:}}|none||{{#if:|_{{{style-unpainted}}}|{{#if:No Hat and No Headphones|_No Hat and No Headphones}}}}}}.png |
 +
{{!}}align="center" class="paintCell" title="{{Painted variants/Paint name|Unpainted|RED}}"{{!}}[[File:{{#if:|{{{override-prefix}}} RED|RED}} {{BASEPAGENAME}}{{#ifeq:{{lc:}}|none||{{#if:|_{{{style-unpainted}}}|{{#if:No Hat and No Headphones|_No Hat and No Headphones}}}}}}.png|85x85px]]
 +
{{!}}align="center" class="paintCell" title="{{Painted variants/Paint name|Unpainted|BLU}}"{{!}}[[File:{{#if:|{{{override-prefix}}} BLU|BLU}} {{BASEPAGENAME}}{{#ifeq:{{lc:}}|none||{{#if:|_{{{style-unpainted}}}|{{#if:No Hat and No Headphones|_No Hat and No Headphones}}}}}}.png|85x85px]]
 +
|{{!}}align="center" class="paintCell" title="{{item name|Unpainted}}"{{!}}[[File:Painted {{BASEPAGENAME}} UNPAINTED{{#ifeq:{{lc:}}|none||{{#if:|_{{{style-unpainted}}}|{{#if:No Hat and No Headphones|_No Hat and No Headphones}}}}}}.png|85x85px]]
 +
{{!}}colspan="1" rowspan="2"{{!}}
 +
}}
 +
|-
 +
! style="border-top:solid 5px #C36C2D" | {{Painted variants/Paint name|Cream Spirit|RED}}
 +
! style="border-top:solid 5px #B88035" | {{Painted variants/Paint name|Cream Spirit|BLU}}
 +
{{#ifexist: File:BLU_{{BASEPAGENAME}}{{#ifeq:{{lc:}}|none||{{#if:|_{{{style-unpainted}}}|{{#if:No Hat and No Headphones|_No Hat and No Headphones}}}}}}.png |
 +
! style="border-top:solid 5px #B8383B" {{!}} {{Painted variants/Paint name|Unpainted|RED}}
 +
! style="border-top:solid 5px #5885A2" {{!}} {{Painted variants/Paint name|Unpainted|BLU}}
 +
| ! style="border-top:solid 5px #F3A957" {{!}} {{item name|Unpainted}}
 +
}}
 +
|-
 +
|}