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))
 
(2 intermediate revisions by one other user not shown)
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|}}}{{{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
+
|-
 +
| {{code|1}}
 +
| Number of crate
 +
| <nowiki>{{crate|24}}</nowiki>
 +
| [[Mann Co. Supply Crate#24|24]]
 
|-
 
|-
|1
+
| {{code|2}}
|Number of crate
+
| Adds before "1"
|<nowiki>{{crate|24}}</nowiki>
+
| <nowiki>{{crate|24|My lovely crate is}}</nowiki>
|[[Mann Co. Supply Crate#24|24]]
+
| [[Mann Co. Supply Crate#24|My lovely crate is 24]]
 
|-
 
|-
|2
+
| {{code|text}}
|Adds before "1"
+
| Replaces 1 and 2 param in text
|<nowiki>{{crate|24|My lovely crate is}}</nowiki>
+
| <nowiki>{{crate|24|My lovely crate is|text=Just example}}</nowiki>
|[[Mann Co. Supply Crate#24|My lovely crate is 24]]
+
| [[Mann Co. Supply Crate#24|Just example]]
 
|-
 
|-
|text
+
| {{code|color}}
|Replaces 1 and 2 param in text
+
| Text color
|<nowiki>{{crate|24|My lovely crate is|text=Just example}}</nowiki>
+
| <nowiki>{{crate|24|My lovely crate is|text=Just example|color=#ebe2ca}}</nowiki>
|[[Mann Co. Supply Crate#24|Just example]]
+
| {{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