Difference between revisions of "Module:Availability/doc"

From Team Fortress Wiki
Jump to: navigation, search
Line 26: Line 26:
 
|-
 
|-
 
| <code>contract</code> || {{#invoke:Availability|avail|contract}}
 
| <code>contract</code> || {{#invoke:Availability|avail|contract}}
 +
|-
 +
| <code>contract-unique</code> || {{#invoke:Availability|avail|contract-unique}}
 
|-
 
|-
 
| <code>craft</code> || {{#invoke:Availability|avail|craft}}
 
| <code>craft</code> || {{#invoke:Availability|avail|craft}}
Line 32: Line 34:
 
|-
 
|-
 
| <code>directors</code> || {{#invoke:Availability|avail|directors}}
 
| <code>directors</code> || {{#invoke:Availability|avail|directors}}
 +
|-
 +
| <code>distributed</code> || {{#invoke:Availability|avail|distributed}}
 
|-
 
|-
 
| <code>drop</code> || {{#invoke:Availability|avail|drop}}
 
| <code>drop</code> || {{#invoke:Availability|avail|drop}}
Line 55: Line 59:
 
| <code>stockpile</code> || {{#invoke:Availability|avail|stockpile}}
 
| <code>stockpile</code> || {{#invoke:Availability|avail|stockpile}}
 
|-
 
|-
| <code>strangifier</code> || {{#invoke:Availability|avail|strangifier}}
+
| <code>trade-up</code> || {{#invoke:Availability|avail|trade-up}}
 +
|-
 +
| <code>transmute</code> || {{#invoke:Availability|avail|transmute}}
 
|-
 
|-
 
| <code>unavailable</code> || {{#invoke:Availability|avail|unavailable}}
 
| <code>unavailable</code> || {{#invoke:Availability|avail|unavailable}}
Line 65: Line 71:
 
| <code>xmas2015</code> || {{#invoke:Availability|avail|xmas2015}}
 
| <code>xmas2015</code> || {{#invoke:Availability|avail|xmas2015}}
 
|-
 
|-
| <code>winter2016</code> || {{#invoke:Availability|avail|winter2016}}
+
| <code>warpaint</code> || {{#invoke:Availability|avail|warpaint}}
 
|-
 
|-
 
| <code>winter2016-strange</code> || {{#invoke:Availability|avail|winter2016-strange}}
 
| <code>winter2016-strange</code> || {{#invoke:Availability|avail|winter2016-strange}}
Line 89: Line 95:
 
| <code>crate4-haunted</code> || {{#invoke:Availability|avail|crate4-haunted}}
 
| <code>crate4-haunted</code> || {{#invoke:Availability|avail|crate4-haunted}}
 
|-
 
|-
| <code>strangifier-series-5</code> || {{#invoke:Availability|avail|strangifier-series-5}}
+
| <code>unusual-5</code> || {{#invoke:Availability|avail|unusual-5}}
|-
 
| <code>strangifier-crate-6 ||</code> {{#invoke:Availability|avail|strangifier-crate-6}}
 
|-
 
| <code>unusual-3</code> || {{#invoke:Availability|avail|unusual-3}}
 
 
|-
 
|-
 
|}
 
|}
Line 105: Line 107:
  
 
=== Backwards compatibility ===
 
=== Backwards compatibility ===
{{tl|Availability}} (which used to be {{tl|Dictionary/templatecore}}) used a few parameters which were sloppily implemented. They will still function in this template, but their use will place the page into [[:Category:Outdated Availability Parameters|Outdated Availability Parameters]]. Their use is documented here, but only to ensure that the module still works with them. Do not use them!
+
{{tl|Availability}} (which used to be {{tl|Dictionary/templatecore}}) used a few parameters which were sloppily implemented. They will still function in this template, but their use will place the page into [[:Category:Outdated Availability Parameters|Outdated Availability Parameters]].
  
 
{| class="wikitable grid"
 
{| class="wikitable grid"
 
! class="header" | Outdated Parameter
 
! class="header" | Outdated Parameter
! class="header" | Output
 
 
! class="header" | New Parameter
 
! class="header" | New Parameter
! class="header" | Output
 
 
|-
 
|-
| <code>crate-nice</code> || {{avail|crate-nice}}
+
| <code>crate-nice</code> || <code>crate36</code>
| <code>crate36</code> || {{#invoke:Availability|avail|crate36}}
+
|-
 +
| <code>crate-nice2012</code> || <code>crate53</code>
 
|-
 
|-
| <code>crate-nice2012</code> || {{avail|crate-nice2012}}
+
| <code>crate-nice2013</code> || <code>crate79</code>
| <code>crate53</code> || {{#invoke:Availability|avail|crate53}}
 
 
|-
 
|-
| <code>crate-nice2013</code> || {{avail|crate-nice2013}}
+
| <code>crate-nice2014</code> || <code>crate89</code>
| <code>crate79</code> || {{#invoke:Availability|avail|crate79}}
 
 
|-
 
|-
| <code>crate-nice2014</code> || {{avail|crate-nice2014}}
+
| <code>crate-naughty</code> || <code>crate35-festive</code>
| <code>crate89</code> || {{#invoke:Availability|avail|crate89}}
 
 
|-
 
|-
| <code>crate-naughty</code> || {{avail|crate-naughty}}
+
| <code>crate-naughty2012</code> || <code>crate52-festive</code>
| <code>crate35-festive</code> || {{#invoke:Availability|avail|crate35-festive}}
 
 
|-
 
|-
| <code>crate-naughty2012</code> || {{avail|crate-naughty2012}}
+
| <code>crate-naughty2013</code> || <code>crate78-festive</code>
| <code>crate52-festive</code> || {{#invoke:Availability|avail|crate52-festive}}
 
 
|-
 
|-
| <code>crate-naughty2013</code> || {{avail|crate-naughty2013}}
+
| <code>crate-naughty2014</code> || <code>crate88-festive</code>
| <code>crate78-festive</code> || {{#invoke:Availability|avail|crate78-festive}}
 
 
|-
 
|-
| <code>crate-naughty2014</code> || {{avail|crate-naughty2014}}
+
| <code>store</code> || <code>purchase</code>
| <code>crate88-festive</code> || {{#invoke:Availability|avail|crate88-festive}}
 
 
|-
 
|-
| colspan="4" |
+
| <code>achievement</code> || <code>unlock</code>
 
|-
 
|-
| <code>store</code> || {{avail|store}}
+
| <code>strongbox</code> || <code>crate81</code>
| <code>purchase</code> || {{#invoke:Availability|avail|purchase}}
 
 
|-
 
|-
| <code>achievement</code> || {{avail|achievement}}
+
| <code>crate46</code> || <code>crate-scorched</code>
| <code>unlock</code> || {{#invoke:Availability|avail|unlock}}
 
 
|-
 
|-
| <code>strangifier-strange</code> || {{avail|strangifier-strange}}
+
| <code>crate74</code> || <code>crate74-haunted</code>
| <code>strangifier</code> || {{#invoke:Availability|avail|strangifier}}
 
 
|-
 
|-
| <code>strongbox</code> || {{avail|strongbox}}
+
| <code>winter2016</code> || <code>crate105</code>
| <code>crate81</code> || {{#invoke:Availability|avail|crate81}}
+
|}
 +
 
 +
=== Deprecated Parameters ===
 +
 
 +
{| class="wikitable grid"
 +
! class="header" | Parameter
 +
! class="header" | Deprecation reason
 
|-
 
|-
| <code>crate46</code> || {{avail|crate46}}
+
| <code>strangifier</code> || Strangifiers do not grant new items, they merely change the quality of existing ones.
| <code>crate-scorched</code> || {{#invoke:Availability|avail|crate-scorched}}
 
 
|-
 
|-
| <code>crate74</code> ||  {{avail|crate74}}
+
| <code>strangifier-series-5</code> || Strangifiers do not grant new items, they merely change the quality of existing ones.
| <code>crate74-haunted</code> || {{#invoke:Availability|avail|crate74-haunted}}
 
 
|-
 
|-
| <code>winter2016</code> || {{avail|winter2016}}
+
| <code>strangifier-crate-6</code> || Strangifiers do not grant new items, they merely change the quality of existing ones.
| <code>crate105</code> || {{#invoke:Availability|avail|crate105}}
 
 
|}
 
|}

Revision as of 09:40, 15 February 2018

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 (Unique and Strange)
chemistryset Chemistry Set
collectors Chemistry Set (Collector's)
contract Contract (Decorated)
contract-unique ConTracker
craft Craft
creepy-crate Unlocked Creepy Crate
directors Director's Cut Reel
distributed Distributed
drop Drop
gift-cauldron Halloween Gift Cauldron
halloween-purchase Purchase
hauntedgift Haunted Halloween Gift (expired)
keyless-crate Unlocked Cosmetic Crate (Unique and Strange)
mvm As Mann vs. Machine reward
promotional Promotional
purchase Purchase
retired Retired
stock Stock
stockpile Stockpile Crate
trade-up Trade-Up
transmute Halloween Transmute (Untradable)
unavailable Unavailable
unlock Unlock
unusual Uncrate (Unusual)
xmas2015 Smissmas 2015 Festive Gift
warpaint War Paint (Decorated)
winter2016-strange Unlocked Winter 2016 Cosmetic Case (Unique and Strange)
mannup Reward
australium Reward (Australium)
botkiller Reward (Botkiller)
mvm-both-types Reward (Botkiller and Australium)
crate1 Uncrate #1
crate2-strange Uncrate #2 (Strange)
crate3-festive Uncrate #3 (Festive)
crate4-haunted Uncrate #4 (Haunted) (expired)
unusual-5 Uncrate (Unusual)

Usage

Backwards compatibility

{{Availability}} (which used to be {{Dictionary/templatecore}}) used a few parameters which were sloppily implemented. They will still function in this template, but their use will place the page into Outdated Availability Parameters.

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

Deprecated Parameters

Parameter Deprecation reason
strangifier Strangifiers do not grant new items, they merely change the quality of existing ones.
strangifier-series-5 Strangifiers do not grant new items, they merely change the quality of existing ones.
strangifier-crate-6 Strangifiers do not grant new items, they merely change the quality of existing ones.