Difference between revisions of "Module:Availability/Sandbox/doc"
(Oh and I need deprecation names too, fun) |
|||
Line 149: | Line 149: | ||
=== Backwards compatibility === | === Backwards compatibility === | ||
− | {{tl|Availability}} has some parameters which have been deprecated. They will still function in this template, but their use will place the page into [[:Category:Outdated Availability Parameters|Outdated Availability Parameters]]. Please replace them with the | + | {{tl|Availability}} changes over time, and thus has some parameters which have been deprecated. They will still function in this template, but their use will place the page into [[:Category:Outdated Availability Parameters|Outdated Availability Parameters]]. Please replace them with the appropriate new value. |
{| class="wikitable grid" | {| class="wikitable grid" | ||
! class="header" | Outdated Parameter | ! class="header" | Outdated Parameter | ||
! class="header" | New Parameter | ! class="header" | New Parameter | ||
+ | ! class="header" | Output | ||
|- | |- | ||
− | | <code> | + | | <code>winter2016</code> || <code>winter-unlocked</code> || {{#invoke:Availability/Sandbox|avail|winter2016}} |
|- | |- | ||
− | | <code> | + | | <code>winter-strange2016</code> || <code>winter-unlocked-strange</code> || {{#invoke:Availability/Sandbox|avail|winter-strange2016}} |
|- | |- | ||
− | | <code> | + | | <code>winter-unusual2016</code> || <code>winter-unlocked-unusual</code> || {{#invoke:Availability/Sandbox|avail|winter-unusual2016}} |
|- | |- | ||
− | | <code> | + | | <code>crate46</code> || <code>crate-scorched</code> || {{#invoke:Availability/Sandbox|avail|crate46}} |
|- | |- | ||
− | | <code> | + | | <code>crate74</code> || <code>crate74-haunted</code> || {{#invoke:Availability/Sandbox|avail|crate74}} |
|- | |- | ||
− | | <code> | + | | <code>xmas2015</code> || <code>festive-gift</code> || {{#invoke:Availability/Sandbox|avail|xmas2015}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
|} | |} |
Revision as of 20:22, 7 January 2023
This module is very complex. If you have questions about this module, feel free to ask on the IRC. Darkid has offered to maintain this module, you may contact them if you need further assistance. |
To update which crate series are linked as active, change the list in Module:Availability/crate. |
Module:Availability (aka Template:Availability) is used to display and autotranslate the 'Availability' section in {{Item infobox}}
. Preferably, the shortcut {{avail}}
should be used.
For future reference, if creating new additions, the key cannot include a number, or it will be parsed out. Thus, if you want to add a string like xmas2015
, instead add it to the Multipart strings with xmas
and use num
to represent the 2015.
Contents
Entries
Parameter | Output |
---|---|
audition-reel |
Audition Reel |
bread-box |
Bread Box |
chemistryset |
Chemistry Set |
case-any |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "case-any".
Please do not translate these strings, they will be translated automatically. |
case-bonus |
[[Mann Co. Supply Crate/Retired case series#|Template:Dictionary/items/case]] (bonus) |
collectors |
Chemistry Set (Collector's) |
contract |
Contract (Decorated) |
contract-unique |
ConTracker |
craft |
Craft |
craft-expired |
Craft (expired) |
crate-scorched |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "crate-scorched".
Please do not translate these strings, they will be translated automatically. |
creepy-crate |
Unlocked Creepy Crate |
directors |
Director's Cut Reel |
distributed |
Distributed |
distributed-expired |
Distributed (expired) |
drop |
Drop |
drop-expired |
Drop (expired) |
festive-gift |
Smissmas 2015 Festive Gift |
gift-cauldron |
Halloween Gift Cauldron |
goodie-cauldron |
Antique Halloween Goodie Cauldron (limited) |
halloween-package |
Halloween Package |
halloween-purchase |
Purchase |
halloween-purchase-expired |
Purchase (expired) |
hauntedgift |
Haunted Halloween Gift (expired) |
keyless-crate |
Unlocked Cosmetic Crate (Unique and Strange) |
keyless-crate-unusual |
Unlocked Cosmetic Crate (Unique, Strange and Unusual) |
mvm |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "mvm".
Please do not translate these strings, they will be translated automatically. |
pallet-of-crates |
Pallet of Crates |
pile-of-curses |
Pile of Curses (expired) |
promotional |
Promotional |
promotional-craft |
Promotional (craft) |
promotional-expired |
Promotional (expired) |
promotional-expired-codes |
Promotional (expired) |
promotional-unlock |
Promotional (unlock) |
purchase |
Purchase |
purchase-limited |
Purchase (limited) |
retired |
Retired |
stock |
Stock |
stockpile |
Stockpile Crate |
trade-up |
Trade-Up |
transmute |
Halloween Transmute (Untradable) |
unavailable |
Unavailable |
unlock |
Unlock |
unusual |
Uncrate (Unusual) |
warpaint |
War Paint (Decorated) |
winter-unlocked |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "winter-unlocked".
Please do not translate these strings, they will be translated automatically. |
winter-unlocked-strange |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "winter-unlocked-strange".
Please do not translate these strings, they will be translated automatically. |
winter-unlocked-unusual |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "winter-unlocked-unusual".
Please do not translate these strings, they will be translated automatically. |
MvM related strings | |
mannup |
Reward |
australium |
Reward (Australium) |
botkiller |
Reward (Botkiller) |
mvm-both-types |
Reward (Botkiller and Australium) |
Dynamic strings (mostly used for crate numbers). The numeric value is automatically parsed. | |
crate1 |
Uncrate #1 |
crate2-strange |
Uncrate #2 (Strange) |
crate3-festive |
Uncrate #3 (Festive) (expired) |
crate4-haunted |
Uncrate #4 (Haunted) (expired) |
crate5-bonus |
[[Mann Co. Supply Crate/Retired case series#5|Template:Dictionary/items/case 5]] (bonus) |
crate6-expired |
Uncrate #6 (expired) |
unusual-7 |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "unusual-".
Please do not translate these strings, they will be translated automatically. |
Usage
{{avail|drop}}
produces Drop{{avail|drop|craft}}
produces Drop or Craft{{avail|drop|craft|purchase}}
produces Drop, Craft or Purchase{{avail|drop|craft|purchase|promotional}}
produces Drop, Craft, Purchase or Promotional{{avail|drop|craft|purchase|promotional|availability=[[Main Page|Custom]]}}
produces Drop, Craft, Purchase, Promotional or Custom
Backwards compatibility
{{Availability}}
changes over time, and thus has some parameters which have been deprecated. They will still function in this template, but their use will place the page into Outdated Availability Parameters. Please replace them with the appropriate new value.
Outdated Parameter | New Parameter | Output |
---|---|---|
winter2016 |
winter-unlocked |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "winter".
Please do not translate these strings, they will be translated automatically. |
winter-strange2016 |
winter-unlocked-strange |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "winter-strange".
Please do not translate these strings, they will be translated automatically. |
winter-unusual2016 |
winter-unlocked-unusual |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "winter-unusual".
Please do not translate these strings, they will be translated automatically. |
crate46 |
crate-scorched |
Uncrate #46 |
crate74 |
crate74-haunted |
Uncrate #74 (Haunted) (expired) |
xmas2015 |
festive-gift |
Lua error: Module:Availability/Sandbox:166: Passed an invalid string to Module:Availability: "xmas".
Please do not translate these strings, they will be translated automatically. |