Difference between revisions of "Template:Crate"

From Team Fortress Wiki
Jump to: navigation, search
(reformat doc, add style param, rm translation switching template (do not use if there is no strings to actually translate))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<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>
+
<includeonly>[[Mann Co. Supply Crate{{if lang}}#{{{1|}}}|{{#if:{{{color|}}}{{{style|}}}|<span style="color:{{{color|}}};{{{style|}}}">}}{{#if:{{{text|}}}|{{{text|}}}|{{#if:{{{2|}}}|{{{2|}}} {{{1|}}}|{{{1|}}} }} }}{{#if:{{{color|}}}|</span>}}]]</includeonly><noinclude>
 +
{{doc begin}}
 +
Used to create links to crate sections on [[Mann Co. Supply Crate]].
  
{{translation switching|es, fi, fr, hu, it, ko, pl, pt-br, ru, sv, zh-hant}}
+
=== Parameters ===
  
==Parameters==
+
{| class="wikitable" cellpadding="2"
 
+
|-
{| class="wikitable" cellpadding=2  
+
! class="header" | Parameter
|Parameter
+
! class="header" | Description
|Description
+
! class="header" | Example
|Example
+
! class="header" | Result
|Result
 
 
|-
 
|-
|1
+
| {{code|1}}
|Number of crate
+
| Number of crate
|<nowiki>{{crate|24}}</nowiki>
+
| <nowiki>{{crate|24}}</nowiki>
|[[Mann Co. Supply Crate#24|24]]
+
| [[Mann Co. Supply Crate#24|24]]
 
|-
 
|-
|2
+
| {{code|2}}
|Adds before "1"
+
| Adds before "1"
|<nowiki>{{crate|24|My lovely crate is}}</nowiki>
+
| <nowiki>{{crate|24|My lovely crate is}}</nowiki>
|[[Mann Co. Supply Crate#24|My lovely crate is 24]]
+
| [[Mann Co. Supply Crate#24|My lovely crate is 24]]
 
|-
 
|-
|text
+
| {{code|text}}
|Replaces 1 and 2 param in text
+
| Replaces 1 and 2 param in text
|<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
+
| {{code|color}}
|Text color
+
| Text color
|<nowiki>{{crate|24|My lovely crate is|text=Just example|color=#ebe2ca}}</nowiki>
+
| <nowiki>{{crate|24|My lovely crate is|text=Just example|color=#ebe2ca}}</nowiki>
|{{crate|24|My lovely crate is|text=Just example|color=#ebe2ca}}
+
| {{crate|24|My lovely crate is|text=Just example|color=#ebe2ca}}
 
|-
 
|-
 
|}
 
|}
 +
 +
[[Category:Link insertion templates|Crate]]
 
</noinclude>
 
</noinclude>

Latest revision as of 09:45, 19 February 2012

Documentation for Crate

Used to create links to crate sections on Mann Co. Supply Crate.

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