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 5,530,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. Please consider discussing any 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=yesDisplays a small icon next to the grade description for all assessments (produced by{{class/icon}}).|image=nodoes 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=yesso that the cell is constructed using the<th>...</th>element. If used elsewhere than a header row, omit this parameter.
- By default the
Examples
|
{{class|FA}} {{class|FA|image=no}}
{{class|FA|category=biography articles}} {{class|Bplus}}
{{class|Bplus|image=yes}} {{class|Bplus|category=mathematics articles}}
|
Template data
| 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 the <th> element rather than the <tl> element | String | optional |
See also
| Standard class types | |||
|---|---|---|---|
| B | |||
| {{class|FA}} | {{class|A}} | {{class|GA}} | {{class|B}} |
| C | Start | Stub | |
| {{class|C}} | {{class|Start}} | {{class|Stub}} | {{class|FL}} |
| List | NA | ??? | |
| {{class|List}} | {{class|FM}} | {{class|NA}} | {{class|Unassessed}} |
| Non-standard class types | |||
| Book | Category | Current | Disambig |
| {{class|Book}} | {{class|Category}} | {{class|Current}} | {{class|Disambig}} |
| File | Future | Merge | Needed |
| {{class|File}} | {{class|Future}} | {{class|Merge}} | {{class|Needed}} |
| Portal | Project | Redirect | Template |
| {{class|Portal}} | {{class|Project}} | {{class|Redirect}} | {{class|Template}} |
| 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}} / {{Cat priority}}
- {{Articles by Importance}}
- {{Importance}}
- {{Importance/colour}}
- {{Importance/icon}}
- Hybrid
- Tool to add multiple templates to quality assessment pages
{{WPBannerMeta/templatepage/qualheader |project =|topic =}}