Difference between revisions of "Template:Category importance"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
(add a second row with page counts, as tested in sandbox)
imported>BrownHairedGirl
Line 34: Line 34:
 
   }}
 
   }}
 
  }}}}
 
  }}}}
}}<noinclude>
+
}}<!--
{{documentation}}
+
 
 +
  # Track whether the importance parameter is actually needed
 +
-->{{Category other<!--
 +
    -->|<!--
 +
        -->{{#ifeq: {{{importance|}}}|{{#invoke:String|replace|{{PAGENAME}}|^(%a+)-importance .+$|%1|1|false}}<!--
 +
            -->|[[Category:Template Category importance with importance parameter matching title]]<!--
 +
            -->|[[Category:Template Category importance with importance parameter not matching title]]<!--
 +
        -->}}<!--
 +
-->}}<!--
 +
--><noinclude><!--
 +
-->{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 12:59, 15 April 2020

 Top  High  Mid  Low  Bottom  NA  ??? 
  1    1    1    1    1    1    1  
50px Template documentation[view] [edit] [history] [purge]

Syntax

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

Parameters

  • topic - set so that your category is, e.g. "High-importance topic articles"
  • importance - should be one of top, high, mid, low, NA, Unknown, or (rarely) Bottom or No
  • sort (optional) - the key you want to use to sort the category in its parent Category:Foo-importance articles
  • parent (optional) - set so that your importance categories are subcategories of "parent articles by importance". If not defined, defaults to topic.

Tracking categories

The following tracking categories are being used to test 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