Difference between revisions of "Template:QuAD/list"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Removed reels from special to fix double special= in Dictionary/quad)
Line 1: Line 1:
 
<!--
 
<!--
For performance reasons, {{Item name}} and {{Common string}} have been replaced with their direct dictionary substitutes. This is only for cases where {{lc:}} is not needed, to help reduce the template expansion cost.
+
For performance reasons, {{item name}} and {{common string}} have been replaced with their direct dictionary substitutes. This is only for cases where {{lc:}} is not needed, to help reduce the template expansion cost. Don't change the order of the parameters, thanks.
 
-->
 
-->
 
{{QuAD/list/core<!--
 
{{QuAD/list/core<!--
Line 63: Line 63:
 
-->{{#if:{{{series92|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|92}}}}<!--
 
-->{{#if:{{{series92|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|92}}}}<!--
 
-->{{#if:{{{series103|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|103}}}}<!--
 
-->{{#if:{{{series103|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|103}}}}<!--
 +
-->{{#if:{{{reels|}}}|{{!}}{{dictionary/items/mann co. audition reel}}{{!}}{{dictionary/items/mann co. director's cut reel}}}}<!--
 
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/p|{{common string|{{{gift}}}}}}}}}<!--
 
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/p|{{common string|{{{gift}}}}}}}}}<!--
 
-->{{#if:{{{halloween-package|}}}|{{!}}{{dictionary/items/halloween package}}}}<!--
 
-->{{#if:{{{halloween-package|}}}|{{!}}{{dictionary/items/halloween package}}}}<!--
Line 83: Line 84:
 
|propaganda contest = {{dictionary/common strings/propaganda contest}}
 
|propaganda contest = {{dictionary/common strings/propaganda contest}}
 
|pyromania update = {{dictionary/common strings/pyromania update}}
 
|pyromania update = {{dictionary/common strings/pyromania update}}
|reels = {{dictionary/items/mann co. audition reel}}{{!}}{{dictionary/items/mann co. director's cut reel}}
 
 
|scream fortress update = {{dictionary/common strings/scream fortress update}}
 
|scream fortress update = {{dictionary/common strings/scream fortress update}}
 
|steam holiday sale 2013 badge = {{dictionary/common strings/steam holiday sale 2013 badge}}
 
|steam holiday sale 2013 badge = {{dictionary/common strings/steam holiday sale 2013 badge}}

Revision as of 01:04, 26 November 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}} 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}}.