This template is protected from editing.

Difference between revisions of "Template:Availability"

From Team Fortress Wiki
Jump to: navigation, search
m (Protected "Template:Availability": used by +5,000 pages ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
(add new entries to doc, remove 'other' params, unused and for other things just put after the template)
Line 9: Line 9:
 
   #if:{{{7|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{7|error}}}}}}}}}{{
 
   #if:{{{7|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{7|error}}}}}}}}}{{
 
   #if:{{{8|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{8|error}}}}}}}}}<!--  
 
   #if:{{{8|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{8|error}}}}}}}}}<!--  
   --> }}{{
+
   -->}}</includeonly><noinclude>
  #if:{{{other1|{{{other|}}}}}}|{{availability/sep}}{{{other1|{{{other|}}}}}}}}{{
 
  #if:{{{other2|}}}|{{availability/sep}}{{{other2}}}}}{{
 
  #if:{{{other3|}}}|{{availability/sep}}{{{other3}}}}}{{
 
  #if:{{{other4|}}}|{{availability/sep}}{{{other4}}}}}</includeonly><noinclude>
 
 
{{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.
Line 27: Line 23:
 
* {{code|unlock}} produces {{dictionary/templatecore/avail-unlock}}
 
* {{code|unlock}} produces {{dictionary/templatecore/avail-unlock}}
 
* {{code|promotional}} produces {{dictionary/templatecore/avail-promotional}}
 
* {{code|promotional}} produces {{dictionary/templatecore/avail-promotional}}
 +
* {{code|distributed}} produces {{dictionary/templatecore/avail-distributed}}
 
* {{code|crate1}} produces {{dictionary/templatecore/avail-crate1}} (supports up to Series #35)
 
* {{code|crate1}} produces {{dictionary/templatecore/avail-crate1}} (supports up to Series #35)
 +
* {{code|crate24-strange}} produces {{dictionary/templatecore/avail-crate24-strange}} (supports series #19-#29 except #22)
  
 
=== Usage ===
 
=== Usage ===

Revision as of 21:59, 8 October 2011

Documentation for Availability

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

Note: strings for 'Drop', 'Craft', etc, can be translated at Template:Dictionary/common strings.

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). To alter the separator (i.e. the comma) per language, edit {{availability/sep}}.

Usage

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

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