Misplaced Pages

Template:Category class: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 19:49, 7 December 2024 view sourceFayenatic london (talk | contribs)Autopatrolled, Administrators335,704 edits another instance for FM pages← Previous edit Revision as of 09:04, 20 December 2024 view source MSGJ (talk | contribs)Autopatrolled, Administrators130,779 edits use Module:Articles by qualityTag: ReplacedNext edit →
Line 1: Line 1:
{{#invoke:Articles by quality|main}}<noinclude>
__EXPECTUNUSEDCATEGORY__{{Category other|{{Possibly empty category}}}}
{{documentation}}
<table class="toccolours nomobile" style="table-layout:fixed;margin:1em auto;">
<tr>
{{category class/column|class=FA|topic={{{topic|}}}
}}{{category class/column|class=A|topic={{{topic|}}}
}}{{category class/column|class=GA|topic={{{topic|}}}
}}{{category class/column|class=B|topic={{{topic|}}}
}}{{category class/column|class=C|topic={{{topic|}}}
}}{{category class/column|class=Start|topic={{{topic|}}}
}}{{category class/column|class=Stub|topic={{{topic|}}}
}}{{category class/column|class=FL|topic={{{topic|}}}
}}{{category class/column|class=AL|topic={{{topic|}}}
}}{{category class/column|class=BL|topic={{{topic|}}}
}}{{category class/column|class=CL|topic={{{topic|}}}
}}{{category class/column|class=List|topic={{{topic|}}}
}}{{category class/column|class=SIA|topic={{{topic|}}}
}}{{category class/column|class=Future|topic={{{topic|}}}
}}{{category class/column|class=Category|topic={{{topic|}}}
}}{{category class/column|class=Disambig|topic={{{topic|}}}
}}{{category class/column|class=Draft|topic={{{topic|}}}
}}{{category class/column|class=FM|topic={{{topic|}}}
}}{{category class/column|class=File|topic={{{topic|}}}
}}{{category class/column|class=Needed|topic={{{topic|}}}
}}{{category class/column|class=Portal|topic={{{topic|}}}
}}{{category class/column|class=Project|topic={{{topic|}}}
}}{{category class/column|class=Redirect|topic={{{topic|}}}
}}{{category class/column|class=Template|topic={{{topic|}}}
}}{{category class/column|class=User|topic={{{topic|}}}
}}{{#if:{{{custom1|}}}|{{category class/column|class={{{custom1}}}|topic={{{topic|}}}}}
}}{{#if:{{{custom2|}}}|{{category class/column|class={{{custom2}}}|topic={{{topic|}}}}}
}}{{category class/column|class=NA|topic={{{topic|}}}
}}{{category class/column|class=|topic={{{topic|}}}
}}{{Class|Unassessed|category={{#if:{{{topic|}}}|{{{topic|}}} articles}}|bold=no}}
</tr>
<tr>
{{category class/second row column|class=FA|topic={{{topic|}}}
}}{{category class/second row column|class=A|topic={{{topic|}}}
}}{{category class/second row column|class=GA|topic={{{topic|}}}
}}{{category class/second row column|class=B|topic={{{topic|}}}
}}{{category class/second row column|class=C|topic={{{topic|}}}
}}{{category class/second row column|class=Start|topic={{{topic|}}}
}}{{category class/second row column|class=Stub|topic={{{topic|}}}
}}{{category class/second row column|class=FL|topic={{{topic|}}}
}}{{category class/second row column|class=AL|topic={{{topic|}}}
}}{{category class/second row column|class=BL|topic={{{topic|}}}
}}{{category class/second row column|class=CL|topic={{{topic|}}}
}}{{category class/second row column|class=List|topic={{{topic|}}}
}}{{category class/second row column|class=SIA|topic={{{topic|}}}
}}{{category class/second row column|class=Future|topic={{{topic|}}}
}}{{category class/second row column|class=Category|topic={{{topic|}}}
}}{{category class/second row column|class=Disambig|topic={{{topic|}}}
}}{{category class/second row column|class=Draft|topic={{{topic|}}}
}}{{category class/second row column|class=FM|topic={{{topic|}}}
}}{{category class/second row column|class=File|topic={{{topic|}}}
}}{{category class/second row column|class=Needed|topic={{{topic|}}}
}}{{category class/second row column|class=Portal|topic={{{topic|}}}
}}{{category class/second row column|class=Project|topic={{{topic|}}}
}}{{category class/second row column|class=Redirect|topic={{{topic|}}}
}}{{category class/second row column|class=Template|topic={{{topic|}}}
}}{{category class/second row column|class=User|topic={{{topic|}}}
}}{{#if:{{{custom1|}}}|{{category class/second row column|class={{{custom1}}}|topic={{{topic|}}}}}
}}{{#if:{{{custom2|}}}|{{category class/second row column|class={{{custom2}}}|topic={{{topic|}}}}}
}}{{category class/second row column|class=NA|topic={{{topic|}}}
}}{{category class/second row column|class=|topic={{{topic|}}}
}}{{category class/second row column|class=Unassessed|topic={{{topic|}}}}}
</tr>
</table>{{#switch:{{{class|}}}
|nocat
|=
|#default=]<!--

-->]<!--

-->{{#if:{{{topic|}}}|{{#if:{{{class|}}}
|{{#ifeq:{{PAGENAME}}|{{PAGENAME:{{{class}}}{{#ifeq:{{lc:{{{class|}}}}}|unassessed||-Class}} {{{topic}}} {{#ifeq:{{{class}}}|FM|pages|articles}}}}|
|]
}}
}}}}
}}<!--

# Track whether the class parameter is actually needed
-->{{Category other<!--
-->|<!--
-->{{#if: {{{class|}}}<!--
-->|<!--
-->{{#ifeq: {{ucfirst:{{{class|}}}}}|{{#invoke:String|replace|{{PAGENAME}}|^(%a+)-Class .+$|%1|1|false}}<!--
-->|]<!--
-->|<!--
-->{{#ifeq: {{ucfirst:{{{class|}}}}}|{{#invoke:String|replace|{{PAGENAME}}|^(Unassessed) .+$|%1|1|false}}<!--
-->|]<!--
-->|]<!--
-->}}<!--
-->}}<!--
-->|<!--
-->]<!--
-->}}<!--
-->}}<!--
--><noinclude><!--
-->{{Documentation}}
</noinclude> </noinclude>

Revision as of 09:04, 20 December 2024

 FA A GABCStartStub FL ALBLCLListSIAFutureCategoryDisambigDraft FMFileNeededPortalProjectRedirectTemplateUserNA???
0001438962,0915,69700002000000000000004,988
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
WarningThis template is used on approximately 35,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Shortcut

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
 FA  FL  FM  A
{{Class|FA}} {{Class|FL}} {{Class|FM}} {{Class|A}}
 GA B C Start
{{Class|GA}} {{Class|B}} {{Class|C}} {{Class|Start}}
Stub List NA ???
{{Class|Stub}} {{Class|List}} {{Class|NA}} {{Class|Unassessed}}
Non-standard class types
Future SIA  AL
{{Class|Future}} {{Class|SIA}} {{Class|AL}}
BL CL Category
{{Class|BL}} {{Class|CL}} {{Class|Category}}
Disambig Draft File
{{Class|Disambig}} {{Class|Draft}} {{Class|File}}
Needed Portal Project Redirect
{{Class|Needed}} {{Class|Portal}} {{Class|Project}} {{Class|Redirect}}
Template User
{{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

This box: The above documentation is transcluded from Template:Category class/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: