Difference between revisions of "Template:QuAD/list"
m (add case) |
m (#132) |
||
Line 8: | Line 8: | ||
-->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}} | -->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}} | ||
|contract and paint = {{dictionary/common strings/contract}}{{!}}{{dictionary/decorated/war paint}} | |contract and paint = {{dictionary/common strings/contract}}{{!}}{{dictionary/decorated/war paint}} | ||
− | |creepy crate = {{ | + | |creepy crate = {{item name|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 = {{item name|Mann Co. Audition Reel}}{{!}}{{item name|Mann Co. Director's Cut Reel}} |
− | |stockpile = {{ | + | |stockpile = {{item name|Mann Co. Stockpile Crate}} |
− | |unusual = {{ | + | |unusual = {{item name|Mann Co. Supply Crate}} |
− | |unusualifier = {{ | + | |unusualifier = {{item name|unusualifier}} |
− | |scream fortress vi = {{ | + | |scream fortress vi = {{item name|Unlocked Creepy Crate}}{{!}}{{item name|Halloween Gift Cauldron}} |
− | |unlocked cosmetic crate = {{ | + | |unlocked cosmetic crate = {{item name|Unlocked Cosmetic Crate}} |
− | |winter 2016 cosmetic crate = {{ | + | |winter 2016 cosmetic crate = {{item name|Unlocked Winter 2016 Cosmetic Case}} |
|botkiller weapons | |botkiller weapons | ||
|chemistry set | |chemistry set | ||
Line 25: | Line 25: | ||
|quakecon bundle | |quakecon bundle | ||
|strange bacon grease | |strange bacon grease | ||
− | |strangifier = {{ | + | |strangifier = {{item name|{{{special}}}}} |
− | |#default = {{ | + | |#default = {{common string|{{{special}}}}} |
}}}}<!-- | }}}}<!-- | ||
− | -->{{#if:{{{promo|}}}|{{!}}{{ | + | -->{{#if:{{{promo|}}}|{{!}}{{common string|{{{promo}}}}}}}<!-- |
− | -->{{#if:{{{promo2|}}}|{{!}}{{ | + | -->{{#if:{{{promo2|}}}|{{!}}{{common string|{{{promo2}}}}}}}<!-- |
− | -->{{#if:{{{unlock|}}}|{{!}}{{ | + | -->{{#if:{{{unlock|}}}|{{!}}{{common string|{{{unlock}}}}}}}<!-- |
− | -->{{#if:{{{crate1|}}}|{{!}}{{ | + | -->{{#if:{{{crate1|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate1}}}}}<!-- |
− | -->{{#if:{{{crate2|}}}|{{!}}{{ | + | -->{{#if:{{{crate2|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate2}}}}}<!-- |
− | -->{{#if:{{{crate3|}}}|{{!}}{{ | + | -->{{#if:{{{crate3|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate3}}}}}<!-- |
− | -->{{#if:{{{crate4|}}}|{{!}}{{ | + | -->{{#if:{{{crate4|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate4}}}}}<!-- |
− | -->{{#if:{{{crate5|}}}|{{!}}{{ | + | -->{{#if:{{{crate5|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate5}}}}}<!-- |
− | -->{{#if:{{{crate6|}}}|{{!}}{{ | + | -->{{#if:{{{crate6|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate6}}}}}<!-- |
− | -->{{#if:{{{crate7|}}}|{{!}}{{ | + | -->{{#if:{{{crate7|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate7}}}}}<!-- |
− | -->{{#if:{{{drop|}}}|{{!}}{{ | + | -->{{#if:{{{drop|}}}|{{!}}{{common string|Item drop system}}}}<!-- |
− | -->{{#if:{{{craft|}}}|{{!}}{{ | + | -->{{#if:{{{craft|}}}|{{!}}{{common string|Crafting}}}}<!-- |
− | -->{{#if:{{{store|}}}|{{!}}{{ | + | -->{{#if:{{{store|}}}|{{!}}{{common string|Mann Co. Store}}}}<!-- |
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}} | -->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}} | ||
|93 = {{item name|concealed killer weapons case}} | |93 = {{item name|concealed killer weapons case}} | ||
Line 80: | Line 80: | ||
|130 = {{item name|winter 2020 cosmetic case}} | |130 = {{item name|winter 2020 cosmetic case}} | ||
|131 = {{item name|winter 2020 war paint case}} | |131 = {{item name|winter 2020 war paint case}} | ||
+ | |132 = {{item name|summer 2021 cosmetic case}} | ||
|#default = {{item name|mann co. supply crate}} #{{{case}}} | |#default = {{item name|mann co. supply crate}} #{{{case}}} | ||
}}}}<!-- | }}}}<!-- | ||
-->}}<noinclude>{{Template doc}}</noinclude> | -->}}<noinclude>{{Template doc}}</noinclude> |
Revision as of 17:48, 23 June 2021
{{{1}}}
This template is very complex. 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}}
, {{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}}
.