Difference between revisions of "Template:QuAD/list"

From Team Fortress Wiki
Jump to: navigation, search
m (added null template)
m
 
(56 intermediate revisions by 8 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:{{{special|}}}|{{!}}
+
-->{{#if:{{{unlock|}}}|{{!}}{{common string|{{{unlock}}}}}}}<!--
{{#switch:{{{special|}}}
 
|unusual={{dictionary/items/mann co. supply crate}}
 
|botkiller weapons|dueling mini-game|pile of ash|pile of curses|polycount pack|quakecon bundle|strange bacon grease|strangifier|chemistry set={{dictionary/items/{{lc:{{{special}}}}}}}
 
|#default={{dictionary/common strings/{{lc:{{{special}}}}}}}
 
}}}}<!--
 
-->{{#if:{{{premium|}}}|{{!}}{dictionary/common strings/premium}}}}<!--
 
-->{{#if:{{{promo|}}}|{{!}}{{dictionary/common strings/{{lc:{{{promo}}}}}}}}}<!--
 
-->{{#if:{{{promo2|}}}|{{!}}{{dictionary/common strings/{{lc:{{{promo2}}}}}}}}}<!--
 
-->{{#if:{{{unlock|}}}|{{!}}{{dictionary/common strings/{{lc:{{{unlock}}}}}}}}}<!--
 
-->{{#if:{{{crate1|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate1}}}}}<!--
 
-->{{#if:{{{crate2|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate2}}}}}<!--
 
-->{{#if:{{{crate3|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate3}}}}}<!--
 
-->{{#if:{{{crate4|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate4}}}}}<!--
 
-->{{#if:{{{crate5|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate5}}}}}<!--
 
 
-->{{#if:{{{drop|}}}|{{!}}{{dictionary/common strings/item drop system}}}}<!--
 
-->{{#if:{{{drop|}}}|{{!}}{{dictionary/common strings/item drop system}}}}<!--
 
-->{{#if:{{{craft|}}}|{{!}}{{dictionary/common strings/crafting}}}}<!--
 
-->{{#if:{{{craft|}}}|{{!}}{{dictionary/common strings/crafting}}}}<!--
 
-->{{#if:{{{store|}}}|{{!}}{{dictionary/common strings/mann co. store}}}}<!--
 
-->{{#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|}}}
 +
|annual saxxy awards = {{dictionary/common strings/annual saxxy awards}}
 +
|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}}
 +
|premium = {{dictionary/common strings/premium}}
 +
|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
 +
|bread box
 +
|chemistry set
 +
|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 curses
 +
|polycount pack
 +
|quakecon bundle
 +
|smissmas 2015 festive gift
 +
|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}}}}}
 +
|#default = {{ns:0}}<!-- null -->
 +
}}}}<!--
 +
-->{{#if:{{{unlocked-cosmetic-crate|}}}|{{!}}{{dictionary/items/unlocked cosmetic crate}}}}<!--
 +
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}}
 +
|93 = {{dictionary/items/concealed killer weapons case}}
 +
|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}}
 +
|145 = {{dictionary/items/terrifying trove case}}
 +
|146 = {{dictionary/items/scream fortress xvi war paint case}}
 +
|#default = {{ns:0}}<!-- null -->
 +
}}}}<!--
 +
-->}}<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}}.