Difference between revisions of "Template:Wqc/table/core"
m |
m |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {| width=100% style="height:100%" cellspacing=2 | + | {| width=100% style="height:100%" cellspacing="2" |
− | | class="gold" colspan= | + | | class="gold" colspan="9" | {{icon item|{{{custom-image|{{{1}}}}}}|73px|link={{{1}}}{{if lang}}|alt={{{name|{{item name|{{{1}}}}}}}}}} |
|- | |- | ||
{{#if:{{{override|}}}| | {{#if:{{{override|}}}| | ||
− | {{!}} class="qc" colspan= | + | {{!}} class="qc" colspan="9" {{!}} {{qualitycheck|{{{override}}}|origin={{QuAD|{{{1|error}}}|{{{override}}}}}}}| |
{{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|normal}}|{{qualitycheck|normal|origin={{QuAD|{{{1|error}}}|normal}}}}}} | {{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|normal}}|{{qualitycheck|normal|origin={{QuAD|{{{1|error}}}|normal}}}}}} | ||
{{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|unique}}|{{qualitycheck|unique|origin={{QuAD|{{{1|error}}}|unique}}}}}} | {{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|unique}}|{{qualitycheck|unique|origin={{QuAD|{{{1|error}}}|unique}}}}}} | ||
Line 9: | Line 9: | ||
{{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|genuine}}|{{qualitycheck|genuine|origin={{QuAD|{{{1|error}}}|genuine}}}}}} | {{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|genuine}}|{{qualitycheck|genuine|origin={{QuAD|{{{1|error}}}|genuine}}}}}} | ||
{{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|strange}}|{{qualitycheck|strange|origin={{QuAD|{{{1|error}}}|strange}}}}}} | {{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|strange}}|{{qualitycheck|strange|origin={{QuAD|{{{1|error}}}|strange}}}}}} | ||
+ | {{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|unusual}}|{{qualitycheck|unusual|origin={{QuAD|{{{1|error}}}|unusual}}}}}} | ||
+ | {{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|haunted}}|{{qualitycheck|haunted|origin={{QuAD|{{{1|error}}}|haunted}}}}}} | ||
{{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|collectors}}|{{qualitycheck|collectors|origin={{QuAD|{{{1|error}}}|collectors}}}}}} | {{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|collectors}}|{{qualitycheck|collectors|origin={{QuAD|{{{1|error}}}|collectors}}}}}} | ||
+ | {{!}} class="qc" {{!}} {{#if:{{QuAD|{{{1}}}|decorated}}|{{qualitycheck|decorated|origin={{QuAD|{{{1|error}}}|decorated}}}}}} | ||
}} | }} | ||
|- | |- | ||
− | | style="height:100%" class="nameplate" colspan= | + | | style="height:100%" class="nameplate" colspan="9" | [[{{{1}}}{{if lang}}|{{{name|{{item name|{{{1}}}}}}}}]] {{#if:{{{note|}}}|<font color=#ffffff><sup>{{{note}}}</sup></font>}} |
− | |}<noinclude> | + | |}<noinclude>{{Template doc}}</noinclude> |
Latest revision as of 23:05, 6 June 2024
[[File:Item icon {{{1}}}.png|link={{{1}}}|73px|{{dictionary/items/{{{1}}}|null=|list=}}]] | ||||||||
✔
|
✔
|
✔
|
✔
|
✔
|
✔
|
✔
|
✔
|
✔
|
[[{{{1}}}|{{dictionary/items/{{{1}}}|null=|list=}}]] |
![]() | 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}}
.