Difference between revisions of "Template:QuAD/list"
ThatHatGuy (talk | contribs) (added Contract and Paint string for Decorated weapons available through both older campaign cases and War Paints) |
m (add case) |
||
Line 41: | Line 41: | ||
-->{{#if:{{{craft|}}}|{{!}}{{Common string|Crafting}}}}<!-- | -->{{#if:{{{craft|}}}|{{!}}{{Common string|Crafting}}}}<!-- | ||
-->{{#if:{{{store|}}}|{{!}}{{Common string|Mann Co. Store}}}}<!-- | -->{{#if:{{{store|}}}|{{!}}{{Common string|Mann Co. Store}}}}<!-- | ||
+ | -->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}} | ||
+ | |93 = {{item name|concealed killer weapons case}} | ||
+ | |94 = {{item name|powerhouse weapons case}} | ||
+ | |95 = {{item name|gun mettle cosmetic case}} | ||
+ | |96 = {{item name|quarantined collection case}} | ||
+ | |97 = {{item name|confidential collection case}} | ||
+ | |98 = {{item name|gargoyle case}} | ||
+ | |99 = {{item name|pyroland weapons case}} | ||
+ | |100 = {{item name|warbird weapons case}} | ||
+ | |101 = {{item name|tough break cosmetic case}} | ||
+ | |102 = {{item name|mayflower cosmetic case}} | ||
+ | |104 = {{item name|creepy crawly case}} | ||
+ | |105 = {{item name|unlocked winter 2016 cosmetic case}} | ||
+ | |106 = {{item name|rainy day cosmetic case}} | ||
+ | |107 = {{item name|abominable cosmetic case}} | ||
+ | |108 = {{item name|unleash the beast cosmetic case}} | ||
+ | |109 = {{item name|jungle jackpot war paint case}} | ||
+ | |110 = {{item name|infernal reward war paint case}} | ||
+ | |111 = {{item name|decorated war hero war paint civilian grade keyless case}} | ||
+ | |112 = {{item name|decorated war hero war paint freelance grade keyless case}} | ||
+ | |113 = {{item name|decorated war hero war paint mercenary grade keyless case}} | ||
+ | |114 = {{item name|contract campaigner war paint civilian grade keyless case}} | ||
+ | |115 = {{item name|contract campaigner war paint freelance grade keyless case}} | ||
+ | |116 = {{item name|contract campaigner war paint mercenary grade keyless case}} | ||
+ | |117 = {{item name|winter 2017 cosmetic case}} | ||
+ | |118 = {{item name|winter 2017 war paint case}} | ||
+ | |119 = {{item name|blue moon cosmetic case}} | ||
+ | |120 = {{item name|violet vermin case}} | ||
+ | |121 = {{item name|scream fortress x war paint case}} | ||
+ | |122 = {{item name|winter 2018 cosmetic case}} | ||
+ | |123 = {{item name|summer 2019 cosmetic case}} | ||
+ | |124 = {{item name|spooky spoils case}} | ||
+ | |125 = {{item name|winter 2019 cosmetic case}} | ||
+ | |126 = {{item name|winter 2019 war paint case}} | ||
+ | |127 = {{item name|summer 2020 cosmetic case}} | ||
+ | |128 = {{item name|wicked windfall case}} | ||
+ | |129 = {{item name|scream fortress xii war paint case}} | ||
+ | |130 = {{item name|winter 2020 cosmetic case}} | ||
+ | |131 = {{item name|winter 2020 war paint case}} | ||
+ | |#default = {{item name|mann co. supply crate}} #{{{case}}} | ||
+ | }}}}<!-- | ||
-->}}<noinclude>{{Template doc}}</noinclude> | -->}}<noinclude>{{Template doc}}</noinclude> |
Revision as of 13:31, 26 December 2020
{{{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}}
.