|
|
(3 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
− | {{tl|availability}} is used to display and autotranslate the 'Availability' section in {{tl|Item infobox}}. Preferably, the shortcut '''{{tl|avail}}''' should be used.
| + | #Redirect [[Module:Availability/doc]] |
− | | |
− | <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 ===
| |
− | 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|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|distributed}} produces {{dictionary/templatecore/avail-distributed}}
| |
− | * {{code|hauntedgift}} produces {{dictionary/templatecore/avail-hauntedgift}}
| |
− | * {{code|crate1}} produces {{dictionary/templatecore/avail-crate1}} (supports all series)
| |
− | * {{code|crate24-strange}} produces {{dictionary/templatecore/avail-crate24-strange}} (supports all series beyond #19 except #22)
| |
− | * {{code|crate35}} or {{code|crate36}} produces {{dictionary/templatecore/avail-crate35}}
| |
− | * {{code|botkiller}} produces {{dictionary/templatecore/avail-botkiller}}
| |
− | * {{code|mannup}} produces {{dictionary/templatecore/avail-mannup}}
| |
− | * {{code|crate74-nohaunt}} produces {{dictionary/templatecore/avail-crate74-nohaunt}}
| |
− | * {{code|collectors}} produces {{dictionary/templatecore/avail-collectors}}
| |
− | * {{code|unusual}} produces {{dictionary/templatecore/avail-unusual}}
| |
− | * {{code|retired}} produces {{dictionary/templatecore/avail-retired}}
| |
− | * {{code|chemistryset}} produces {{dictionary/templatecore/avail-chemistryset}}
| |
− | * {{code|strangifier-series-1}} produces {{dictionary/templatecore/avail-strangifier-series-1}}. Tooltips can be translated at [[Template:Dictionary/common strings#strangifier-series-x, etc]]
| |
− | * {{code|strangifier-crate-82}} {{dictionary/templatecore/avail-strangifier-crate-82}}. Tooltips can be translated at [[Template:Dictionary/common strings#strangifier-series-x, etc]]
| |
− | | |
− | === Usage ===
| |
− | * {{tlx|avail|drop|craft|purchase|promotional}} produces {{avail|drop|craft|purchase|promotional}}
| |
− | * {{tlx|avail|drop|craft|crate1|crate15}} produces {{avail|drop|craft|crate1|crate15}}
| |
− | | |
− | To have other entries that are not in the autotranslate list, add them afterward like:
| |
− | | |
− | <nowiki>| availability = {{avail|drop|purchase}}, Halloween</nowiki>
| |