This template is protected from editing.

Difference between revisions of "Template:Availability"

From Team Fortress Wiki
Jump to: navigation, search
(+ documentation)
(more)
Line 14: Line 14:
 
{{doc begin}}
 
{{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.
 
{{tl|availability}} is used to display and autotranslate the 'Availability' section in {{tl|Item infobox}}. Preferably, the shortcut '''{{tl|avail}}''' should be used.
 +
 +
=== Entries ===
 +
Defined in [[Template:Dictionary/templatecore]] (no translatable strings). Please do not create one-off or special case availability strings there, only the most common should be added (see the method in [[#Usage|Usage]] below).
 +
 +
* {{code|drop}} produces {{dictionary/templatecore/avail-drop}}
 +
* {{code|craft}} produces {{dictionary/templatecore/avail-craft}}
 +
* {{code|purchase}} produces {{dictionary/templatecore/avail-purchase}}
 +
* {{code|unlock}} produces {{dictionary/templatecore/avail-unlock}}
 +
* {{code|promotional}} produces {{dictionary/templatecore/avail-promotional}}
 +
* {{code|crate1}} produces {{dictionary/templatecore/avail-crate1}} (supports up to Series #35)
  
 
=== Usage ===
 
=== Usage ===
Line 25: Line 35:
 
=== Translation ===
 
=== Translation ===
 
* Strings for 'Drop', 'Craft', etc, are defined in [[Template:Dictionary/common strings]].
 
* 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}}.
 
* To alter the separator (i.e. the comma) per language, edit {{tl|availability/sep}}.
  
 
[[Category:Formatting templates|Availability]]
 
[[Category:Formatting templates|Availability]]
 
</noinclude>
 
</noinclude>

Revision as of 21:23, 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.

Entries

Defined in Template:Dictionary/templatecore (no translatable strings). Please do not create one-off or special case availability strings there, only the most common should be added (see the method in Usage below).

Usage

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

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

Translation