Difference between revisions of "Template:Category class/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Funandtrvl
(update info)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
+
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 +
{{template shortcut|cat class}}
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
Line 14: Line 15:
 
{{Category class|topic=|class=|sort=|parent=}}
 
{{Category class|topic=|class=|sort=|parent=}}
 
</pre>
 
</pre>
 +
 
===Notes===
 
===Notes===
 
This template can be used to add a navigation bar to "assessment by topic" category pages that follow the naming convention "Category: ''class''-Class ''topic'' articles" (e.g. [[:Category:Start-Class history articles]]) in order to facilitate navigation between the various assessment class categories for that topic. By default, the template will also add the category to the parent categories "''Topic'' articles by quality" (e.g. History articles by quality) and "''class''-Class articles" (e.g. Start-Class articles).
 
This template can be used to add a navigation bar to "assessment by topic" category pages that follow the naming convention "Category: ''class''-Class ''topic'' articles" (e.g. [[:Category:Start-Class history articles]]) in order to facilitate navigation between the various assessment class categories for that topic. By default, the template will also add the category to the parent categories "''Topic'' articles by quality" (e.g. History articles by quality) and "''class''-Class articles" (e.g. Start-Class articles).
Line 23: Line 25:
 
* {{para|custom1}}, {{para|custom2}} (optional) - allows for addition of custom classes such as the Audio-Class, for example {{para|custom1|Audio}}
 
* {{para|custom1}}, {{para|custom2}} (optional) - allows for addition of custom classes such as the Audio-Class, for example {{para|custom1|Audio}}
  
=== Testing ===
+
== Tracking categories ==
The following tracking categories are being used to test whether the value of {{para|importance}} parameter could be derived from the page title:
+
The following tracking categories are being used for this template:
* [[:Category:Template Category class with class parameter matching title]] (population: {{PAGESINCATEGORY|Template Category class with class parameter matching title}})
+
* {{clc|Template Category class with class parameter matching title}}
* [[:Category:Template Category class with class parameter not matching title]] (population: {{PAGESINCATEGORY|Template Category class with class parameter not matching title}})
+
* {{clc|Template Category class with class parameter not matching title}}
* [[:Category:Template Category class with blank or missing class parameter]] (population: {{PAGESINCATEGORY|Template Category class with blank or missing class parameter}})
+
* {{clc|Template Category class with blank or missing class parameter}}
 +
* {{clc|WikiProject assessment categories needing attention}}
  
 
<small>{{Purge page|''Purge page to update totals''}}</small>
 
<small>{{Purge page|''Purge page to update totals''}}</small>
Line 35: Line 38:
 
{{Grading scheme/doc/see also}}
 
{{Grading scheme/doc/see also}}
  
<includeonly>{{Sandbox other||
+
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
+
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Classification templates| ]]
 
[[Category:Classification templates| ]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 04:14, 18 November 2020

Usage

{{Category class
 |topic=
 |class=
 |sort=
 |parent=
}}

or

{{Category class|topic=|class=|sort=|parent=}}

Notes

This template can be used to add a navigation bar to "assessment by topic" category pages that follow the naming convention "Category: class-Class topic articles" (e.g. Category:Start-Class history articles) in order to facilitate navigation between the various assessment class categories for that topic. By default, the template will also add the category to the parent categories "Topic articles by quality" (e.g. History articles by quality) and "class-Class articles" (e.g. Start-Class articles).

  • |topic=Unassessed - If the "Unassessed" category exists, the link will go to "Unassessed topic articles".
  • |class=Image/Category/Disambig/Portal/Redirect/Template/Project/NA/etc. - If the corresponding category exists, the link will go to "class-Class topic articles".
  • |parent=WikiProject "parent" articles by quality - If the parent category does not match the child categories defined in topic, then use this parameter. See Category:FA-Class school articles for an example of this usage.
  • |custom1=, |custom2= (optional) - allows for addition of custom classes such as the Audio-Class, for example |custom1=Audio

Tracking categories

The following tracking categories are being used for this template:

Purge page to update totals

See also

Standard class types
{{class|FA}} {{class|FL}} {{class|FM}} {{class|A}}
{{class|GA}} {{class|B}} {{class|C}} {{class|Start}}
{{class|Stub}} {{class|List}} {{class|NA}} {{class|Unassessed}}
Non-standard class types
{{class|Current}} {{class|Future}} {{class|SIA}} {{class|Deferred}}
{{class|AL}} {{class|BL}} {{class|CL}} {{class|SL}}
{{class|Book}} {{class|Category}} {{class|Disambig}} {{class|Draft}}
{{class|File}} {{class|Merge}} {{class|Needed}} {{class|Portal}}
{{class|Project}} {{class|Redirect}} {{class|Template}} {{class|User}}
Importance types
 Top   High   Mid   Low 
{{importance|Top}} {{importance|High}} {{importance|Mid}} {{importance|Low}}
 Bottom   NA   ??? 
{{importance|Bottom}} {{importance|NA}} {{importance|Unknown}}
Class
Importance
Hybrid
Others
Tool to add multiple templates to quality assessment pages