Difference between revisions of "Template:Availability/doc"

From Team Fortress Wiki
Jump to: navigation, search
(Created page with "{{tl|availability}} is used to display and autotranslate the 'Availability' section in {{tl|Item infobox}}. Preferably, the shortcut '''{{tl|avail}}''' should be used. <div s...")
 
m (Redirected page to Module:Availability/doc)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{tl|availability}} is used to display and autotranslate the 'Availability' section in {{tl|Item infobox}}. Preferably, the shortcut '''{{tl|avail}}''' should be used.
+
#Redirect [[Module:Availability/doc]]
 
 
<div style="background:#CFE5F5; border:1px solid #1C6191; padding:0.65em; padding-left:1.5em; margin:0.5em 0em;">'''Note''': strings for 'Drop', 'Craft', etc, can be translated at '''[[Template:Dictionary/common strings]]'''.</div>
 
 
 
=== 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). To alter the separator (i.e. the comma) per language, edit {{tl|availability/sep}}.
 
 
 
* {{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|distributed}} produces {{dictionary/templatecore/avail-distributed}}
 
* {{code|hauntedgift}} produces {{dictionary/templatecore/avail-hauntedgift}}
 
* {{code|crate1}} produces {{dictionary/templatecore/avail-crate1}} (supports all series)
 
* {{code|crate24-strange}} produces {{dictionary/templatecore/avail-crate24-strange}} (supports all series beyond #19 except #22)
 
 
 
=== 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>
 

Latest revision as of 22:28, 24 April 2016