Difference between revisions of "Template:Quality list"

From Team Fortress Wiki
Jump to: navigation, search
(Hey, I fixed it.)
(remove tooltip if no quad)
Line 11: Line 11:
 
-->{{#if:{{Quad|{{{item-name|}}}|self-made}}|<div class="quality-tag tooltip-self-made">[[Self-Made{{if lang}}|<span id="tooltip" title="{{QuAD|{{{item-name}}}|self-made}}">{{item name|Self-Made}}</span>]]</div>}}<!--
 
-->{{#if:{{Quad|{{{item-name|}}}|self-made}}|<div class="quality-tag tooltip-self-made">[[Self-Made{{if lang}}|<span id="tooltip" title="{{QuAD|{{{item-name}}}|self-made}}">{{item name|Self-Made}}</span>]]</div>}}<!--
 
-->{{#if:{{Quad|{{{item-name|}}}|valve}}|<div class="quality-tag tooltip-valve">[[Valve (quality){{if lang}}|<span id="tooltip" title="{{QuAD|{{{item-name}}}|valve}}">{{item name|Valve}}</span>]]</div>}}<!--
 
-->{{#if:{{Quad|{{{item-name|}}}|valve}}|<div class="quality-tag tooltip-valve">[[Valve (quality){{if lang}}|<span id="tooltip" title="{{QuAD|{{{item-name}}}|valve}}">{{item name|Valve}}</span>]]</div>}}<!--
Default case:-->|<div class="quality-tag tooltip-unique">[[Unique{{if lang}}|<span id="tooltip" title="{{Common string|Can exist in quality|Unique}}">{{Item name|Unique}}</span>]]</div>}}<noinclude>{{Template doc}}</noinclude>
+
Default case:-->|<div class="quality-tag tooltip-unique">[[Unique{{if lang}}|{{Item name|Unique}}]]</div>}}<noinclude>{{Template doc}}</noinclude>

Revision as of 16:16, 21 June 2014

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