Revision as of 12:35, 9 May 2023 view sourceMSGJ (talk | contribs)Autopatrolled, Administrators130,779 editsm Reverted edits by MSGJ (talk) to last version by GonnymTag: Rollback← Previous edit | Revision as of 13:20, 9 May 2023 view source MSGJ (talk | contribs)Autopatrolled, Administrators130,779 editsm simplify/fix logic for unassessedNext edit → | ||
Line 1: | Line 1: | ||
__EXPECTUNUSEDCATEGORY__<table class="{{{format|wikitable}}}" style="table-layout: |
__EXPECTUNUSEDCATEGORY__<table class="{{{format|wikitable}}}" style="table-layout:fixed;text-align:center;margin:1em auto;"> | ||
<tr><!-- | <tr><!-- | ||
-->{{Articles by Quality/up|class=FA|topic={{{topic|}}}}}<!-- | -->{{Articles by Quality/up|class=FA|topic={{{topic|}}}}}<!-- | ||
Line 33: | Line 33: | ||
-->{{#if:{{{custom2|}}}|{{Articles by Quality/up|class={{{custom2}}}|topic={{{topic|}}}}}}}<!-- | -->{{#if:{{{custom2|}}}|{{Articles by Quality/up|class={{{custom2}}}|topic={{{topic|}}}}}}}<!-- | ||
-->{{Articles by Quality/up|class=NA|topic={{{topic|}}}}}<!-- | -->{{Articles by Quality/up|class=NA|topic={{{topic|}}}}}<!-- | ||
-->{{Class|Unassessed| |
-->{{Class|Unassessed|topic={{{topic|}}}|bold=no}}<!-- | ||
--><td>Total</td> | --><td>Total</td> | ||
</tr><tr><!-- | </tr><tr><!-- | ||
Line 68: | Line 68: | ||
-->{{#if:{{{custom2|}}}|{{Articles by Quality/down|class={{{custom2}}}|topic={{{topic|}}}}}}}<!-- | -->{{#if:{{{custom2|}}}|{{Articles by Quality/down|class={{{custom2}}}|topic={{{topic|}}}}}}}<!-- | ||
-->{{Articles by Quality/down|class=NA|topic={{{topic|}}}}}<!-- | -->{{Articles by Quality/down|class=NA|topic={{{topic|}}}}}<!-- | ||
--><td>{{PAGESINCATEGORY:{{#if:{{{topic|}}} | --><td>{{PAGESINCATEGORY:Unassessed {{#if:{{{topic|}}}|{{{topic}}}}} articles|pages}}</td><!-- | ||
|Unassessed {{{topic}}} | |||
|Unassessed-Class | |||
}} articles|pages}}</td><!-- | |||
--><td>{{Articles by Quality/total|topic={{{topic|}}}|custom1={{{custom1|}}}|custom2={{{custom2|}}}}}</td> | --><td>{{Articles by Quality/total|topic={{{topic|}}}|custom1={{{custom1|}}}|custom2={{{custom2|}}}}}</td> | ||
</tr>{{#if:{{{project|}}} | </tr>{{#if:{{{project|}}} |
Revision as of 13:20, 9 May 2023
FA | A | GA | B | C | Start | Stub | FL | AL | BL | CL | List | SIA | Future | Category | Disambig | Draft | FM | File | Needed | Portal | Project | Redirect | Template | User | NA | ??? | Total |
0 | 0 | 0 | 143 | 896 | 2,091 | 5,698 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7,236 | 4,938 | 16,066 |
This template is used on approximately 2,300 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. |
- {{AbQ}}
Usage
This template will display, in a horizontal table, the number of articles of each class, which belong to a particular WikiProject. The syntax is as follows:
{{Articles by Quality |topic= |project= }}
Parameters
|topic=
(required) - set to the name used in the project or task force'sCategory:topic articles by quality
|project=
(optional) - if defined, a caption is displayed below the table with the following three links:]
,]
, and a "Refresh" button.|custom1=
,|custom2=
(optional) - allows for addition of custom classes such as the Audio-Class, for example|custom1=Audio
|format=
(optional) - changes the way the template is formatted using one of Misplaced Pages's defined styles (CSS), for example|format=toc
|task_force=
(optional) - if|project=
has been set, and|task_force=yes
then the following two parameters are required:|tf_link=
- should be set to the task force's subpage name.|parent=
- should be set to the same value as|project=
. Together, these two parameters generate the first link as:]
, along with the other two links as above.|tf_name=
(optional) - if you wish to change the default spelling of "Taskforce",|tf_name=
should be set to your preferred spelling. The link will be then rendered as:]
Examples
{{Articles by Quality|topic=AfC|project=Articles for creation}}
will result in:
FA | A | GA | B | C | Start | Stub | FL | List | Category | Disambig | Draft | File | Project | Redirect | Template | NA | ??? | Total |
17 | 0 | 296 | 3,380 | 20,704 | 64,797 | 25,792 | 14 | 2,756 | 6,959 | 966 | 30 | 1,392 | 0 | 59,030 | 470 | 542 | 307 | 187,452 |
- Changing class to format template layout
By using the |format=
tag, you can change the way the template is formatted using one of Misplaced Pages's defined styles (CSS).
{{Articles by Quality|topic=AfC|project=Articles for creation|format=toc}}
will result in:
FA | A | GA | B | C | Start | Stub | FL | List | Category | Disambig | Draft | File | Project | Redirect | Template | NA | ??? | Total |
17 | 0 | 296 | 3,380 | 20,704 | 64,797 | 25,792 | 14 | 2,756 | 6,959 | 966 | 30 | 1,392 | 0 | 59,030 | 470 | 542 | 307 | 187,452 |
You can use any of the Misplaced Pages defined classes in this parameter. In this example, the switch changes the style from the default wikitable to the toc style used in the {{Cat class}} template. All formatting in the template will be changed to the defined style chosen and cannot be modified.
Taskforce example
{{Articles by Quality |project = Food and drink |topic = Cheeses |task_force = yes |tf_link = Cheeses task force |parent = Food and drink |format = toc }}
will generate:
FA | A | GA | B | C | Start | Stub | FL | List | Category | Disambig | Draft | File | Portal | Project | Redirect | Template | NA | ??? | Total |
0 | 0 | 3 | 9 | 50 | 227 | 294 | 0 | 15 | 31 | 0 | 1 | 0 | 0 | 1 | 21 | 7 | 5 | 0 | 664 |
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: