This template is protected from editing.
Difference between revisions of "Template:Availability"
(more) |
(lowercase finnish support) |
||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{ | ||
− | #if:{{{1|}}}|{{dictionary/templatecore/avail-{{{1|error}}}}}}}{{ | + | #if:{{{1|}}}|{{dictionary/templatecore/avail-{{{1|error}}}}}}}<!-- |
+ | -->{{#ifeq:{{SUBPAGENAME}}|fi|{{lc:{{ | ||
#if:{{{2|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{2|error}}}}}}}{{ | #if:{{{2|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{2|error}}}}}}}{{ | ||
#if:{{{3|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{3|error}}}}}}}{{ | #if:{{{3|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{3|error}}}}}}}{{ | ||
Line 7: | Line 8: | ||
#if:{{{6|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{6|error}}}}}}}{{ | #if:{{{6|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{6|error}}}}}}}{{ | ||
#if:{{{7|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{7|error}}}}}}}{{ | #if:{{{7|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{7|error}}}}}}}{{ | ||
− | #if:{{{8|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{8|error}}}}}}}{{ | + | #if:{{{8|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{8|error}}}}}}}<!-- |
+ | -->}}|}}{{ | ||
#if:{{{other1|{{{other|}}}}}}|{{availability/sep}}{{{other1|{{{other|}}}}}}}}{{ | #if:{{{other1|{{{other|}}}}}}|{{availability/sep}}{{{other1|{{{other|}}}}}}}}{{ | ||
#if:{{{other2|}}}|{{availability/sep}}{{{other2}}}}}{{ | #if:{{{other2|}}}|{{availability/sep}}{{{other2}}}}}{{ |
Revision as of 21:14, 24 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}}
.