Difference between revisions of "Template:QuAD/list"

From Team Fortress Wiki
Jump to: navigation, search
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 = {{Item name|Unlocked 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 = {{Item name|Mann Co. Audition Reel}}{{!}}{{Item name|Mann Co. Director's Cut Reel}}
+
|reels = {{item name|Mann Co. Audition Reel}}{{!}}{{item name|Mann Co. Director's Cut Reel}}
|stockpile = {{Item name|Mann Co. Stockpile Crate}}
+
|stockpile = {{item name|Mann Co. Stockpile Crate}}
|unusual = {{Item name|Mann Co. Supply Crate}}
+
|unusual = {{item name|Mann Co. Supply Crate}}
|unusualifier = {{Item name|unusualifier}}
+
|unusualifier = {{item name|unusualifier}}
|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}}
+
|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 = {{Item name|{{{special}}}}}
+
|strangifier = {{item name|{{{special}}}}}
|#default = {{Common string|{{{special}}}}}
+
|#default = {{common string|{{{special}}}}}
 
}}}}<!--
 
}}}}<!--
-->{{#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:{{{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}}}}}<!--
-->{{#if:{{{crate3|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate3}}}}}<!--
+
-->{{#if:{{{crate3|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate3}}}}}<!--
-->{{#if:{{{crate4|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate4}}}}}<!--
+
-->{{#if:{{{crate4|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate4}}}}}<!--
-->{{#if:{{{crate5|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate5}}}}}<!--
+
-->{{#if:{{{crate5|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate5}}}}}<!--
-->{{#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:{{{drop|}}}|{{!}}{{common string|Item drop system}}}}<!--
-->{{#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|}}}
 
-->{{#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}}}

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