Difference between revisions of "Template:QuAD/list/core"

From Team Fortress Wiki
Jump to: navigation, search
(Make way for the new era... 2!)
m (Protected "Template:QuAD/list/core": High server impact: Quad is used in the infobox on every item page, and the core of the template doesn't need modifyng. ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{{1}}}<!--
+
{{{1}}}{{#if:{{{2|}}}|<!--
-->{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{QuAD/comma}}{{{2}}}<!--
+
-->{{#if:{{{3|}}}|{{QuAD/comma}}{{{2}}}<!--
 
-->{{#if:{{{4|}}}|{{QuAD/comma}}{{{3}}}<!--
 
-->{{#if:{{{4|}}}|{{QuAD/comma}}{{{3}}}<!--
 
-->{{#if:{{{5|}}}|{{QuAD/comma}}{{{4}}}<!--
 
-->{{#if:{{{5|}}}|{{QuAD/comma}}{{{4}}}<!--
Line 36: Line 36:
 
-->|&nbsp;{{QuAD/ampersand}}{{{3}}}}}<!--
 
-->|&nbsp;{{QuAD/ampersand}}{{{3}}}}}<!--
 
-->|&nbsp;{{QuAD/ampersand}}{{{2}}}}}<!--
 
-->|&nbsp;{{QuAD/ampersand}}{{{2}}}}}<!--
-->|}}
+
-->|}}<noinclude>{{Template doc}}</noinclude>

Latest revision as of 04:53, 25 April 2016

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