Difference between revisions of "Template:QuAD/list"
m |
(Updated; thanks Darkid.) |
||
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. | ||
+ | |||
+ | --> | ||
{{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 | + | -->{{#if:{{{drop|}}}|{{!}}{{dictionary/common strings/item drop system}}}}<!-- |
− | -->{{#if:{{{craft|}}}|{{!}}{{common | + | -->{{#if:{{{craft|}}}|{{!}}{{dictionary/common strings/crafting}}}}<!-- |
− | -->{{#if:{{{store|}}}|{{!}}{{common | + | -->{{#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|}}}|{{!}}{{ | + | -->{{#if:{{{crate1|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate1}}}}}}}<!-- |
− | -->{{#if:{{{crate2|}}}|{{!}}{{ | + | -->{{#if:{{{crate2|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate2}}}}}}}<!-- |
− | -->{{#if:{{{crate3|}}}|{{!}}{{ | + | -->{{#if:{{{crate3|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate3}}}}}}}<!-- |
− | -->{{#if:{{{crate4|}}}|{{!}}{{ | + | -->{{#if:{{{crate4|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate4}}}}}}}<!-- |
− | -->{{#if:{{{crate5|}}}|{{!}}{{ | + | -->{{#if:{{{crate5|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate5}}}}}}}<!-- |
− | -->{{#if:{{{crate6|}}}|{{!}}{{ | + | -->{{#if:{{{crate6|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate6}}}}}}}<!-- |
− | -->{{#if:{{{crate7|}}}|{{!}}{{ | + | -->{{#if:{{{crate7|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate7}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{series6|}}}|{{!}}{{dictionary/items/festive winter crate}}}}<!-- |
− | -->{{#if:{{{halloween-package|}}}|{{!}}{{ | + | -->{{#if:{{{series22|}}}|{{!}}{{dictionary/items/refreshing summer cooler}}}}<!-- |
− | -->{{#if:{{{transmute|}}}|{{!}}{{common | + | -->{{#if:{{{series30|}}}|{{!}}{{dictionary/common strings/crate-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|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/salvaged mann co. supply crate}}|40}}}}<!-- | ||
+ | -->{{#if:{{{series46|}}}|{{!}}{{dictionary/items/scorched crate}}}}<!-- | ||
+ | -->{{#if:{{{series48|}}}|{{!}}{{dictionary/items/fall crate}}}}<!-- | ||
+ | -->{{#if:{{{series50|}}}|{{!}}{{dictionary/common strings/crate-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|}}}|{{!}}{{dictionary/common strings/crate-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|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|82}}}}<!-- | ||
+ | -->{{#if:{{{series83|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|83}}}}<!-- | ||
+ | -->{{#if:{{{series84|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|84}}}}<!-- | ||
+ | -->{{#if:{{{series85|}}}|{{!}}{{dictionary/common strings/crate-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|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|90}}}}<!-- | ||
+ | -->{{#if:{{{series91|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|91}}}}<!-- | ||
+ | -->{{#if:{{{series92|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|92}}}}<!-- | ||
+ | -->{{#if:{{{series103|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|103}}}}<!-- | ||
+ | -->{{#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:{{{special|}}}|{{!}}{{#switch:{{{special|}}} | -->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}} | ||
− | |contract and paint = {{dictionary/common strings/contract}}{{!}}{{dictionary/ | + | |contract and paint = {{dictionary/common strings/contract}}{{!}}{{dictionary/items/war paint}} |
− | |creepy crate = {{ | + | |creepy crate = {{dictionary/items/unlocked creepy crate}} |
|new vintage patch = {{Patch name|3|15|2011|no-link=yes}} | |new vintage patch = {{Patch name|3|15|2011|no-link=yes}} | ||
− | |reels = {{ | + | |reels = {{dictionary/items/mann co. audition reel}}{{!}}{{dictionary/items/mann co. director's cut reel}} |
− | |stockpile = {{ | + | |stockpile = {{dictionary/items/mann co. stockpile crate}} |
− | |unusual = {{ | + | |unusual = {{dictionary/items/mann co. supply crate}} |
− | |unusualifier = {{ | + | |unusualifier = {{dictionary/items/unusualifier}} |
− | |scream fortress vi = {{ | + | |scream fortress vi = {{dictionary/items/unlocked creepy crate}}{{!}}{{dictionary/items/halloween gift cauldron}} |
− | |unlocked cosmetic crate = {{ | + | |unlocked cosmetic crate = {{dictionary/items/unlocked cosmetic crate}} |
− | |antique halloween goodie cauldron = {{ | + | |antique halloween goodie cauldron = {{dictionary/items/antique halloween goodie cauldron}} |
|botkiller weapons | |botkiller weapons | ||
|chemistry set | |chemistry set | ||
Line 41: | Line 88: | ||
|strange bacon grease | |strange bacon grease | ||
|strangifier = {{item name|{{{special}}}}} | |strangifier = {{item name|{{{special}}}}} | ||
− | |#default = {{ | + | |#default = {{ns:0}}<!-- null --> |
}}}}<!-- | }}}}<!-- | ||
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}} | -->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}} | ||
− | |93 = {{ | + | |93 = {{dictionary/items/concealed killer weapons case}} |
− | |94 = {{ | + | |94 = {{dictionary/items/powerhouse weapons case}} |
− | |95 = {{ | + | |95 = {{dictionary/items/gun mettle cosmetic case}} |
− | |96 = {{ | + | |96 = {{dictionary/items/quarantined collection case}} |
− | |97 = {{ | + | |97 = {{dictionary/items/confidential collection case}} |
− | |98 = {{ | + | |98 = {{dictionary/items/gargoyle case}} |
− | |99 = {{ | + | |99 = {{dictionary/items/pyroland weapons case}} |
− | |100 = {{ | + | |100 = {{dictionary/items/warbird weapons case}} |
− | |101 = {{ | + | |101 = {{dictionary/items/tough break cosmetic case}} |
− | |102 = {{ | + | |102 = {{dictionary/items/mayflower cosmetic case}} |
− | |104 = {{ | + | |104 = {{dictionary/items/creepy crawly case}} |
− | |105 = {{ | + | |105 = {{dictionary/items/unlocked winter 2016 cosmetic case}} |
− | |106 = {{ | + | |106 = {{dictionary/items/rainy day cosmetic case}} |
− | |107 = {{ | + | |107 = {{dictionary/items/abominable cosmetic case}} |
− | |108 = {{ | + | |108 = {{dictionary/items/unleash the beast cosmetic case}} |
− | |109 = {{ | + | |109 = {{dictionary/items/jungle jackpot war paint case}} |
− | |110 = {{ | + | |110 = {{dictionary/items/infernal reward war paint case}} |
− | |111 = {{ | + | |111 = {{dictionary/items/decorated war hero war paint civilian grade keyless case}} |
− | |112 = {{ | + | |112 = {{dictionary/items/decorated war hero war paint freelance grade keyless case}} |
− | |113 = {{ | + | |113 = {{dictionary/items/decorated war hero war paint mercenary grade keyless case}} |
− | |114 = {{ | + | |114 = {{dictionary/items/contract campaigner war paint civilian grade keyless case}} |
− | |115 = {{ | + | |115 = {{dictionary/items/contract campaigner war paint freelance grade keyless case}} |
− | |116 = {{ | + | |116 = {{dictionary/items/contract campaigner war paint mercenary grade keyless case}} |
− | |117 = {{ | + | |117 = {{dictionary/items/winter 2017 cosmetic case}} |
− | |118 = {{ | + | |118 = {{dictionary/items/winter 2017 war paint case}} |
− | |119 = {{ | + | |119 = {{dictionary/items/blue moon cosmetic case}} |
− | |120 = {{ | + | |120 = {{dictionary/items/violet vermin case}} |
− | |121 = {{ | + | |121 = {{dictionary/items/scream fortress x war paint case}} |
− | |122 = {{ | + | |122 = {{dictionary/items/winter 2018 cosmetic case}} |
− | |123 = {{ | + | |123 = {{dictionary/items/summer 2019 cosmetic case}} |
− | |124 = {{ | + | |124 = {{dictionary/items/spooky spoils case}} |
− | |125 = {{ | + | |125 = {{dictionary/items/winter 2019 cosmetic case}} |
− | |126 = {{ | + | |126 = {{dictionary/items/winter 2019 war paint case}} |
− | |127 = {{ | + | |127 = {{dictionary/items/summer 2020 cosmetic case}} |
− | |128 = {{ | + | |128 = {{dictionary/items/wicked windfall case}} |
− | |129 = {{ | + | |129 = {{dictionary/items/scream fortress xii war paint case}} |
− | |130 = {{ | + | |130 = {{dictionary/items/winter 2020 cosmetic case}} |
− | |131 = {{ | + | |131 = {{dictionary/items/winter 2020 war paint case}} |
− | |132 = {{ | + | |132 = {{dictionary/items/summer 2021 cosmetic case}} |
− | |133 = {{ | + | |133 = {{dictionary/items/crimson cache case}} |
− | |134 = {{ | + | |134 = {{dictionary/items/scream fortress xiii war paint case}} |
− | |135 = {{ | + | |135 = {{dictionary/items/winter 2021 cosmetic case}} |
− | |#default = {{ | + | |#default = {{ns:0}}<!-- null --> |
}}}}<!-- | }}}}<!-- | ||
-->}}<noinclude>{{Template doc}}</noinclude> | -->}}<noinclude>{{Template doc}}</noinclude> |
Revision as of 23:22, 15 April 2022
{{{1}}}
This template is very complex. Please, sandbox any changes before making them. If you have questions about this template, feel free to ask on the IRC. Darkid has offered to maintain this template, you may contact them if you need further assistance. |
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}}
and {{QuAD/ampersand}}
.
{{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}}
, {{Cqc/table/core}}
, or {{Quality list}}
call Qualitycheck (or do the formatting themselves) for all the available qualities.
Other templates: {{QuAD/p}}
and {{QuAD/series}}
.
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}}
.