Difference between revisions of "Template:Crate"

From Team Fortress Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>[[Mann Co. Supply Crate{{if lang}}#{{{1|}}}|{{#if:{{{text|}}}|{{{text|}}}|{{#if:{{{2|}}}|{{{2|}}} {{{1|}}}|{{{1|}}} }} }}]]</includeonly><noinclude>
+
<includeonly>[[Mann Co. Supply Crate{{if lang}}#{{{1|}}}|{{#if:{{{color|}}}|<font style="color:{{{color|}}}">}}{{#if:{{{text|}}}|{{{text|}}}|{{#if:{{{2|}}}|{{{2|}}} {{{1|}}}|{{{1|}}} }} }}{{#if:{{{color|}}}|</font>}}]]</includeonly><noinclude>
  
 
{{translation switching|es, fi, fr, hu, it, ko, pl, pt-br, ru, sv, zh-hant}}
 
{{translation switching|es, fi, fr, hu, it, ko, pl, pt-br, ru, sv, zh-hant}}
Line 25: Line 25:
 
|<nowiki>{{crate|24|My lovely crate is|text=Just example}}</nowiki>
 
|<nowiki>{{crate|24|My lovely crate is|text=Just example}}</nowiki>
 
|[[Mann Co. Supply Crate#24|Just example]]
 
|[[Mann Co. Supply Crate#24|Just example]]
 +
|-
 +
|color
 +
|Text color
 +
|<nowiki>{{crate|24|My lovely crate is|text=Just example|color=#ebe2ca}}</nowiki>
 +
|{{crate|24|My lovely crate is|text=Just example|color=#ebe2ca}}
 
|-
 
|-
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 08:33, 19 February 2012


Parameters

Parameter Description Example Result
1 Number of crate {{crate|24}} 24
2 Adds before "1" {{crate|24|My lovely crate is}} My lovely crate is 24
text Replaces 1 and 2 param in text {{crate|24|My lovely crate is|text=Just example}} Just example
color Text color {{crate|24|My lovely crate is|text=Just example|color=#ebe2ca}} Just example