This template is protected from editing.

Difference between revisions of "Template:Availability"

From Team Fortress Wiki
Jump to: navigation, search
m (missing brackets)
(+ documentation)
Line 8: Line 8:
 
   #if:{{{7|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{7|error}}}}}}}{{
 
   #if:{{{7|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{7|error}}}}}}}{{
 
   #if:{{{8|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{8|error}}}}}}}{{
 
   #if:{{{8|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{8|error}}}}}}}{{
   #if:{{{other1|}}}|{{availability/sep}}{{{other1}}}}}{{
+
   #if:{{{other1|{{{other|}}}}}}|{{availability/sep}}{{{other1|{{{other|}}}}}}}}{{
 
   #if:{{{other2|}}}|{{availability/sep}}{{{other2}}}}}{{
 
   #if:{{{other2|}}}|{{availability/sep}}{{{other2}}}}}{{
 
   #if:{{{other3|}}}|{{availability/sep}}{{{other3}}}}}{{
 
   #if:{{{other3|}}}|{{availability/sep}}{{{other3}}}}}{{
   #if:{{{other4|}}}|{{availability/sep}}{{{other4}}}}}</includeonly>
+
   #if:{{{other4|}}}|{{availability/sep}}{{{other4}}}}}</includeonly><noinclude>
 +
{{doc begin}}
 +
{{tl|availability}} is used to display and autotranslate the 'Availability' section in {{tl|Item infobox}}. Preferably, the shortcut '''{{tl|avail}}''' should be used.
 +
 
 +
=== Usage ===
 +
* {{tlx|avail|drop|craft|purchase|promotional}} produces {{avail|drop|craft|purchase|promotional}}
 +
* {{tlx|avail|drop|craft|crate1|crate15}} produces {{avail|drop|craft|crate1|crate15}}
 +
 
 +
To have other entries that are not in the autotranslate list, add them afterward like:
 +
 
 +
<nowiki>| availability = {{avail|drop|purchase}}, Halloween</nowiki>
 +
 
 +
=== Translation ===
 +
* Strings for 'Drop', 'Craft', etc, are defined in [[Template:Dictionary/common strings]].
 +
* Strings accepted for this template are defined in [[Template:Dictionary/templatecore]] (no translatable strings).
 +
* To alter the separator (i.e. the comma) per language, edit {{tl|availability/sep}}.
 +
 
 +
[[Category:Formatting templates|Availability]]
 +
</noinclude>

Revision as of 21:11, 22 September 2011

Documentation for Availability

{{availability}} is used to display and autotranslate the 'Availability' section in {{Item infobox}}. Preferably, the shortcut {{avail}} should be used.

Usage

To have other entries that are not in the autotranslate list, add them afterward like:

| availability = {{avail|drop|purchase}}, Halloween

Translation