Difference between revisions of "User:Darkid/Sandbox2"

From Team Fortress Wiki
Jump to: navigation, search
Line 26: Line 26:
 
|-
 
|-
 
| <code>contract</code> || {{#invoke:Availability/Sandbox|avail|contract}}
 
| <code>contract</code> || {{#invoke:Availability/Sandbox|avail|contract}}
 +
|-
 +
| <code>contract-unique</code> || {{#invoke:Availability/Sandbox|avail|contract-unique}}
 
|-
 
|-
 
| <code>craft</code> || {{#invoke:Availability/Sandbox|avail|craft}}
 
| <code>craft</code> || {{#invoke:Availability/Sandbox|avail|craft}}
Line 32: Line 34:
 
|-
 
|-
 
| <code>directors</code> || {{#invoke:Availability/Sandbox|avail|directors}}
 
| <code>directors</code> || {{#invoke:Availability/Sandbox|avail|directors}}
 +
|-
 +
| <code>distributed</code> || {{#invoke:Availability/Sandbox|avail|distributed}}
 
|-
 
|-
 
| <code>drop</code> || {{#invoke:Availability/Sandbox|avail|drop}}
 
| <code>drop</code> || {{#invoke:Availability/Sandbox|avail|drop}}
Line 54: Line 58:
 
|-
 
|-
 
| <code>stockpile</code> || {{#invoke:Availability/Sandbox|avail|stockpile}}
 
| <code>stockpile</code> || {{#invoke:Availability/Sandbox|avail|stockpile}}
|-
 
| <code>strangifier</code> || {{#invoke:Availability/Sandbox|avail|strangifier}}
 
 
|-
 
|-
 
| <code>trade-up</code> || {{#invoke:Availability/Sandbox|avail|trade-up}}
 
| <code>trade-up</code> || {{#invoke:Availability/Sandbox|avail|trade-up}}
Line 68: Line 70:
 
|-
 
|-
 
| <code>xmas2015</code> || {{#invoke:Availability/Sandbox|avail|xmas2015}}
 
| <code>xmas2015</code> || {{#invoke:Availability/Sandbox|avail|xmas2015}}
|-
 
| <code>winter2016</code> || {{#invoke:Availability/Sandbox|avail|winter2016}}
 
 
|-
 
|-
 
| <code>winter2016-strange</code> || {{#invoke:Availability/Sandbox|avail|winter2016-strange}}
 
| <code>winter2016-strange</code> || {{#invoke:Availability/Sandbox|avail|winter2016-strange}}
Line 109: Line 109:
  
 
=== 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/Sandbox|avail|crate36}}
 
 
|-
 
|-
| <code>crate-nice2012</code> || {{avail|crate-nice2012}}
+
| <code>crate-nice2012</code> || <code>crate53</code>
| <code>crate53</code> || {{#invoke:Availability/Sandbox|avail|crate53}}
 
 
|-
 
|-
| <code>crate-nice2013</code> || {{avail|crate-nice2013}}
+
| <code>crate-nice2013</code> || <code>crate79</code>
| <code>crate79</code> || {{#invoke:Availability/Sandbox|avail|crate79}}
 
 
|-
 
|-
| <code>crate-nice2014</code> || {{avail|crate-nice2014}}
+
| <code>crate-nice2014</code> || <code>crate89</code>
| <code>crate89</code> || {{#invoke:Availability/Sandbox|avail|crate89}}
 
 
|-
 
|-
| <code>crate-naughty</code> || {{avail|crate-naughty}}
+
| <code>crate-naughty</code> || <code>crate35-festive</code>
| <code>crate35-festive</code> || {{#invoke:Availability/Sandbox|avail|crate35-festive}}
 
 
|-
 
|-
| <code>crate-naughty2012</code> || {{avail|crate-naughty2012}}
+
| <code>crate-naughty2012</code> || <code>crate52-festive</code>
| <code>crate52-festive</code> || {{#invoke:Availability/Sandbox|avail|crate52-festive}}
 
 
|-
 
|-
| <code>crate-naughty2013</code> || {{avail|crate-naughty2013}}
+
| <code>crate-naughty2013</code> || <code>crate78-festive</code>
| <code>crate78-festive</code> || {{#invoke:Availability/Sandbox|avail|crate78-festive}}
 
 
|-
 
|-
| <code>crate-naughty2014</code> || {{avail|crate-naughty2014}}
+
| <code>crate-naughty2014</code> || <code>crate88-festive</code>
| <code>crate88-festive</code> || {{#invoke:Availability/Sandbox|avail|crate88-festive}}
 
 
|-
 
|-
| colspan="4" |
+
| <code>store</code> || <code>purchase</code>
 
|-
 
|-
| <code>store</code> || {{avail|store}}
+
| <code>achievement</code> || <code>unlock</code>
| <code>purchase</code> || {{#invoke:Availability/Sandbox|avail|purchase}}
 
 
|-
 
|-
| <code>achievement</code> || {{avail|achievement}}
+
| <code>strongbox</code> || <code>crate81</code>
| <code>unlock</code> || {{#invoke:Availability/Sandbox|avail|unlock}}
 
 
|-
 
|-
| <code>strangifier-strange</code> || {{avail|strangifier-strange}}
+
| <code>crate46</code> || <code>crate-scorched</code>
| <code>strangifier</code> || {{#invoke:Availability/Sandbox|avail|strangifier}}
 
 
|-
 
|-
| <code>strongbox</code> || {{avail|strongbox}}
+
| <code>crate74</code> || <code>crate74-haunted</code>
| <code>crate81</code> || {{#invoke:Availability/Sandbox|avail|crate81}}
 
 
|-
 
|-
| <code>crate46</code> ||  {{avail|crate46}}
+
| <code>winter2016</code> || <code>crate105</code>
| <code>crate-scorched</code> || {{#invoke:Availability/Sandbox|avail|crate-scorched}}
+
|}
|-
+
 
| <code>crate74</code> ||  {{avail|crate74}}
+
=== Deprecated Parameters ===
| <code>crate74-haunted</code> || {{#invoke:Availability/Sandbox|avail|crate74-haunted}}
+
 
 +
{| class="wikitable grid"
 +
! class="header" | Parameter
 +
! class="header" | Deprecation reason
 
|-
 
|-
| <code>winter2016</code> || {{avail|winter2016}}
+
<code>strangifier</code> || Use (something) instead.
| <code>crate105</code> || {{#invoke:Availability/Sandbox|avail|crate105}}
 
 
|}
 
|}

Revision as of 21:00, 7 January 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
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)
strangifier-series-5 Lua error: Module:Availability/Sandbox:173: Passed an invalid string to Module:Availability: "strangifier-series-".

Please do not translate these strings, they will be translated automatically.

strangifier-crate-6 Lua error: Module:Availability/Sandbox:173: Passed an invalid string to Module:Availability: "strangifier-crate-".

Please do not translate these strings, they will be translated automatically.

unusual-3 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

strangifier || Use (something) instead.
Parameter Deprecation reason