Difference between revisions of "Module:Availability/Sandbox/doc"

From Team Fortress Wiki
Jump to: navigation, search
m (add stuff)
(Oh and I need deprecation names too, fun)
Line 37: Line 37:
 
| <code>craft-expired</code> || {{#invoke:Availability/Sandbox|avail|craft-expired}}
 
| <code>craft-expired</code> || {{#invoke:Availability/Sandbox|avail|craft-expired}}
 
|-
 
|-
| crate-scorched
+
| <code>crate-scorched</code> || {{#invoke:Availability/Sandbox|avail|crate-scorched}}
 
|-
 
|-
 
| <code>creepy-crate</code> || {{#invoke:Availability/Sandbox|avail|creepy-crate}}
 
| <code>creepy-crate</code> || {{#invoke:Availability/Sandbox|avail|creepy-crate}}
Line 50: Line 50:
 
|-
 
|-
 
| <code>drop-expired</code> || {{#invoke:Availability/Sandbox|avail|drop-expired}}
 
| <code>drop-expired</code> || {{#invoke:Availability/Sandbox|avail|drop-expired}}
 +
|-
 +
| <code>festive-gift</code> || {{#invoke:Availability/Sandbox|avail|festive-gift}}
 
|-
 
|-
 
| <code>gift-cauldron</code> || {{#invoke:Availability/Sandbox|avail|gift-cauldron}}
 
| <code>gift-cauldron</code> || {{#invoke:Availability/Sandbox|avail|gift-cauldron}}
Line 92: Line 94:
 
|-
 
|-
 
| <code>stockpile</code> || {{#invoke:Availability/Sandbox|avail|stockpile}}
 
| <code>stockpile</code> || {{#invoke:Availability/Sandbox|avail|stockpile}}
|-
 
| strangifier
 
 
|-
 
|-
 
| <code>trade-up</code> || {{#invoke:Availability/Sandbox|avail|trade-up}}
 
| <code>trade-up</code> || {{#invoke:Availability/Sandbox|avail|trade-up}}
Line 105: Line 105:
 
| <code>unusual</code> || {{#invoke:Availability/Sandbox|avail|unusual}}
 
| <code>unusual</code> || {{#invoke:Availability/Sandbox|avail|unusual}}
 
|-
 
|-
| <code>xmas2015</code> || {{#invoke:Availability/Sandbox|avail|xmas2015}}
+
| <code>warpaint</code> || {{#invoke:Availability/Sandbox|avail|warpaint}}
 
|-
 
|-
| <code>warpaint</code> || {{#invoke:Availability/Sandbox|avail|warpaint}}
+
| <code>winter-unlocked</code> || {{#invoke:Availability/Sandbox|avail|winter-unlocked}}
 +
|-
 +
| <code>winter-unlocked-strange</code> || {{#invoke:Availability/Sandbox|avail|winter-unlocked-strange}}
 +
|-
 +
| <code>winter-unlocked-unusual</code> || {{#invoke:Availability/Sandbox|avail|winter-unlocked-unusual}}
 
|-
 
|-
| colspan="2" | [[MvM]] related strings
+
! class="header" colspan="2" | [[MvM]] related strings
 
|-
 
|-
 
| <code>mannup</code> || {{#invoke:Availability/Sandbox|avail|mannup}}
 
| <code>mannup</code> || {{#invoke:Availability/Sandbox|avail|mannup}}
Line 119: Line 123:
 
| <code>mvm-both-types</code> || {{#invoke:Availability/Sandbox|avail|mvm-both-types}}
 
| <code>mvm-both-types</code> || {{#invoke:Availability/Sandbox|avail|mvm-both-types}}
 
|-
 
|-
| colspan="2" | Dynamic strings (mostly used for crate numbers). The numeric value is automatically parsed.
+
! class="header" colspan="2" | Dynamic strings (mostly used for crate numbers). The numeric value is automatically parsed.
 
|-
 
|-
 
| <code>crate1</code> || {{#invoke:Availability/Sandbox|avail|crate1}}
 
| <code>crate1</code> || {{#invoke:Availability/Sandbox|avail|crate1}}
Line 133: Line 137:
 
| <code>crate6-expired</code> || {{#invoke:Availability/Sandbox|avail|crate6-expired}}
 
| <code>crate6-expired</code> || {{#invoke:Availability/Sandbox|avail|crate6-expired}}
 
|-
 
|-
| strangifier-crate-
+
| <code>unusual-7</code> || {{#invoke:Availability/Sandbox|avail|unusual-7}}
|-
 
| strangifier-series-
 
|-
 
| unusual-
 
 
|-
 
|-
| xmas
 
|-
 
| winter
 
|-
 
| winter-strange
 
|-
 
| winter-unusual
 
 
|}
 
|}
  
Line 190: Line 183:
 
|-
 
|-
 
| <code>crate##-nohaunt</code> || <code>crate##</code>
 
| <code>crate##-nohaunt</code> || <code>crate##</code>
|}
 
 
=== Deprecated Parameters ===
 
{| class="wikitable grid"
 
! class="header" | Parameter
 
! class="header" | Deprecation reason
 
|-
 
| <code>strangifier</code> || Strangifiers do not grant new items, they merely change the quality of existing ones.
 
|-
 
| <code>strangifier-strange</code> || Strangifiers do not grant new items, they merely change the quality of existing ones.
 
|-
 
| <code>strangifier-series-5</code> || Strangifiers do not grant new items, they merely change the quality of existing ones.
 
 
|-
 
|-
| <code>strangifier-crate-6</code> || Strangifiers do not grant new items, they merely change the quality of existing ones.
+
| <code>xmas2015</code> || <code>festive-gift</code>
 
|}
 
|}

Revision as of 20:05, 7 January 2023

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.


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

Backwards compatibility

{{Availability}} 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

Outdated Parameter New Parameter
crate-nice crate36
crate-nice2012 crate53
crate-nice2013 crate79
crate-nice2014 crate89
crate-naughty crate35-festive
crate-naughty2012 crate52-festive
crate-naughty2013 crate78-festive
crate-naughty2014 crate88-festive
store purchase
achievement unlock
strongbox crate81
crate46 crate-scorched
crate74 crate74-haunted
winter2016 crate105
crate##-nohaunt crate##
xmas2015 festive-gift