This template is protected from editing.
Difference between revisions of "Template:Availability"
(add new entries to doc, remove 'other' params, unused and for other things just put after the template) |
(add hauntedgift to list) |
||
Line 24: | Line 24: | ||
* {{code|promotional}} produces {{dictionary/templatecore/avail-promotional}} | * {{code|promotional}} produces {{dictionary/templatecore/avail-promotional}} | ||
* {{code|distributed}} produces {{dictionary/templatecore/avail-distributed}} | * {{code|distributed}} produces {{dictionary/templatecore/avail-distributed}} | ||
+ | * {{code|hauntedgift}} produces {{dictionary/templatecore/avail-hauntedgift}} | ||
* {{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) | * {{code|crate24-strange}} produces {{dictionary/templatecore/avail-crate24-strange}} (supports series #19-#29 except #22) |
Revision as of 21:27, 29 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}}
.
drop
produces Template:Dictionary/templatecore/avail-dropcraft
produces Template:Dictionary/templatecore/avail-craftpurchase
produces Template:Dictionary/templatecore/avail-purchaseunlock
produces Template:Dictionary/templatecore/avail-unlockpromotional
produces Template:Dictionary/templatecore/avail-promotionaldistributed
produces Template:Dictionary/templatecore/avail-distributedhauntedgift
produces Template:Dictionary/templatecore/avail-hauntedgiftcrate1
produces Template:Dictionary/templatecore/avail-crate1 (supports up to Series #35)crate24-strange
produces Template:Dictionary/templatecore/avail-crate24-strange (supports series #19-#29 except #22)
Usage
{{avail|drop|craft|purchase|promotional}}
produces Drop, Craft, Purchase or Promotional{{avail|drop|craft|crate1|crate15}}
produces Drop, Craft, Uncrate #1 or Uncrate #15
To have other entries that are not in the autotranslate list, add them afterward like:
| availability = {{avail|drop|purchase}}, Halloween