Difference between revisions of "Template:QuAD/list"

From Team Fortress Wiki
Jump to: navigation, search
m
m
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<!--
 +
For performance reasons, {{item name}} and {{common string}} have been replaced with their direct dictionary substitutes. This is only for cases where {{lc:}} is not needed, to help reduce the template expansion cost. Don't change the order of the parameters, thanks.
 +
-->
 
{{QuAD/list/core<!--
 
{{QuAD/list/core<!--
 
-->{{#switch:{{{stock|}}}
 
-->{{#switch:{{{stock|}}}
|unique={{!}}{{dictionary/items/name tag}}{{!}}{{dictionary/items/description tag}}
+
|unique = {{!}}{{dictionary/items/name tag}}{{!}}{{dictionary/items/description tag}}
|normal={{!}}{{dictionary/items/stock weapons}}
+
|normal = {{!}}{{dictionary/items/stock weapons}}
|#default={{ns:0}}<!-- null-->
+
|#default = {{ns:0}}<!-- null -->
 
}}<!--
 
}}<!--
 +
-->{{#if:{{{distributed|}}}|{{!}}{{dictionary/common strings/distributed}}}}<!--
 
-->{{#if:{{{unlock|}}}|{{!}}{{common string|{{{unlock}}}}}}}<!--
 
-->{{#if:{{{unlock|}}}|{{!}}{{common string|{{{unlock}}}}}}}<!--
-->{{#if:{{{drop|}}}|{{!}}{{common string|Item drop system}}}}<!--
+
-->{{#if:{{{drop|}}}|{{!}}{{dictionary/common strings/item drop system}}}}<!--
-->{{#if:{{{craft|}}}|{{!}}{{common string|Crafting}}}}<!--
+
-->{{#if:{{{craft|}}}|{{!}}{{dictionary/common strings/crafting}}}}<!--
-->{{#if:{{{store|}}}|{{!}}{{common string|Mann Co. Store}}}}<!--
+
-->{{#if:{{{store|}}}|{{!}}{{dictionary/common strings/mann co. store}}}}<!--
 
-->{{#if:{{{promo|}}}|{{!}}{{common string|{{{promo}}}}}}}<!--
 
-->{{#if:{{{promo|}}}|{{!}}{{common string|{{{promo}}}}}}}<!--
 
-->{{#if:{{{promo2|}}}|{{!}}{{common string|{{{promo2}}}}}}}<!--
 
-->{{#if:{{{promo2|}}}|{{!}}{{common string|{{{promo2}}}}}}}<!--
-->{{#if:{{{crate1|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate1}}}}}<!--
+
-->{{#if:{{{crate1|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate1}}}}}}}<!--
-->{{#if:{{{crate2|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate2}}}}}<!--
+
-->{{#if:{{{crate2|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate2}}}}}}}<!--
-->{{#if:{{{crate3|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate3}}}}}<!--
+
-->{{#if:{{{crate3|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate3}}}}}}}<!--
-->{{#if:{{{crate4|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate4}}}}}<!--
+
-->{{#if:{{{crate4|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate4}}}}}}}<!--
-->{{#if:{{{crate5|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate5}}}}}<!--
+
-->{{#if:{{{crate5|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate5}}}}}}}<!--
-->{{#if:{{{crate6|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate6}}}}}<!--
+
-->{{#if:{{{crate6|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate6}}}}}}}<!--
-->{{#if:{{{crate7|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate7}}}}}<!--
+
-->{{#if:{{{crate7|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate7}}}}}}}<!--
 +
-->{{#if:{{{series6|}}}|{{!}}{{dictionary/items/festive winter crate}}}}<!--
 +
-->{{#if:{{{series22|}}}|{{!}}{{dictionary/items/refreshing summer cooler}}}}<!--
 +
-->{{#if:{{{series30|}}}|{{!}}{{QuAD/series|{{dictionary/items/salvaged mann co. supply crate}}|30}}}}<!--
 +
-->{{#if:{{{series35|}}}|{{!}}{{dictionary/items/naughty winter crate}}}}<!--
 +
-->{{#if:{{{series36|}}}|{{!}}{{dictionary/items/nice winter crate}}}}<!--
 +
-->{{#if:{{{series40|}}}|{{!}}{{QuAD/series|{{dictionary/items/salvaged mann co. supply crate}}|40}}}}<!--
 +
-->{{#if:{{{series46|}}}|{{!}}{{dictionary/items/scorched crate}}}}<!--
 +
-->{{#if:{{{series48|}}}|{{!}}{{dictionary/items/fall crate}}}}<!--
 +
-->{{#if:{{{series50|}}}|{{!}}{{QuAD/series|{{dictionary/items/salvaged mann co. supply crate}}|50}}}}<!--
 +
-->{{#if:{{{series51|}}}|{{!}}{{dictionary/items/eerie crate}}}}<!--
 +
-->{{#if:{{{series52|}}}|{{!}}{{dictionary/items/naughty winter crate 2012}}}}<!--
 +
-->{{#if:{{{series53|}}}|{{!}}{{dictionary/items/nice winter crate 2012}}}}<!--
 +
-->{{#if:{{{series58|}}}|{{!}}{{dictionary/items/robo community crate}}}}<!--
 +
-->{{#if:{{{series60|}}}|{{!}}{{QuAD/series|{{dictionary/items/select reserve mann co. supply crate}}|60}}}}<!--
 +
-->{{#if:{{{series61|}}}|{{!}}{{dictionary/items/summer appetizer crate}}}}<!--
 +
-->{{#if:{{{series62|}}}|{{!}}{{dictionary/items/red summer 2013 cooler}}}}<!--
 +
-->{{#if:{{{series63|}}}|{{!}}{{dictionary/items/orange summer 2013 cooler}}}}<!--
 +
-->{{#if:{{{series64|}}}|{{!}}{{dictionary/items/yellow summer 2013 cooler}}}}<!--
 +
-->{{#if:{{{series65|}}}|{{!}}{{dictionary/items/green summer 2013 cooler}}}}<!--
 +
-->{{#if:{{{series66|}}}|{{!}}{{dictionary/items/aqua summer 2013 cooler}}}}<!--
 +
-->{{#if:{{{series67|}}}|{{!}}{{dictionary/items/blue summer 2013 cooler}}}}<!--
 +
-->{{#if:{{{series68|}}}|{{!}}{{dictionary/items/brown summer 2013 cooler}}}}<!--
 +
-->{{#if:{{{series69|}}}|{{!}}{{dictionary/items/black summer 2013 cooler}}}}<!--
 +
-->{{#if:{{{series72|}}}|{{!}}{{dictionary/items/fall 2013 acorns crate}}}}<!--
 +
-->{{#if:{{{series73|}}}|{{!}}{{dictionary/items/fall 2013 gourd crate}}}}<!--
 +
-->{{#if:{{{series74|}}}|{{!}}{{dictionary/items/spooky crate}}}}<!--
 +
-->{{#if:{{{series78|}}}|{{!}}{{dictionary/items/naughty winter crate 2013}}}}<!--
 +
-->{{#if:{{{series79|}}}|{{!}}{{dictionary/items/nice winter crate 2013}}}}<!--
 +
-->{{#if:{{{series81|}}}|{{!}}{{dictionary/items/mann co. strongbox}}}}<!--
 +
-->{{#if:{{{series82|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|82}}}}<!--
 +
-->{{#if:{{{series83|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|83}}}}<!--
 +
-->{{#if:{{{series84|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|84}}}}<!--
 +
-->{{#if:{{{series85|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|85}}}}<!--
 +
-->{{#if:{{{series86|}}}|{{!}}{{dictionary/items/limited late summer crate}}}}<!--
 +
-->{{#if:{{{series87|}}}|{{!}}{{dictionary/items/end of the line community crate}}}}<!--
 +
-->{{#if:{{{series88|}}}|{{!}}{{dictionary/items/naughty winter crate 2014}}}}<!--
 +
-->{{#if:{{{series89|}}}|{{!}}{{dictionary/items/nice winter crate 2014}}}}<!--
 +
-->{{#if:{{{series90|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|90}}}}<!--
 +
-->{{#if:{{{series91|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|91}}}}<!--
 +
-->{{#if:{{{series92|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|92}}}}<!--
 +
-->{{#if:{{{series103|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|103}}}}<!--
 +
-->{{#if:{{{reels|}}}|{{!}}{{dictionary/items/mann co. audition reel}}{{!}}{{dictionary/items/mann co. director's cut reel}}}}<!--
 +
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/p|{{common string|{{{gift}}}}}}}}}<!--
 +
-->{{#if:{{{halloween-package|}}}|{{!}}{{dictionary/items/halloween package}}}}<!--
 +
-->{{#if:{{{transmute|}}}|{{!}}{{dictionary/common strings/halloween transmute}}}}<!--
 +
-->{{#if:{{{unlocked-creepy-crate|}}}|{{!}}{{dictionary/items/unlocked creepy crate}}}}<!--
 +
-->{{#if:{{{uncrate|}}}|{{!}}{{dictionary/common strings/uncrate}}}}<!--
 
-->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}}
 
-->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}}
|contract and paint = {{dictionary/common strings/contract}}{{!}}{{dictionary/decorated/war paint}}
+
|annual saxxy awards = {{dictionary/common strings/annual saxxy awards}}
|creepy crate = {{item name|Unlocked Creepy Crate}}
+
|australian christmas 2011 = {{dictionary/common strings/australian christmas 2011}}
 +
|classless update = {{dictionary/common strings/classless update}}
 +
|contract = {{dictionary/common strings/contract}}
 +
|contract and paint = {{dictionary/common strings/contract}}{{!}}{{dictionary/items/war paint}}
 +
|engineer update = {{dictionary/common strings/engineer update}}
 +
|haunted hallowe'en special = {{dictionary/common strings/haunted hallowe'en special}}
 +
|manniversary update & sale = {{dictionary/common strings/manniversary update & sale}}
 +
|mann up = {{dictionary/common strings/mann up}}
 +
|mann-conomy update = {{dictionary/common strings/mann-conomy update}}
 +
|neca action figures = {{dictionary/common strings/neca action figures}}
 
|new vintage patch = {{Patch name|3|15|2011|no-link=yes}}
 
|new vintage patch = {{Patch name|3|15|2011|no-link=yes}}
|reels = {{item name|Mann Co. Audition Reel}}{{!}}{{item name|Mann Co. Director's Cut Reel}}
+
|premium = {{dictionary/common strings/premium}}
|stockpile = {{item name|Mann Co. Stockpile Crate}}
+
|propaganda contest = {{dictionary/common strings/propaganda contest}}
|unusual = {{item name|Mann Co. Supply Crate}}
+
|pyromania update = {{dictionary/common strings/pyromania update}}
|unusualifier = {{item name|unusualifier}}
+
|scream fortress update = {{dictionary/common strings/scream fortress update}}
|scream fortress vi = {{item name|Unlocked Creepy Crate}}{{!}}{{item name|Halloween Gift Cauldron}}
+
|steam holiday sale 2013 badge = {{dictionary/common strings/steam holiday sale 2013 badge}}
|unlocked cosmetic crate = {{item name|Unlocked Cosmetic Crate}}
+
|stockpile = {{dictionary/items/mann co. stockpile crate}}
|antique halloween goodie cauldron = {{item name|Antique Halloween Goodie Cauldron}}
+
|trade-up = {{dictionary/common strings/trade-up}}
 +
|unavailable = {{dictionary/common strings/unavailable}}
 +
|unusual = {{dictionary/items/mann co. supply crate}}
 +
|valve store = {{dictionary/common strings/valve store}}
 +
|very scary halloween special = {{dictionary/common strings/very scary halloween special}}
 +
|welovefine = {{dictionary/common strings/welovefine}}
 +
|über update = {{dictionary/common strings/über update}}
 +
|antique halloween goodie cauldron
 
|botkiller weapons
 
|botkiller weapons
 +
|bread box
 
|chemistry set
 
|chemistry set
 
|dueling mini-game
 
|dueling mini-game
 +
|festivizer
 +
|gun mettle campaign pass
 +
|halloween gift cauldron
 +
|invasion community update pass
 +
|jungle inferno contracts pass
 +
|manniversary package
 +
|pallet of crates
 
|pile of ash
 
|pile of ash
 
|pile of curses
 
|pile of curses
 
|polycount pack
 
|polycount pack
 
|quakecon bundle
 
|quakecon bundle
 +
|smissmas 2015 festive gift
 
|strange bacon grease
 
|strange bacon grease
 +
|tough break campaign pass
 +
|unusualifier
 +
|war paint
 +
|what's in the companion square box?
 +
|what's in the portal 2 soundtrack box?
 +
|what's in the sandvich box?
 +
|what's in the team fortress 2 soundtrack box?
 
|strangifier = {{item name|{{{special}}}}}
 
|strangifier = {{item name|{{{special}}}}}
|#default = {{common string|{{{special}}}}}
+
|#default = {{ns:0}}<!-- null -->
 
}}}}<!--
 
}}}}<!--
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/of}}{{dictionary/common strings/{{lc:{{{gift}}}}}}}}}<!--
+
-->{{#if:{{{unlocked-cosmetic-crate|}}}|{{!}}{{dictionary/items/unlocked cosmetic crate}}}}<!--
-->{{#if:{{{halloween-package|}}}|{{!}}{{item name|Halloween Package}}}}<!--
 
-->{{#if:{{{transmute|}}}|{{!}}{{common string|Halloween Transmute}}}}<!--
 
 
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}}
 
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}}
|93 = {{item name|Concealed Killer Weapons Case}}
+
|93 = {{dictionary/items/concealed killer weapons case}}
|94 = {{item name|Powerhouse Weapons Case}}
+
|94 = {{dictionary/items/powerhouse weapons case}}
|95 = {{item name|Gun Mettle Cosmetic Case}}
+
|95 = {{dictionary/items/gun mettle cosmetic case}}
|96 = {{item name|Quarantined Collection Case}}
+
|96 = {{dictionary/items/quarantined collection case}}
|97 = {{item name|Confidential Collection Case}}
+
|97 = {{dictionary/items/confidential collection case}}
|98 = {{item name|Gargoyle Case}}
+
|98 = {{dictionary/items/gargoyle case}}
|99 = {{item name|Pyroland Weapons Case}}
+
|99 = {{dictionary/items/pyroland weapons case}}
|100 = {{item name|Warbird Weapons Case}}
+
|100 = {{dictionary/items/warbird weapons case}}
|101 = {{item name|Tough Break Cosmetic Case}}
+
|101 = {{dictionary/items/tough break cosmetic case}}
|102 = {{item name|Mayflower Cosmetic Case}}
+
|102 = {{dictionary/items/mayflower cosmetic case}}
|104 = {{item name|Creepy Crawly Case}}
+
|104 = {{dictionary/items/creepy crawly case}}
|105 = {{item name|Unlocked Winter 2016 Cosmetic Case}}
+
|105 = {{dictionary/items/unlocked winter 2016 cosmetic case}}
|106 = {{item name|Rainy Day Cosmetic Case}}
+
|106 = {{dictionary/items/rainy day cosmetic case}}
|107 = {{item name|Abominable Cosmetic Case}}
+
|107 = {{dictionary/items/abominable cosmetic case}}
|108 = {{item name|Unleash the Beast Cosmetic Case}}
+
|108 = {{dictionary/items/unleash the beast cosmetic case}}
|109 = {{item name|Jungle Jackpot War Paint Case}}
+
|109 = {{dictionary/items/jungle jackpot war paint case}}
|110 = {{item name|Infernal Reward War Paint Case}}
+
|110 = {{dictionary/items/infernal reward war paint case}}
|111 = {{item name|Decorated War Hero War Paint Civilian Grade Keyless Case}}
+
|111 = {{dictionary/items/decorated war hero war paint civilian grade keyless case}}
|112 = {{item name|Decorated War Hero War Paint Freelance Grade Keyless Case}}
+
|112 = {{dictionary/items/decorated war hero war paint freelance grade keyless case}}
|113 = {{item name|Decorated War Hero War Paint Mercenary Grade Keyless Case}}
+
|113 = {{dictionary/items/decorated war hero war paint mercenary grade keyless case}}
|114 = {{item name|Contract Campaigner War Paint Civilian Grade Keyless Case}}
+
|114 = {{dictionary/items/contract campaigner war paint civilian grade keyless case}}
|115 = {{item name|Contract Campaigner War Paint Freelance Grade Keyless Case}}
+
|115 = {{dictionary/items/contract campaigner war paint freelance grade keyless case}}
|116 = {{item name|Contract Campaigner War Paint Mercenary Grade Keyless Case}}
+
|116 = {{dictionary/items/contract campaigner war paint mercenary grade keyless case}}
|117 = {{item name|Winter 2017 Cosmetic Case}}
+
|117 = {{dictionary/items/winter 2017 cosmetic case}}
|118 = {{item name|Winter 2017 War Paint Case}}
+
|118 = {{dictionary/items/winter 2017 war paint case}}
|119 = {{item name|Blue Moon Cosmetic Case}}
+
|119 = {{dictionary/items/blue moon cosmetic case}}
|120 = {{item name|Violet Vermin Case}}
+
|120 = {{dictionary/items/violet vermin case}}
|121 = {{item name|Scream Fortress X War Paint Case}}
+
|121 = {{dictionary/items/scream fortress x war paint case}}
|122 = {{item name|Winter 2018 Cosmetic Case}}
+
|122 = {{dictionary/items/winter 2018 cosmetic case}}
|123 = {{item name|Summer 2019 Cosmetic Case}}
+
|123 = {{dictionary/items/summer 2019 cosmetic case}}
|124 = {{item name|Spooky Spoils Case}}
+
|124 = {{dictionary/items/spooky spoils case}}
|125 = {{item name|Winter 2019 Cosmetic Case}}
+
|125 = {{dictionary/items/winter 2019 cosmetic case}}
|126 = {{item name|Winter 2019 War Paint Case}}
+
|126 = {{dictionary/items/winter 2019 war paint case}}
|127 = {{item name|Summer 2020 Cosmetic Case}}
+
|127 = {{dictionary/items/summer 2020 cosmetic case}}
|128 = {{item name|Wicked Windfall Case}}
+
|128 = {{dictionary/items/wicked windfall case}}
|129 = {{item name|Scream Fortress XII War Paint Case}}
+
|129 = {{dictionary/items/scream fortress xii war paint case}}
|130 = {{item name|Winter 2020 Cosmetic Case}}
+
|130 = {{dictionary/items/winter 2020 cosmetic case}}
|131 = {{item name|Winter 2020 War Paint Case}}
+
|131 = {{dictionary/items/winter 2020 war paint case}}
|132 = {{item name|Summer 2021 Cosmetic Case}}
+
|132 = {{dictionary/items/summer 2021 cosmetic case}}
|133 = {{item name|Crimson Cache Case}}
+
|133 = {{dictionary/items/crimson cache case}}
|134 = {{item name|Scream Fortress XIII War Paint Case}}
+
|134 = {{dictionary/items/scream fortress xiii war paint case}}
|135 = {{item name|Winter 2021 Cosmetic Case}}
+
|135 = {{dictionary/items/winter 2021 cosmetic case}}
|#default = {{item name|Mann Co. Supply Crate}} #{{{case}}}
+
|136 = {{dictionary/items/summer 2022 cosmetic case}}
 +
|137 = {{dictionary/items/ghoulish gains case}}
 +
|138 = {{dictionary/items/scream fortress xiv war paint case}}
 +
|139 = {{dictionary/items/winter 2022 cosmetic case}}
 +
|140 = {{dictionary/items/summer 2023 cosmetic case}}
 +
|141 = {{dictionary/items/summer 2023 war paint case}}
 +
|142 = {{dictionary/items/bone-chilling bonanza case}}
 +
|143 = {{dictionary/items/winter 2023 cosmetic case}}
 +
|144 = {{dictionary/items/summer 2024 cosmetic case}}
 +
|145 = {{dictionary/items/terrifying trove case}}
 +
|146 = {{dictionary/items/scream fortress xvi war paint case}}
 +
|#default = {{ns:0}}<!-- null -->
 
}}}}<!--
 
}}}}<!--
 
-->}}<noinclude>{{Template doc}}</noinclude>
 
-->}}<noinclude>{{Template doc}}</noinclude>

Latest revision as of 04:33, 11 October 2024

{{{1}}}

Template documentation [view] [edit] [history] [purge]

Summary

{{QuAD}} is used to display the Quality Availability Database. In other words, it will list the ways to get an item in a given quality. This particular template is a wrapper for {{Dictionary/quad}}, the Database.

Entries in this dictionary call {{QuAD/list}} to order the Availability in a fixed order, and passes them as sequentially numbered parameters to {{QuAD/list/core}}. QuAD/list/core adds punctuation (commas and ampersands) and the result is a nicely readable string. This also makes use of {{QuAD/comma}}, {{QuAD/ampersand}}, {{QuAD/p}}, and {{QuAD/series}}.

{{Qualitycheck}} is called with a Quality, and it will format the availability list for the relevant template (such as {{Wqc}} or the qualities section in {{Item infobox}}).

{{Wqc/table/core}} (header/footer), {{Cqc/table/core}} (header/footer/brace), or {{Quality list}} call Qualitycheck (or do the formatting themselves) for all the available qualities.

Usage

When new items are added that need qualities, edit the Database, {{Dictionary/quad}}.

When new availability types are added/needed, edit the Availability, {{QuAD/list}}.

If there is an item with more than 20 availabilities, update {{QuAD/list/core}}.

If there are new qualities, edit the Quality lists, {{Wqc/table/core}}, {{Cqc/table/core}}, or {{Quality list}}.