Şablon:Class mask/belge
Ev belgekirin binrûpela ji bo Şablon:Class mask e. Agahiyên bikaranîna kategorî û naveroka din ku ew beşek ji ne eslî yên şablon rûpel e. |
Bikaranîna Luayê: |
This template is designed for use in WikiProject banners, and provides an easy way to construct a bespoke class mask. The class parameter must be passed to the template as the first unnamed parameter.
Implementation in Module:WikiProject banner
[çavkaniyê biguhêre]The template provides the default class masks for WikiProject's quality scales, and is also used by a few projects which have opted out of the standard scale and use a custom class mask by setting |QUALITY_CRITERIA=custom
and |QUALITY_SCALE=subpage
in the WikiProject's banner template, and creating a /class subpage.
When used on a /class
subpage, the template should be called in the following way:
{{Class mask<noinclude>/templatepage</noinclude>|1={{{class|}}}
|topic=
|all other optional parameters desired, one per line…
}}
The <noinclude>...</noinclude>
tags allow the documentation from {{Class mask/templatepage}} to be displayed directly on the banner template's /class
subpage, where it can provide useful information and category prompts for WikiProject admins and other interested users without any adverse effects to the banner template.
- the
|topic=
parameter defines the main naming scheme of the assessment categories used by the project (i.e. the part of its assessment category names that comes afterCategory:Whatever-Class
and beforearticles
) and is used to check the existence of the categories that are required. For example, if your project uses categories such asCategory:B-Class mathematics articles
, etc., then set|topic=mathematics
.- if the template uses task forces, the parameters
|topic1=
,|topic2=
,|topic3=
,|topic4=
,|topic5=
and|topic6=
can be used to check for the corresponding categories needed by each.
- if the template uses task forces, the parameters
Optional parameters
[çavkaniyê biguhêre]- If one or more of these nine is set to
no
, the class will be switched off. Their default isyes
:|gb=
– Gotara Bijartî|lb=
– Lîsteya Bijartî|a=
– Sinifa A|gba=
– Gotara BAş|b=
– Sinifa B|c=
– Sinifa C|destpêkî=
– Sinifa Destpêkî|şitil=
– Sinifa Şitil|lîste=
– Sinifa Lîste
|FQS=
– if set toyes
, these seven additional assessment classes are activated (FQS stands for Full Quality Scale). Undesired classes may then be switched off individually by setting them tono
. When|FQS=
is absent, setting one or more toyes
will switch on only that class.|kategorî=
– Sinifa Kategorî|cudakirin=
– Sinifa Cudakirin|draft=
– Draft-Class|wêne=
– Sinifa Wêne|portal=
– Sinifa Portal|proje=
– Sinifa Proje|şablon=
– Sinifa Şablon
- If either of these is set to
yes
, that class will be switched on. The default isno
, regardless of the|FQS=
setting:|mb=
– Medyaya Bijartî|beralîkirin=
– Sinifa Beralîkirin
|forceNA=
- if set toyes
, will automatically classify pages tagged as|class=NA
depending on the namespace of the page. The default setting isno
.|b1=
,|b2=
,|b3=
,|b4=
,|b5=
,|b6=
- if the B-class checklist is used, these parameters must be passed through.
The lowercase parameter syntax
[çavkaniyê biguhêre]
Add a class in lowercase as the name of a parameter followed by the value "yes". For example, |future=yes
would add the
Future |
class. This is the simplest way of adding a class but has the following two limitations:
- The name of the class must have an initial capital letter and all following letters in lowercase. In other words, the capitalisation must be of the form Xxxxxx.
- It is not possible to use this method to add a shortcut or alternative alias for a different class, for example "Cur" for Current-class.
If either of these are required, the uppercase parameter syntax must be used (see below).
If |FQS=yes
is used, then a value of "no" may be used to switch off that individual class. Thus, on a /class
subpage:
{{Class mask<noinclude>/templatepage</noinclude>|1={{{class|}}}
|topic=physics
|FQS=yes
|portal=no
}}
would support six of the seven additional classes listed above but not support Portal-Class.
The UPPERCASE parameter syntax
[çavkaniyê biguhêre]Add a class in UPPERCASE as the name of a parameter followed by the exact, case-sensitive name of the class as the value of the parameter. For example,
|SIA=SIA
would add SIA-Class and
|CHEESECAKE=CheeseCake
would add CheeseCake-Class.
You can use this method to add a shortcut or alias for a class, too, as in the case of
|future=yes
|FUT=Future
which would have the effect that defining either |future=
or |fut=
(not case sensitive) with a valid value would result in an assessment into Future-Class for that page.
You can add as many aliases for a class as needed, so this would work just as well for SIA-Class,
|SIA=SIA
|SETINDEX=SIA
|SET INDEX ARTICLE=SIA
and would mean that an input of |sia=
, |setindex=
or |set index article=
(again, these are case-insensitive) would each result in an SIA-Class page assessment.
Example
[çavkaniyê biguhêre]The following code is placed in the banner template,
|QUALITY_SCALE=subpage
|class={{{class|}}}
and on the /class
subpage (for example {{WikiProject Zimbabwe}} uses the subpage Template:WikiProject Zimbabwe/class), the following code is used:
{{Class mask<noinclude>/templatepage</noinclude>|1={{{class|}}}
|topic=Zimbabwe
|FQS=yes
|redirect=yes
}}
In this case all seven of the "extended" quality classes are used, plus the additional Redirect-Class, and because the |topic=
parameter is set, specific documentation will be displayed on the /class subpage for it.
Subtemplates
[çavkaniyê biguhêre]- {{Class mask/b}} - the mask for B-checklist parameters
- {{Class mask/sandbox}} - the template sandbox, used for experimentation
- {{Class mask/templatepage}} - the documentation that is displayed on
/class
subpages- {{Class mask/templatepage/row}} - used by
/templatepage
- {{Class mask/templatepage/row}} - used by
- {{Class mask/doc}} - the documentation you are reading now
- {{Class mask/doc/custom}} - for information on building your own class mask
Instances
[çavkaniyê biguhêre]- This shows all /class subpages which use this template.
TemplateData
[çavkaniyê biguhêre]TemplateData ji bo Class mask
This template provides the project-specific valid Wikipedia 1.0 assessment scheme classes to Template:WPBannerMeta
Parametre | Danasîn | Cure | Rewş | |
---|---|---|---|---|
Assessment class | 1 | Passthrough for {{{class}}} parameter from Template:WPBannerMeta
| Naverok | pêwîst |
topic | topic | danasîn tune ye | Nayê zanîn | ne pêwîst |
fa | fa | danasîn tune ye | Nayê zanîn | ne pêwîst |
fl | fl | danasîn tune ye | Nayê zanîn | ne pêwîst |
a | a | danasîn tune ye | Nayê zanîn | ne pêwîst |
ga | ga | danasîn tune ye | Nayê zanîn | ne pêwîst |
b | b | danasîn tune ye | Nayê zanîn | ne pêwîst |
c | c | danasîn tune ye | Nayê zanîn | ne pêwîst |
start | start | danasîn tune ye | Nayê zanîn | ne pêwîst |
stub | stub | danasîn tune ye | Nayê zanîn | ne pêwîst |
list | list | danasîn tune ye | Nayê zanîn | ne pêwîst |
FQS | FQS | danasîn tune ye | Nayê zanîn | ne pêwîst |
category | category | danasîn tune ye | Nayê zanîn | ne pêwîst |
disambig | disambig | danasîn tune ye | Nayê zanîn | ne pêwîst |
draft | draft | danasîn tune ye | Nayê zanîn | ne pêwîst |
file | file | danasîn tune ye | Nayê zanîn | ne pêwîst |
portal | portal | danasîn tune ye | Nayê zanîn | ne pêwîst |
project | project | danasîn tune ye | Nayê zanîn | ne pêwîst |
template | template | danasîn tune ye | Nayê zanîn | ne pêwîst |
fm | fm | danasîn tune ye | Nayê zanîn | ne pêwîst |
redirect | redirect | danasîn tune ye | Nayê zanîn | ne pêwîst |
forceNA | forceNA | danasîn tune ye | Nayê zanîn | ne pêwîst |
b1 | b1 | danasîn tune ye | Nayê zanîn | ne pêwîst |
b2 | b2 | danasîn tune ye | Nayê zanîn | ne pêwîst |
b3 | b3 | danasîn tune ye | Nayê zanîn | ne pêwîst |
b4 | b4 | danasîn tune ye | Nayê zanîn | ne pêwîst |
b5 | b5 | danasîn tune ye | Nayê zanîn | ne pêwîst |
b6 | b6 | danasîn tune ye | Nayê zanîn | ne pêwîst |
topic1 | topic1 | danasîn tune ye | Nayê zanîn | ne pêwîst |
topic2 | topic2 | danasîn tune ye | Nayê zanîn | ne pêwîst |
topic3 | topic3 | danasîn tune ye | Nayê zanîn | ne pêwîst |
topic4 | topic4 | danasîn tune ye | Nayê zanîn | ne pêwîst |
topic5 | topic5 | danasîn tune ye | Nayê zanîn | ne pêwîst |
topic6 | topic6 | danasîn tune ye | Nayê zanîn | ne pêwîst |