Revision as of 19:50, 16 January 2022 view sourceFunandtrvl (talk | contribs)Autopatrolled, Extended confirmed users, Pending changes reviewers, Rollbackers, Template editors204,328 edits add header for possibly empty category to match template:category class← Previous edit | Latest revision as of 20:11, 21 December 2024 view source MSGJ (talk | contribs)Autopatrolled, Administrators130,779 edits convert to LuaTag: Replaced | ||
Line 1: | Line 1: | ||
{{#invoke:Articles by importance|main}}<noinclude> | |||
__EXPECTUNUSEDCATEGORY__{{Category other|{{Possibly empty category}}}} | |||
{{documentation}} | |||
<table class="toccolours nomobile" style="table-layout:fixed;margin:1em auto;"> | |||
<tr> | |||
{{category importance/column|importance=Top|topic={{{topic|}}} | |||
}}{{category importance/column|importance=High|topic={{{topic|}}} | |||
}}{{category importance/column|importance=Mid|topic={{{topic|}}} | |||
}}{{category importance/column|importance=Low|topic={{{topic|}}} | |||
}}{{category importance/column|importance=Bottom|topic={{{topic|}}} | |||
}}{{category importance/column|importance=NA|topic={{{topic|}}} | |||
}}{{category importance/column|importance=|topic={{{topic|}}} | |||
}}{{Importance|Unknown|category={{#if:{{{topic|}}}|{{{topic|}}} articles}}|bold=no}} | |||
</tr> | |||
<tr> | |||
{{category importance/second row column|importance=Top|topic={{{topic|}}} | |||
}}{{category importance/second row column|importance=High|topic={{{topic|}}} | |||
}}{{category importance/second row column|importance=Mid|topic={{{topic|}}} | |||
}}{{category importance/second row column|importance=Low|topic={{{topic|}}} | |||
}}{{category importance/second row column|importance=Bottom|topic={{{topic|}}} | |||
}}{{category importance/second row column|importance=NA|topic={{{topic|}}} | |||
}}{{category importance/second row column|importance=|topic={{{topic|}}} | |||
}}{{category importance/second row column|importance=Unknown|topic={{{topic|}}} | |||
}} | |||
</tr> | |||
</table>{{#switch:{{{importance|}}} | |||
|nocat | |||
|= | |||
|#default=]<!-- | |||
-->]<!-- | |||
-->{{#if:{{{topic|}}}|{{#if:{{{importance|}}} | |||
|{{#ifeq:{{PAGENAME}}|{{PAGENAME:{{{importance}}}{{#ifeq:{{lc:{{{importance|}}}}}|unassessed||-importance}} {{{topic}}} articles}}| | |||
|] | |||
}} | |||
}}}} | |||
}}<!-- | |||
# Track whether the importance parameter is actually needed | |||
-->{{Category other<!-- | |||
-->|<!-- | |||
-->{{#if: {{{importance|}}}<!-- | |||
-->|<!-- | |||
-->{{#ifeq: {{ucfirst:{{{importance|}}}}}|{{#invoke:String|replace|{{PAGENAME}}|^(%a+)-importance .+$|%1|1|false}}<!-- | |||
-->|]<!-- | |||
-->|]<!-- | |||
-->}}<!-- | |||
-->|<!-- | |||
-->]<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
--><noinclude><!-- | |||
-->{{Documentation}} | |||
</noinclude> | </noinclude> |
Latest revision as of 20:11, 21 December 2024
Top | High | Mid | Low | Bottom | NA | ??? |
0 | 0 | 0 | 0 | 0 | 0 | 0 |
This template is used on approximately 10,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. |
- {{cat importance}}
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:
- Category:Template Category importance with importance parameter matching title (0)
- Category:Template Category importance with importance parameter not matching title (0)
- Category:Template Category importance with blank or missing importance parameter (0)
- Category:WikiProject assessment categories needing attention (168)
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
- {{Article classification}}
- {{Grading scheme}}
- {{Assessment Class Summary}}
- {{Category class}}
- {{Articles by Quality}}
- {{Class}}
Importance
- {{Article importance}}
- {{Importance scheme}}
- {{Assessment Importance Summary}}
- {{Category importance}}
- {{Articles by Importance}}
- {{Importance}}
- {{Importance/colour}}
- {{Importance/icon}}
Hybrid
Others
- {{Articles by Quality Pie Graph}}
- {{Articles by Importance Pie Graph}}
- {{Progression rainbow}}
- {{WikiProject assessment progression}}
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: