This template is protected from editing.
Difference between revisions of "Template:Availability"
m (lc) |
(make note about translation) |
||
Line 16: | Line 16: | ||
{{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. | ||
+ | |||
+ | <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 === | === 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). | + | 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|drop}} produces {{dictionary/templatecore/avail-drop}} | ||
Line 34: | Line 36: | ||
<nowiki>| availability = {{avail|drop|purchase}}, Halloween</nowiki> | <nowiki>| availability = {{avail|drop|purchase}}, Halloween</nowiki> | ||
− | |||
− | |||
− | |||
− | |||
[[Category:Formatting templates|Availability]] | [[Category:Formatting templates|Availability]] | ||
</noinclude> | </noinclude> |
Revision as of 11:08, 6 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-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