Difference between revisions of "Template:QuAD/list"
m |
m (Update for consistency and Dictionary/quad, hopefully it works.) |
||
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. | ||
− | |||
--> | --> | ||
{{QuAD/list/core<!-- | {{QuAD/list/core<!-- | ||
Line 68: | Line 66: | ||
-->{{#if:{{{halloween-package|}}}|{{!}}{{dictionary/items/halloween package}}}}<!-- | -->{{#if:{{{halloween-package|}}}|{{!}}{{dictionary/items/halloween package}}}}<!-- | ||
-->{{#if:{{{transmute|}}}|{{!}}{{dictionary/common strings/halloween transmute}}}}<!-- | -->{{#if:{{{transmute|}}}|{{!}}{{dictionary/common strings/halloween transmute}}}}<!-- | ||
+ | -->{{#if:{{{unlocked-creepy-crate|}}}|{{!}}{{dictionary/items/unlocked creepy crate}}}}<!-- | ||
-->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}} | -->{{#if:{{{special|}}}|{{!}}{{#switch:{{{special|}}} | ||
+ | |annual saxxy awards = {{dictionary/common strings/annual saxxy awards}} | ||
+ | |australian christmas 2011 = {{dictionary/common strings/australian christmas 2011}} | ||
+ | |classless update = {{dictionary/common strings/classless update}} | ||
+ | |contract = {{dictionary/common strings/contract}} | ||
|contract and paint = {{dictionary/common strings/contract}}{{!}}{{dictionary/items/war paint}} | |contract and paint = {{dictionary/common strings/contract}}{{!}}{{dictionary/items/war paint}} | ||
− | | | + | |engineer update = {{dictionary/common strings/engineer update}} |
+ | |haunted hallowe'en special = {{dictionary/common strings/haunted hallowe'en special}} | ||
+ | |mann up = {{dictionary/common strings/mann up}} | ||
+ | |mann-conomy update = {{dictionary/common strings/mann-conomy update}} | ||
+ | |neca action figures = {{dictionary/common strings/neca action figures}} | ||
|new vintage patch = {{Patch name|3|15|2011|no-link=yes}} | |new vintage patch = {{Patch name|3|15|2011|no-link=yes}} | ||
+ | |premium = {{dictionary/common strings/premium}} | ||
+ | |propaganda contest = {{dictionary/common strings/propaganda contest}} | ||
+ | |pyromania update = {{dictionary/common strings/pyromania update}} | ||
|reels = {{dictionary/items/mann co. audition reel}}{{!}}{{dictionary/items/mann co. director's cut reel}} | |reels = {{dictionary/items/mann co. audition reel}}{{!}}{{dictionary/items/mann co. director's cut reel}} | ||
+ | |scream fortress update = {{dictionary/common strings/scream fortress update}} | ||
+ | |steam holiday sale 2013 badge = {{dictionary/common strings/steam holiday sale 2013 badge}} | ||
|stockpile = {{dictionary/items/mann co. stockpile crate}} | |stockpile = {{dictionary/items/mann co. stockpile crate}} | ||
+ | |unavailable = {{dictionary/common strings/unavailable}} | ||
|unusual = {{dictionary/items/mann co. supply crate}} | |unusual = {{dictionary/items/mann co. supply crate}} | ||
− | | | + | |valve store = {{dictionary/common strings/valve store}} |
− | | | + | |very scary halloween special = {{dictionary/common strings/very scary halloween special}} |
− | | | + | |welovefine = {{dictionary/common strings/welovefine}} |
− | |antique halloween goodie cauldron | + | |über update = {{dictionary/common strings/über update}} |
+ | |antique halloween goodie cauldron | ||
|botkiller weapons | |botkiller weapons | ||
+ | |bread box | ||
|chemistry set | |chemistry set | ||
|dueling mini-game | |dueling mini-game | ||
+ | |halloween gift cauldron | ||
+ | |manniversary package | ||
+ | |pallet of crates | ||
|pile of ash | |pile of ash | ||
|pile of curses | |pile of curses | ||
Line 87: | Line 105: | ||
|quakecon bundle | |quakecon bundle | ||
|strange bacon grease | |strange bacon grease | ||
+ | |unusualifier | ||
+ | |war paint | ||
|strangifier = {{item name|{{{special}}}}} | |strangifier = {{item name|{{{special}}}}} | ||
− | |#default = {{ | + | |#default = {{ns:0}}<!-- null --> |
}}}}<!-- | }}}}<!-- | ||
+ | -->{{#if:{{{unlocked-cosmetic-crate|}}}|{{!}}{{dictionary/items/unlocked cosmetic crate}}}}<!-- | ||
-->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}} | -->{{#if:{{{case|}}}|{{!}}{{#switch:{{{case|}}} | ||
|93 = {{dictionary/items/concealed killer weapons case}} | |93 = {{dictionary/items/concealed killer weapons case}} |
Revision as of 15:03, 1 October 2022
{{{1}}}
This template is very complex. If you have questions about this template, feel free to ask on the IRC. Darkid has offered to maintain this template, you may contact them if you need further assistance. |
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}}
.