Template:Class/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Class. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 9,450,000 pages, or roughly 23488% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template is used to show WP1.0 assessment ratings on WikiProject banners and other places.
Usage
{{class|grade}}
- Where grade is the classification of the article.
{{class|grade|image=yes}}
|image=yes
Displays a small icon next to the grade description for all assessments (produced by{{class/icon}}
).|image=no
does not ever display icons.|image=
(blank or undefined) displays icons for FA, FL, A and GA classes only.
{{class|grade|category=category}}
- Define an alternative category link.
{{class|grade|header=yes}}
- By default the
{{class}}
template generates a table cell using the<td>...</td>
element. If the template is used in the header row of a sortable table, use|header=yes
so that the cell is constructed using the<th>...</th>
element. If used elsewhere than a header row, omit this parameter.
- By default the
Examples
|
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
TemplateData for Class
Parameter | Description | Type | Status | |
---|---|---|---|---|
Grade | 1 | The classification of the article | String | required |
Image | image | Set to 'yes' to display an icon; 'no' to not display an icon; or no value or blank to display an icon for FA, FL, A and GA classes only | String | optional |
Category | category | An alternative category link | String | optional |
Header | header | Set to 'yes' if the template is used in the header row of a sortable table, so that the cell is constructed using a "th" element rather than a "td" element | String | optional |
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 | |||
Current | Future | SIA | Deferred |
{{class|Current}} | {{class|Future}} | {{class|SIA}} | {{class|Deferred}} |
AL | BL | CL | SL |
{{class|AL}} | {{class|BL}} | {{class|CL}} | {{class|SL}} |
Category | Disambig | Draft | File |
{{class|Category}} | {{class|Disambig}} | {{class|Draft}} | {{class|File}} |
Merge | Needed | Portal | Project |
{{class|Merge}} | {{class|Needed}} | {{class|Portal}} | {{class|Project}} |
Redirect | Template | User | |
{{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
- {{Article classification}}
- {{Grading scheme}}
- {{Assessment Class Summary}}
- {{Category class}}
- {{Articles by Quality}}
- {{Class}}
- {{Class/colour}}
- {{Class/icon}}
- 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}}
- Tool to add multiple templates to quality assessment pages
{{WPBannerMeta/templatepage/qualheader|project =|topic =}}