Difference between revisions of "Template:QuAD/list"

From Team Fortress Wiki
Jump to: navigation, search
(Updating...)
Line 7: Line 7:
 
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/of}}{{dictionary/common strings/{{lc:{{{gift}}}}}}}}}<!--
 
-->{{#if:{{{gift|}}}|{{!}}{{dictionary/items/haunted halloween gift}}{{QuAD/of}}{{dictionary/common strings/{{lc:{{{gift}}}}}}}}}<!--
 
-->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}}
 
-->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}}
|unusual={{dictionary/items/mann co. supply crate}}
+
|new vintage patch={{Patch name|3|15|2011}}
|botkiller weapons|dueling mini-game|pile of ash|pile of curses|polycount pack|quakecon bundle|strange bacon grease|strangifier|chemistry set={{dictionary/items/{{lc:{{{special}}}}}}}
+
|unusual={{Item name|Mann Co. Supply Crate}}
|#default={{dictionary/common strings/{{lc:{{{special}}}}}}}
+
|audition reel
 +
|botkiller weapons
 +
|chemistry set
 +
|dueling mini-game
 +
|pile of ash
 +
|pile of curses
 +
|polycount pack
 +
|quakecon bundle
 +
|stockpile
 +
|strange bacon grease
 +
|strangifier = {{Item name|{{{special}}}}}
 +
|#default = {{Common string|{{{special}}}}}
 
}}}}<!--
 
}}}}<!--
-->{{#if:{{{promo|}}}|{{!}}{{dictionary/common strings/{{lc:{{{promo}}}}}}}}}<!--
+
-->{{#if:{{{promo|}}}|{{!}}{{Common string|{{{promo}}}}}}}<!--
-->{{#if:{{{promo2|}}}|{{!}}{{dictionary/common strings/{{lc:{{{promo2}}}}}}}}}<!--
+
-->{{#if:{{{promo2|}}}|{{!}}{{Common string|{{{promo2}}}}}}}<!--
-->{{#if:{{{unlock|}}}|{{!}}{{dictionary/common strings/{{lc:{{{unlock}}}}}}}}}<!--
+
-->{{#if:{{{unlock|}}}|{{!}}{{Common string|{{{unlock}}}}}}}<!--
-->{{#if:{{{crate1|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate1}}}}}<!--
+
-->{{#if:{{{crate1|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate1}}}}}<!--
-->{{#if:{{{crate2|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate2}}}}}<!--
+
-->{{#if:{{{crate2|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate2}}}}}<!--
-->{{#if:{{{crate3|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate3}}}}}<!--
+
-->{{#if:{{{crate3|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate3}}}}}<!--
-->{{#if:{{{crate4|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate4}}}}}<!--
+
-->{{#if:{{{crate4|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate4}}}}}<!--
-->{{#if:{{{crate5|}}}|{{!}}{{dictionary/items/mann co. supply crate}} #{{{crate5}}}}}<!--
+
-->{{#if:{{{crate5|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate5}}}}}<!--
-->{{#if:{{{crate-stockpile|}}}|{{!}}{{dictionary/items/mann co. stockpile crate}}}}<!--
+
-->{{#if:{{{crate6|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate6}}}}}<!--
-->{{#if:{{{drop|}}}|{{!}}{{dictionary/common strings/item drop system}}}}<!--
+
-->{{#if:{{{crate7|}}}|{{!}}{{Item name|Mann Co. Supply Crate}} #{{{crate7}}}}}<!--
-->{{#if:{{{craft|}}}|{{!}}{{dictionary/common strings/crafting}}}}<!--
+
-->{{#if:{{{drop|}}}|{{!}}{{Common string|Item drop system}}}}<!--
-->{{#if:{{{store|}}}|{{!}}{{dictionary/common strings/mann co. store}}}}<!--
+
-->{{#if:{{{craft|}}}|{{!}}{{Common string|Crafting}}}}<!--
 +
-->{{#if:{{{store|}}}|{{!}}{{Common string|Mann Co. Store}}}}<!--
 
-->}}<noinclude>{{Template doc}}</noinclude>
 
-->}}<noinclude>{{Template doc}}</noinclude>

Revision as of 00:49, 24 October 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}}, {{QuAD/ampersand}}, {{QuAD/p}}, and {{QuAD/series}}.

{{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}} (header/footer), {{Cqc/table/core}} (header/footer/brace), 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 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}}.