Difference between revisions of "Template:QuAD/list"

From Team Fortress Wiki
Jump to: navigation, search
m
(Tag: Undo)
m
Line 15: Line 15:
 
-->{{#if:{{{promo|}}}|{{!}}{{common string|{{{promo}}}}}}}<!--
 
-->{{#if:{{{promo|}}}|{{!}}{{common string|{{{promo}}}}}}}<!--
 
-->{{#if:{{{promo2|}}}|{{!}}{{common string|{{{promo2}}}}}}}<!--
 
-->{{#if:{{{promo2|}}}|{{!}}{{common string|{{{promo2}}}}}}}<!--
-->{{#if:{{{crate1|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate1}}}}}}}<!--
+
-->{{#if:{{{crate1|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate1}}}}}}}<!--
-->{{#if:{{{crate2|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate2}}}}}}}<!--
+
-->{{#if:{{{crate2|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate2}}}}}}}<!--
-->{{#if:{{{crate3|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate3}}}}}}}<!--
+
-->{{#if:{{{crate3|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate3}}}}}}}<!--
-->{{#if:{{{crate4|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate4}}}}}}}<!--
+
-->{{#if:{{{crate4|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate4}}}}}}}<!--
-->{{#if:{{{crate5|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate5}}}}}}}<!--
+
-->{{#if:{{{crate5|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate5}}}}}}}<!--
-->{{#if:{{{crate6|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate6}}}}}}}<!--
+
-->{{#if:{{{crate6|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate6}}}}}}}<!--
-->{{#if:{{{crate7|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply crate}}|{{{crate7}}}}}}}<!--
+
-->{{#if:{{{crate7|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply crate}}|{{{crate7}}}}}}}<!--
 
-->{{#if:{{{series6|}}}|{{!}}{{dictionary/items/festive winter crate}}}}<!--
 
-->{{#if:{{{series6|}}}|{{!}}{{dictionary/items/festive winter crate}}}}<!--
 
-->{{#if:{{{series22|}}}|{{!}}{{dictionary/items/refreshing summer cooler}}}}<!--
 
-->{{#if:{{{series22|}}}|{{!}}{{dictionary/items/refreshing summer cooler}}}}<!--
-->{{#if:{{{series30|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/salvaged mann co. supply crate}}|30}}}}<!--
+
-->{{#if:{{{series30|}}}|{{!}}{{QuAD/series|{{dictionary/items/salvaged mann co. supply crate}}|30}}}}<!--
 
-->{{#if:{{{series35|}}}|{{!}}{{dictionary/items/naughty winter crate}}}}<!--
 
-->{{#if:{{{series35|}}}|{{!}}{{dictionary/items/naughty winter crate}}}}<!--
 
-->{{#if:{{{series36|}}}|{{!}}{{dictionary/items/nice winter crate}}}}<!--
 
-->{{#if:{{{series36|}}}|{{!}}{{dictionary/items/nice winter crate}}}}<!--
-->{{#if:{{{series40|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/salvaged mann co. supply crate}}|40}}}}<!--
+
-->{{#if:{{{series40|}}}|{{!}}{{QuAD/series|{{dictionary/items/salvaged mann co. supply crate}}|40}}}}<!--
 
-->{{#if:{{{series46|}}}|{{!}}{{dictionary/items/scorched crate}}}}<!--
 
-->{{#if:{{{series46|}}}|{{!}}{{dictionary/items/scorched crate}}}}<!--
 
-->{{#if:{{{series48|}}}|{{!}}{{dictionary/items/fall crate}}}}<!--
 
-->{{#if:{{{series48|}}}|{{!}}{{dictionary/items/fall crate}}}}<!--
-->{{#if:{{{series50|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/salvaged mann co. supply crate}}|50}}}}<!--
+
-->{{#if:{{{series50|}}}|{{!}}{{QuAD/series|{{dictionary/items/salvaged mann co. supply crate}}|50}}}}<!--
 
-->{{#if:{{{series51|}}}|{{!}}{{dictionary/items/eerie crate}}}}<!--
 
-->{{#if:{{{series51|}}}|{{!}}{{dictionary/items/eerie crate}}}}<!--
 
-->{{#if:{{{series52|}}}|{{!}}{{dictionary/items/naughty winter crate 2012}}}}<!--
 
-->{{#if:{{{series52|}}}|{{!}}{{dictionary/items/naughty winter crate 2012}}}}<!--
 
-->{{#if:{{{series53|}}}|{{!}}{{dictionary/items/nice winter crate 2012}}}}<!--
 
-->{{#if:{{{series53|}}}|{{!}}{{dictionary/items/nice winter crate 2012}}}}<!--
 
-->{{#if:{{{series58|}}}|{{!}}{{dictionary/items/robo community crate}}}}<!--
 
-->{{#if:{{{series58|}}}|{{!}}{{dictionary/items/robo community crate}}}}<!--
-->{{#if:{{{series60|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/select reserve mann co. supply crate}}|60}}}}<!--
+
-->{{#if:{{{series60|}}}|{{!}}{{QuAD/series|{{dictionary/items/select reserve mann co. supply crate}}|60}}}}<!--
 
-->{{#if:{{{series61|}}}|{{!}}{{dictionary/items/summer appetizer crate}}}}<!--
 
-->{{#if:{{{series61|}}}|{{!}}{{dictionary/items/summer appetizer crate}}}}<!--
 
-->{{#if:{{{series62|}}}|{{!}}{{dictionary/items/red summer 2013 cooler}}}}<!--
 
-->{{#if:{{{series62|}}}|{{!}}{{dictionary/items/red summer 2013 cooler}}}}<!--
Line 51: Line 51:
 
-->{{#if:{{{series79|}}}|{{!}}{{dictionary/items/nice winter crate 2013}}}}<!--
 
-->{{#if:{{{series79|}}}|{{!}}{{dictionary/items/nice winter crate 2013}}}}<!--
 
-->{{#if:{{{series81|}}}|{{!}}{{dictionary/items/mann co. strongbox}}}}<!--
 
-->{{#if:{{{series81|}}}|{{!}}{{dictionary/items/mann co. strongbox}}}}<!--
-->{{#if:{{{series82|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|82}}}}<!--
+
-->{{#if:{{{series82|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|82}}}}<!--
-->{{#if:{{{series83|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|83}}}}<!--
+
-->{{#if:{{{series83|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|83}}}}<!--
-->{{#if:{{{series84|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|84}}}}<!--
+
-->{{#if:{{{series84|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|84}}}}<!--
-->{{#if:{{{series85|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|85}}}}<!--
+
-->{{#if:{{{series85|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|85}}}}<!--
 
-->{{#if:{{{series86|}}}|{{!}}{{dictionary/items/limited late summer crate}}}}<!--
 
-->{{#if:{{{series86|}}}|{{!}}{{dictionary/items/limited late summer crate}}}}<!--
 
-->{{#if:{{{series87|}}}|{{!}}{{dictionary/items/end of the line community crate}}}}<!--
 
-->{{#if:{{{series87|}}}|{{!}}{{dictionary/items/end of the line community crate}}}}<!--
 
-->{{#if:{{{series88|}}}|{{!}}{{dictionary/items/naughty winter crate 2014}}}}<!--
 
-->{{#if:{{{series88|}}}|{{!}}{{dictionary/items/naughty winter crate 2014}}}}<!--
 
-->{{#if:{{{series89|}}}|{{!}}{{dictionary/items/nice winter crate 2014}}}}<!--
 
-->{{#if:{{{series89|}}}|{{!}}{{dictionary/items/nice winter crate 2014}}}}<!--
-->{{#if:{{{series90|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|90}}}}<!--
+
-->{{#if:{{{series90|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|90}}}}<!--
-->{{#if:{{{series91|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|91}}}}<!--
+
-->{{#if:{{{series91|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|91}}}}<!--
-->{{#if:{{{series92|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|92}}}}<!--
+
-->{{#if:{{{series92|}}}|{{!}}{{QuAD/series|{{dictionary/items/mann co. supply munition}}|92}}}}<!--
-->{{#if:{{{series103|}}}|{{!}}{{dictionary/common strings/crate-series|{{dictionary/items/mann co. supply munition}}|103}}}}<!--
+
-->{{#if:{{{series103|}}}|{{!}}{{QuAD/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:{{{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}}}}}}}}}<!--

Revision as of 01:14, 27 January 2023

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