Template:QuAD/doc

From Team Fortress Wiki
< Template:QuAD
Revision as of 13:43, 21 June 2014 by Darkid (talk | contribs) (Created page with "== Summary == {{tl|QuAD}} is used to display the '''Qu'''ality '''A'''vailability '''D'''atabase. In other words, it will list the ways to get an item in a given quality. This...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 they will format the availability list for the relevant template (such as {{Wqc}}, {{Cqc}}, 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.

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