Difference between revisions of "Template:QuAD/list"

From Team Fortress Wiki
Jump to: navigation, search
m
m
Line 5: Line 5:
 
|#default={{ns:0}}<!-- null-->
 
|#default={{ns:0}}<!-- null-->
 
}}<!--
 
}}<!--
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/of}}{{dictionary/common strings/{{lc:{{{gift}}}}}}}}}<!--
 
 
-->{{#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}}
|winter 2016 cosmetic crate = {{item name|Unlocked Winter 2016 Cosmetic Case}}
 
 
|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:{{{unlock|}}}|{{!}}{{common string|{{{unlock}}}}}}}<!--
 
 
-->{{#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:{{{drop|}}}|{{!}}{{common string|Item drop system}}}}<!--
+
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/of}}{{dictionary/common strings/{{lc:{{{gift}}}}}}}}}<!--
-->{{#if:{{{craft|}}}|{{!}}{{common string|Crafting}}}}<!--
+
-->{{#if:{{{halloween-package|}}}|{{!}}{{item name|Halloween Package}}}}<!--
-->{{#if:{{{store|}}}|{{!}}{{common string|Mann Co. Store}}}}<!--
+
-->{{#if:{{{transmute|}}}|{{!}}{{common string|Halloween Transmute}}}}<!--
 
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}}
 
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}}
|93 = {{item name|concealed killer weapons case}}
+
|93 = {{item name|Concealed Killer Weapons Case}}
|94 = {{item name|powerhouse weapons case}}
+
|94 = {{item name|Powerhouse Weapons Case}}
|95 = {{item name|gun mettle cosmetic case}}
+
|95 = {{item name|Gun Mettle Cosmetic Case}}
|96 = {{item name|quarantined collection case}}
+
|96 = {{item name|Quarantined Collection Case}}
|97 = {{item name|confidential collection case}}
+
|97 = {{item name|Confidential Collection Case}}
|98 = {{item name|gargoyle case}}
+
|98 = {{item name|Gargoyle Case}}
|99 = {{item name|pyroland weapons case}}
+
|99 = {{item name|Pyroland Weapons Case}}
|100 = {{item name|warbird weapons case}}
+
|100 = {{item name|Warbird Weapons Case}}
|101 = {{item name|tough break cosmetic case}}
+
|101 = {{item name|Tough Break Cosmetic Case}}
|102 = {{item name|mayflower cosmetic case}}
+
|102 = {{item name|Mayflower Cosmetic Case}}
 
|104 = {{item name|creepy crawly case}}
 
|104 = {{item name|creepy crawly case}}
|105 = {{item name|unlocked winter 2016 cosmetic case}}
+
|105 = {{item name|Unlocked Winter 2016 Cosmetic Case}}
|106 = {{item name|rainy day cosmetic case}}
+
|106 = {{item name|Rainy Day Cosmetic Case}}
|107 = {{item name|abominable cosmetic case}}
+
|107 = {{item name|Abominable Cosmetic Case}}
|108 = {{item name|unleash the beast cosmetic case}}
+
|108 = {{item name|Unleash the Beast Cosmetic Case}}
|109 = {{item name|jungle jackpot war paint case}}
+
|109 = {{item name|Jungle Jackpot War Paint Case}}
|110 = {{item name|infernal reward war paint case}}
+
|110 = {{item name|Infernal Reward War Paint Case}}
|111 = {{item name|decorated war hero war paint civilian grade keyless 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}}
+
|112 = {{item name|Decorated War Hero War Paint Freelance Grade Keyless Case}}
|113 = {{item name|decorated war hero war paint mercenary 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}}
+
|114 = {{item name|Contract Campaigner War Paint Civilian Grade Keyless Case}}
|115 = {{item name|contract campaigner war paint freelance 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}}
+
|116 = {{item name|Contract Campaigner War Paint Mercenary Grade Keyless Case}}
|117 = {{item name|winter 2017 cosmetic case}}
+
|117 = {{item name|Winter 2017 Cosmetic Case}}
|118 = {{item name|winter 2017 war paint case}}
+
|118 = {{item name|Winter 2017 War Paint Case}}
|119 = {{item name|blue moon cosmetic case}}
+
|119 = {{item name|Blue Moon Cosmetic Case}}
|120 = {{item name|violet vermin case}}
+
|120 = {{item name|Violet Vermin Case}}
|121 = {{item name|scream fortress x war paint case}}
+
|121 = {{item name|Scream Fortress X War Paint Case}}
|122 = {{item name|winter 2018 cosmetic case}}
+
|122 = {{item name|Winter 2018 Cosmetic Case}}
|123 = {{item name|summer 2019 cosmetic case}}
+
|123 = {{item name|Summer 2019 Cosmetic Case}}
|124 = {{item name|spooky spoils case}}
+
|124 = {{item name|Spooky Spoils Case}}
|125 = {{item name|winter 2019 cosmetic case}}
+
|125 = {{item name|Winter 2019 Cosmetic Case}}
|126 = {{item name|winter 2019 war paint case}}
+
|126 = {{item name|Winter 2019 War Paint Case}}
|127 = {{item name|summer 2020 cosmetic case}}
+
|127 = {{item name|Summer 2020 Cosmetic Case}}
|128 = {{item name|wicked windfall case}}
+
|128 = {{item name|Wicked Windfall Case}}
|129 = {{item name|scream fortress xii war paint case}}
+
|129 = {{item name|Scream Fortress XII War Paint Case}}
|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}}
+
|132 = {{item name|Summer 2021 Cosmetic Case}}
|133 = {{item name|crimson cache case}}
+
|133 = {{item name|Crimson Cache Case}}
|134 = {{item name|scream fortress xiii war paint case}}
+
|134 = {{item name|Scream Fortress XIII War Paint Case}}
|135 = {{item name|winter 2021 cosmetic case}}
+
|135 = {{item name|Winter 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 01:31, 5 March 2022

{{{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}}.