Difference between revisions of "Template:QuAD/list"

From Team Fortress Wiki
Jump to: navigation, search
m (Added support for a second special section. There could be a better way to do this, but this should work for now.)
m
(45 intermediate revisions by 6 users 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:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/of}}{{dictionary/common strings/{{lc:{{{gift}}}}}}}}}<!--
+
-->{{#if:{{{distributed|}}}|{{!}}{{dictionary/common strings/distributed}}}}<!--
 +
-->{{#if:{{{unlock|}}}|{{!}}{{common string|{{{unlock}}}}}}}<!--
 +
-->{{#if:{{{drop|}}}|{{!}}{{dictionary/common strings/item drop system}}}}<!--
 +
-->{{#if:{{{craft|}}}|{{!}}{{dictionary/common strings/crafting}}}}<!--
 +
-->{{#if:{{{store|}}}|{{!}}{{dictionary/common strings/mann co. store}}}}<!--
 +
-->{{#if:{{{promo|}}}|{{!}}{{common string|{{{promo}}}}}}}<!--
 +
-->{{#if:{{{promo2|}}}|{{!}}{{common string|{{{promo2}}}}}}}<!--
 +
-->{{#if:{{{crate1|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate1}}}}}}}<!--
 +
-->{{#if:{{{crate2|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate2}}}}}}}<!--
 +
-->{{#if:{{{crate3|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate3}}}}}}}<!--
 +
-->{{#if:{{{crate4|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate4}}}}}}}<!--
 +
-->{{#if:{{{crate5|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate5}}}}}}}<!--
 +
-->{{#if:{{{crate6|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate6}}}}}}}<!--
 +
-->{{#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|}}}
|audition reel = {{Item name|Mann Co. Audition Reel}}
+
|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}}
|stockpile = {{Item name|Mann Co. Stockpile Crate}}
+
|premium = {{dictionary/common strings/premium}}
|unusual = {{Item name|Mann Co. Supply Crate}}
+
|propaganda contest = {{dictionary/common strings/propaganda contest}}
 +
|pyromania update = {{dictionary/common strings/pyromania update}}
 +
|scream fortress update = {{dictionary/common strings/scream fortress update}}
 +
|steam holiday sale 2013 badge = {{dictionary/common strings/steam holiday sale 2013 badge}}
 +
|stockpile = {{dictionary/items/mann co. stockpile crate}}
 +
|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
|strangifier = {{Item name|{{{special}}}}}
+
|tough break campaign pass
|#default = {{Common string|{{{special}}}}}
+
|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}}}}}
 +
|#default = {{ns:0}}<!-- null -->
 
}}}}<!--
 
}}}}<!--
-->{{#if:{{{special2|}}}|{{!}}{{#switch:{{{special2|}}}
+
-->{{#if:{{{unlocked-cosmetic-crate|}}}|{{!}}{{dictionary/items/unlocked cosmetic crate}}}}<!--
|director's reel = {{Item name|Mann Co. Director's Cut Reel}}
+
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}}
|goodie cauldron  = {{Item name|Halloween Goodie Cauldron}}
+
|93 = {{dictionary/items/concealed killer weapons case}}
|#default = {{Common string|{{{special2}}}}}
+
|94 = {{dictionary/items/powerhouse weapons case}}
 +
|95 = {{dictionary/items/gun mettle cosmetic case}}
 +
|96 = {{dictionary/items/quarantined collection case}}
 +
|97 = {{dictionary/items/confidential collection case}}
 +
|98 = {{dictionary/items/gargoyle case}}
 +
|99 = {{dictionary/items/pyroland weapons case}}
 +
|100 = {{dictionary/items/warbird weapons case}}
 +
|101 = {{dictionary/items/tough break cosmetic case}}
 +
|102 = {{dictionary/items/mayflower cosmetic case}}
 +
|104 = {{dictionary/items/creepy crawly case}}
 +
|105 = {{dictionary/items/unlocked winter 2016 cosmetic case}}
 +
|106 = {{dictionary/items/rainy day cosmetic case}}
 +
|107 = {{dictionary/items/abominable cosmetic case}}
 +
|108 = {{dictionary/items/unleash the beast cosmetic case}}
 +
|109 = {{dictionary/items/jungle jackpot war paint case}}
 +
|110 = {{dictionary/items/infernal reward war paint case}}
 +
|111 = {{dictionary/items/decorated war hero war paint civilian grade keyless case}}
 +
|112 = {{dictionary/items/decorated war hero war paint freelance grade keyless case}}
 +
|113 = {{dictionary/items/decorated war hero war paint mercenary grade keyless case}}
 +
|114 = {{dictionary/items/contract campaigner war paint civilian grade keyless case}}
 +
|115 = {{dictionary/items/contract campaigner war paint freelance grade keyless case}}
 +
|116 = {{dictionary/items/contract campaigner war paint mercenary grade keyless case}}
 +
|117 = {{dictionary/items/winter 2017 cosmetic case}}
 +
|118 = {{dictionary/items/winter 2017 war paint case}}
 +
|119 = {{dictionary/items/blue moon cosmetic case}}
 +
|120 = {{dictionary/items/violet vermin case}}
 +
|121 = {{dictionary/items/scream fortress x war paint case}}
 +
|122 = {{dictionary/items/winter 2018 cosmetic case}}
 +
|123 = {{dictionary/items/summer 2019 cosmetic case}}
 +
|124 = {{dictionary/items/spooky spoils case}}
 +
|125 = {{dictionary/items/winter 2019 cosmetic case}}
 +
|126 = {{dictionary/items/winter 2019 war paint case}}
 +
|127 = {{dictionary/items/summer 2020 cosmetic case}}
 +
|128 = {{dictionary/items/wicked windfall case}}
 +
|129 = {{dictionary/items/scream fortress xii war paint case}}
 +
|130 = {{dictionary/items/winter 2020 cosmetic case}}
 +
|131 = {{dictionary/items/winter 2020 war paint case}}
 +
|132 = {{dictionary/items/summer 2021 cosmetic case}}
 +
|133 = {{dictionary/items/crimson cache case}}
 +
|134 = {{dictionary/items/scream fortress xiii war paint case}}
 +
|135 = {{dictionary/items/winter 2021 cosmetic 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}}
 +
|#default = {{ns:0}}<!-- null -->
 
}}}}<!--
 
}}}}<!--
-->{{#if:{{{promo|}}}|{{!}}{{Common string|{{{promo}}}}}}}<!--
 
-->{{#if:{{{promo2|}}}|{{!}}{{Common string|{{{promo2}}}}}}}<!--
 
-->{{#if:{{{unlock|}}}|{{!}}{{Common string|{{{unlock}}}}}}}<!--
 
-->{{#if:{{{crate1|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate1}}}}}<!--
 
-->{{#if:{{{crate2|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate2}}}}}<!--
 
-->{{#if:{{{crate3|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate3}}}}}<!--
 
-->{{#if:{{{crate4|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate4}}}}}<!--
 
-->{{#if:{{{crate5|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate5}}}}}<!--
 
-->{{#if:{{{crate6|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate6}}}}}<!--
 
-->{{#if:{{{crate7|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate7}}}}}<!--
 
-->{{#if:{{{drop|}}}|{{!}}{{Common string|Item drop system}}}}<!--
 
-->{{#if:{{{craft|}}}|{{!}}{{Common string|Crafting}}}}<!--
 
-->{{#if:{{{store|}}}|{{!}}{{Common string|Mann Co. Store}}}}<!--
 
 
-->}}<noinclude>{{Template doc}}</noinclude>
 
-->}}<noinclude>{{Template doc}}</noinclude>

Revision as of 00:44, 19 July 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}}.