Difference between revisions of "Template:Qualitycheck"
(Altered method for bolding text to avoid breaking CSS) |
(Translated to /no) |
||
(22 intermediate revisions by 15 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="qc {{{1}}}" | + | <div class="qc {{{1}}}" {{#switch: {{{2}}} |
− | {{#switch: {{{2}}} | + | | no = title="{{lang |
− | | no = | + | | en = Cannot exist in {{item name|{{{1}}}}} quality |
− | + | | es = No puede existir con {{item name|{{{1}}}}} | |
− | + | | da = Kan ikke findes i {{item name|{{{1}}}}} kvalitet | |
− | + | | de = Kann nicht in der Qualität {{item name|{{{1}}}}} existieren | |
− | }}" class="tick">✘</span> | + | | fr = Ne peut pas être obtenu en qualité {{item name|{{{1}}}}} |
− | | yes | #default = | + | | fi = Ei ole olemassa {{item name|{{{1}}}}} |
− | | en = {{#if: {{{origin|}}} | Can exist in {{item name|{{{1}}}}} quality | + | | nl = Kan niet bestaan in {{item name|{{{1}}}}} kwaliteit |
− | | de = {{#if: {{{origin|}}} | Kann in der Qualität {{item name|{{{1}}}}} | + | | no = Kan ikke finnes i {{item name|{{{1}}}}} kvalitet |
− | | pt-br = {{#if: {{{origin|}}} | Pode existir | + | | pl = Nie może istnieć w jakości {{item name|{{{1}}}}} |
− | }}" class="tick">✔{{#switch: {{{opt|}}} | text = <span style="font-size:10pt;font-weight:bold;"> | + | | pt-br = Não pode existir em qualidade {{item name|{{{1}}}}} |
− | }}</div> | + | | ru = Может быть {{item name|{{{1}}}}} |
+ | | tr = {{item name|{{{1}}}}} niteliğinde elde edilemez | ||
+ | | zh-hans = 不能以{{item name|{{{1}}}}}品质存在 | ||
+ | }}"><span class="tick">✘</span> | ||
+ | | yes | #default = title="{{lang | ||
+ | | en = {{#if: {{{origin|}}} | Can exist in {{item name|{{{1}}}}} quality via {{{origin}}} | Can exist in {{item name|{{{1}}}}} quality }} | ||
+ | | es = {{#if: {{{origin|}}} | Puede existir {{item name|{{{1}}}}} a través de {{{origin}}} | Puede existir {{item name|{{{1}}}}} }} | ||
+ | | da = {{#if: {{{origin|}}} | Kan findes i {{item name|{{{1}}}}} kvalitet ved hjælp af {{{origin}}} | Kan findes i {{item name|{{{1}}}}} kvalitet }} | ||
+ | | de = {{#if: {{{origin|}}} | Kann in der Qualität {{item name|{{{1}}}}} existieren, wegens {{{origin}}} | Kann in der Qualität {{item name|{{{1}}}}} existieren }} | ||
+ | | fi = {{#if: {{{origin|}}} | Tämä esine on olemassa {{item name|{{{1}}}}} ja sen voi saada {{{origin}}} | Tämä esine on olemassa {{item name|{{{1}}}}} }} | ||
+ | | fr = {{#if: {{{origin|}}} | Peut être obtenu en qualité {{item name|{{{1}}}}} via {{{origin}}} | Peut être obtenu en qualité {{item name|{{{1}}}}} }} | ||
+ | | nl = {{#if: {{{origin|}}} | Kan bestaan in {{item name|{{{1}}}}} kwaliteit via {{{origin}}} | Kan bestaan in {{item name|{{{1}}}}} kwaliteit }} | ||
+ | | no = {{#if: {{{origin|}}} | Kan finnes i {{item name|{{{1}}}}} kvalitet ved hjelp av {{{origin}}} | Kan finnes i {{item name|{{{1}}}}} kvalitet }} | ||
+ | | pt-br = {{#if: {{{origin|}}} | Pode existir em qualidade {{item name|{{{1}}}}} via {{{origin}}} | Pode existir em qualidade {{item name|{{{1}}}}} }} | ||
+ | | pl = {{#if: {{{origin|}}} | Może istnieć w jakości {{item name|{{{1}}}}} poprzez {{{origin}}} | Może istnieć w jakości {{item name|{{{1}}}}} }} | ||
+ | | ru = {{#if: {{{origin|}}} | Может быть {{item name|{{{1}}}}} ({{{origin}}}) | Может быть {{item name|{{{1}}}}} }} | ||
+ | | tr = {{#if: {{{origin|}}} | {{{origin}}} sayesinde {{item name|{{{1}}}}} niteliğinde elde edilebilir | {{item name|{{{1}}}}} niteliğinde elde edilebilir }} | ||
+ | | zh-hans = {{#if: {{{origin|}}} | 能通过{{{origin}}}得到{{item name|{{{1}}}}}品质| 能以{{item name|{{{1}}}}}品质存在}} | ||
+ | }}"><span class="tick">✔{{#switch: {{{opt|}}} | text = <span style="font-size:10pt;font-weight:bold;" class="qc {{{1}}}">[[{{{1}}}{{if lang}}|{{item name|{{{1}}}}}]]</span>}}</span> | ||
+ | }}</div><noinclude>{{Template doc}}</noinclude> |
Latest revision as of 15:28, 1 May 2019
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}}
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}}
.