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:{{{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:{{{promo2|}}}|{{!}}{{common string|{{{promo2}}}}}}}<!--
 +
-->{{#if:{{{crate1|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate1}}}}}<!--
 +
-->{{#if:{{{crate2|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate2}}}}}<!--
 +
-->{{#if:{{{crate3|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate3}}}}}<!--
 +
-->{{#if:{{{crate4|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate4}}}}}<!--
 +
-->{{#if:{{{crate5|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate5}}}}}<!--
 +
-->{{#if:{{{crate6|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate6}}}}}<!--
 +
-->{{#if:{{{crate7|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate7}}}}}<!--
 
-->{{#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 27: Line 40:
 
|#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:{{{promo2|}}}|{{!}}{{common string|{{{promo2}}}}}}}<!--
 
-->{{#if:{{{crate1|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate1}}}}}<!--
 
-->{{#if:{{{crate2|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate2}}}}}<!--
 
-->{{#if:{{{crate3|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate3}}}}}<!--
 
-->{{#if:{{{crate4|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate4}}}}}<!--
 
-->{{#if:{{{crate5|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate5}}}}}<!--
 
-->{{#if:{{{crate6|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate6}}}}}<!--
 
-->{{#if:{{{crate7|}}}|{{!}}{{item name|Mann Co. Supply Crate}} #{{{crate7}}}}}<!--
 
 
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/of}}{{dictionary/common strings/{{lc:{{{gift}}}}}}}}}<!--
 
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/of}}{{dictionary/common strings/{{lc:{{{gift}}}}}}}}}<!--
 
-->{{#if:{{{halloween-package|}}}|{{!}}{{item name|Halloween Package}}}}<!--
 
-->{{#if:{{{halloween-package|}}}|{{!}}{{item name|Halloween Package}}}}<!--
Line 54: Line 54:
 
|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}}
Line 86: Line 86:
 
|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 02:22, 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}}.