This template is protected from editing.
Difference between revisions of "Template:Availability"
(+ 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]]. | ||
− | |||
* 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).
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-promotionalcrate1
produces Template:Dictionary/templatecore/avail-crate1 (supports up to Series #35)
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
Translation
- Strings for 'Drop', 'Craft', etc, are defined in Template:Dictionary/common strings.
- To alter the separator (i.e. the comma) per language, edit
{{availability/sep}}
.