Difference between revisions of "Template:QuAD/list"
m |
m |
||
Line 5: | Line 5: | ||
|#default={{ns:0}}<!-- null--> | |#default={{ns:0}}<!-- null--> | ||
}}<!-- | }}<!-- | ||
− | |||
-->{{#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}} | ||
Line 16: | Line 15: | ||
|scream fortress vi = {{item name|Unlocked Creepy Crate}}{{!}}{{item name|Halloween Gift Cauldron}} | |scream fortress vi = {{item name|Unlocked Creepy Crate}}{{!}}{{item name|Halloween Gift Cauldron}} | ||
|unlocked cosmetic crate = {{item name|Unlocked Cosmetic Crate}} | |unlocked cosmetic crate = {{item name|Unlocked Cosmetic Crate}} | ||
− | |||
|antique halloween goodie cauldron = {{item name|Antique Halloween Goodie Cauldron}} | |antique halloween goodie cauldron = {{item name|Antique Halloween Goodie Cauldron}} | ||
|botkiller weapons | |botkiller weapons | ||
Line 29: | Line 27: | ||
|#default = {{common string|{{{special}}}}} | |#default = {{common string|{{{special}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
+ | -->{{#if:{{{unlock|}}}|{{!}}{{common string|{{{unlock}}}}}}}<!-- | ||
+ | -->{{#if:{{{drop|}}}|{{!}}{{common string|Item drop system}}}}<!-- | ||
+ | -->{{#if:{{{craft|}}}|{{!}}{{common string|Crafting}}}}<!-- | ||
+ | -->{{#if:{{{store|}}}|{{!}}{{common string|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|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate1}}}}}<!-- | -->{{#if:{{{crate1|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate1}}}}}<!-- | ||
-->{{#if:{{{crate2|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate2}}}}}<!-- | -->{{#if:{{{crate2|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate2}}}}}<!-- | ||
Line 39: | Line 40: | ||
-->{{#if:{{{crate6|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate6}}}}}<!-- | -->{{#if:{{{crate6|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate6}}}}}<!-- | ||
-->{{#if:{{{crate7|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate7}}}}}<!-- | -->{{#if:{{{crate7|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate7}}}}}<!-- | ||
− | -->{{#if:{{{ | + | -->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/of}}{{dictionary/common strings/{{lc:{{{gift}}}}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{halloween-package|}}}|{{!}}{{item name|Halloween Package}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{transmute|}}}|{{!}}{{common string|Halloween Transmute}}}}<!-- |
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}} | -->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}} | ||
− | |93 = {{item name| | + | |93 = {{item name|Concealed Killer Weapons Case}} |
− | |94 = {{item name| | + | |94 = {{item name|Powerhouse Weapons Case}} |
− | |95 = {{item name| | + | |95 = {{item name|Gun Mettle Cosmetic Case}} |
− | |96 = {{item name| | + | |96 = {{item name|Quarantined Collection Case}} |
− | |97 = {{item name| | + | |97 = {{item name|Confidential Collection Case}} |
− | |98 = {{item name| | + | |98 = {{item name|Gargoyle Case}} |
− | |99 = {{item name| | + | |99 = {{item name|Pyroland Weapons Case}} |
− | |100 = {{item name| | + | |100 = {{item name|Warbird Weapons Case}} |
− | |101 = {{item name| | + | |101 = {{item name|Tough Break Cosmetic Case}} |
− | |102 = {{item name| | + | |102 = {{item name|Mayflower Cosmetic Case}} |
|104 = {{item name|creepy crawly case}} | |104 = {{item name|creepy crawly case}} | ||
− | |105 = {{item name| | + | |105 = {{item name|Unlocked Winter 2016 Cosmetic Case}} |
− | |106 = {{item name| | + | |106 = {{item name|Rainy Day Cosmetic Case}} |
− | |107 = {{item name| | + | |107 = {{item name|Abominable Cosmetic Case}} |
− | |108 = {{item name| | + | |108 = {{item name|Unleash the Beast Cosmetic Case}} |
− | |109 = {{item name| | + | |109 = {{item name|Jungle Jackpot War Paint Case}} |
− | |110 = {{item name| | + | |110 = {{item name|Infernal Reward War Paint Case}} |
− | |111 = {{item name| | + | |111 = {{item name|Decorated War Hero War Paint Civilian Grade Keyless Case}} |
− | |112 = {{item name| | + | |112 = {{item name|Decorated War Hero War Paint Freelance Grade Keyless Case}} |
− | |113 = {{item name| | + | |113 = {{item name|Decorated War Hero War Paint Mercenary Grade Keyless Case}} |
− | |114 = {{item name| | + | |114 = {{item name|Contract Campaigner War Paint Civilian Grade Keyless Case}} |
− | |115 = {{item name| | + | |115 = {{item name|Contract Campaigner War Paint Freelance Grade Keyless Case}} |
− | |116 = {{item name| | + | |116 = {{item name|Contract Campaigner War Paint Mercenary Grade Keyless Case}} |
− | |117 = {{item name| | + | |117 = {{item name|Winter 2017 Cosmetic Case}} |
− | |118 = {{item name| | + | |118 = {{item name|Winter 2017 War Paint Case}} |
− | |119 = {{item name| | + | |119 = {{item name|Blue Moon Cosmetic Case}} |
− | |120 = {{item name| | + | |120 = {{item name|Violet Vermin Case}} |
− | |121 = {{item name| | + | |121 = {{item name|Scream Fortress X War Paint Case}} |
− | |122 = {{item name| | + | |122 = {{item name|Winter 2018 Cosmetic Case}} |
− | |123 = {{item name| | + | |123 = {{item name|Summer 2019 Cosmetic Case}} |
− | |124 = {{item name| | + | |124 = {{item name|Spooky Spoils Case}} |
− | |125 = {{item name| | + | |125 = {{item name|Winter 2019 Cosmetic Case}} |
− | |126 = {{item name| | + | |126 = {{item name|Winter 2019 War Paint Case}} |
− | |127 = {{item name| | + | |127 = {{item name|Summer 2020 Cosmetic Case}} |
− | |128 = {{item name| | + | |128 = {{item name|Wicked Windfall Case}} |
− | |129 = {{item name| | + | |129 = {{item name|Scream Fortress XII War Paint Case}} |
− | |130 = {{item name| | + | |130 = {{item name|Winter 2020 Cosmetic Case}} |
− | |131 = {{item name| | + | |131 = {{item name|Winter 2020 War Paint Case}} |
− | |132 = {{item name| | + | |132 = {{item name|Summer 2021 Cosmetic Case}} |
− | |133 = {{item name| | + | |133 = {{item name|Crimson Cache Case}} |
− | |134 = {{item name| | + | |134 = {{item name|Scream Fortress XIII War Paint Case}} |
− | |135 = {{item name| | + | |135 = {{item name|Winter 2021 Cosmetic Case}} |
− | |#default = {{item name| | + | |#default = {{item name|Mann co. Supply Crate}} #{{{case}}} |
}}}}<!-- | }}}}<!-- | ||
-->}}<noinclude>{{Template doc}}</noinclude> | -->}}<noinclude>{{Template doc}}</noinclude> |
Revision as of 01:31, 5 March 2022
{{{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}}
.