This template is protected from editing.
Difference between revisions of "Template:Availability"
m (fix) |
m (lc) |
||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{ | ||
− | #if:{{{1|}}}|{{dictionary/templatecore/avail-{{{1|error}}}}}}}<!-- | + | #if:{{{1|}}}|{{dictionary/templatecore/avail-{{lc:{{{1|error}}}}}}}}}<!-- |
-->{{ {{#ifeq:{{SUBPAGENAME}}|fi|lc|ucfirst}}: <!-- Workaround. Finnish has all lowercase; everything else keeps case but first letter is UC -->{{ | -->{{ {{#ifeq:{{SUBPAGENAME}}|fi|lc|ucfirst}}: <!-- Workaround. Finnish has all lowercase; everything else keeps case but first letter is UC -->{{ | ||
− | #if:{{{2|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{2|error}}}}}}}{{ | + | #if:{{{2|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{2|error}}}}}}}}}{{ |
− | #if:{{{3|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{3|error}}}}}}}{{ | + | #if:{{{3|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{3|error}}}}}}}}}{{ |
− | #if:{{{4|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{4|error}}}}}}}{{ | + | #if:{{{4|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{4|error}}}}}}}}}{{ |
− | #if:{{{5|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{5|error}}}}}}}{{ | + | #if:{{{5|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{5|error}}}}}}}}}{{ |
− | #if:{{{6|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{6|error}}}}}}}{{ | + | #if:{{{6|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{6|error}}}}}}}}}{{ |
− | #if:{{{7|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{7|error}}}}}}}{{ | + | #if:{{{7|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{7|error}}}}}}}}}{{ |
− | #if:{{{8|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{{8|error}}}}}}}<!-- | + | #if:{{{8|}}}|{{availability/sep}}{{dictionary/templatecore/avail-{{lc:{{{8|error}}}}}}}}}<!-- |
--> }}{{ | --> }}{{ | ||
#if:{{{other1|{{{other|}}}}}}|{{availability/sep}}{{{other1|{{{other|}}}}}}}}{{ | #if:{{{other1|{{{other|}}}}}}|{{availability/sep}}{{{other1|{{{other|}}}}}}}}{{ |
Revision as of 23:29, 5 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.
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}}
.