Difference between revisions of "Template:QuAD/list"

From Team Fortress Wiki
Jump to: navigation, search
m (Added Director's Reel and removed a duplicate Audition Reel in the list.)
m (Added support for a second special section. There could be a better way to do this, but this should work for now.)
Line 8: Line 8:
 
-->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}}
 
-->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}}
 
|audition reel = {{Item name|Mann Co. Audition Reel}}
 
|audition reel = {{Item name|Mann Co. Audition Reel}}
|director's reel = {{Item name|Mann Co. Director's Cut Reel}}
+
|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}}
 
|stockpile = {{Item name|Mann Co. Stockpile Crate}}
 
|stockpile = {{Item name|Mann Co. Stockpile Crate}}
Line 22: Line 22:
 
|strangifier = {{Item name|{{{special}}}}}
 
|strangifier = {{Item name|{{{special}}}}}
 
|#default = {{Common string|{{{special}}}}}
 
|#default = {{Common string|{{{special}}}}}
 +
}}}}<!--
 +
-->{{#if:{{{special2|}}}|{{!}}{{#switch:{{{special2|}}}
 +
|director's reel = {{Item name|Mann Co. Director's Cut Reel}}
 +
|goodie cauldron  = {{Item name|Halloween Goodie Cauldron}}
 +
|#default = {{Common string|{{{special2}}}}}
 
}}}}<!--
 
}}}}<!--
 
-->{{#if:{{{promo|}}}|{{!}}{{Common string|{{{promo}}}}}}}<!--
 
-->{{#if:{{{promo|}}}|{{!}}{{Common string|{{{promo}}}}}}}<!--

Revision as of 17:16, 5 November 2014

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