Difference between revisions of "Template:Class/doc"
Jump to navigation
Jump to search
imported>WOSlinker (high-risk) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (31 intermediate revisions by 20 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | < | + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
| − | + | {{high-use|7,100,000|all-pages = yes}} | |
| − | This template is used to show [[ | + | This template is used to show [[Wikipedia:Version 1.0 Editorial Team/Assessment|WP1.0 assessment]] ratings on WikiProject banners and other places. |
== Usage == | == Usage == | ||
| − | + | * <code><nowiki>{{</nowiki>class|''grade''<nowiki>}}</nowiki></code> | |
| − | *< | + | *: Where ''grade'' is the classification of the article. |
| − | *:Where ''grade'' is the classification of the article. | + | * <code><nowiki>{{</nowiki>class|''grade''|image=yes<nowiki>}}</nowiki></code> |
| − | *< | + | *: '''{{para|image|yes}}''' Displays a small icon next to the grade description for ''all'' assessments (produced by {{tlx|class/icon}}). |
| − | *:'''{{para|image|yes}}''' Displays a small icon next to the grade description for ''all'' assessments (produced by {{tlx| | + | *: '''{{para|image|no}}''' does not ever display icons. |
| − | *:'''{{para|image|no}}''' does not ever display icons. | + | *: '''{{para|image}}''' (blank or undefined) displays icons for '''FA''', '''FL''', '''A''' and '''GA''' classes only. |
| − | *:'''{{para|image}}''' (blank or undefined) displays icons for '''FA''', '''FL''', '''A''' and '''GA''' classes only. | + | * <code><nowiki>{{</nowiki>class|''grade''|category=''category''<nowiki>}}</nowiki></code> |
| − | *< | + | *: Define an alternative category link. |
| − | *:Define an alternative category link. | + | * <code><nowiki>{{</nowiki>class|''grade''|header=yes<nowiki>}}</nowiki></code> |
| + | *: By default the {{tlc|class}} template generates a table cell using the {{tag|td}} element. If the template is used in the header row of a sortable table, use {{para|header|yes}} so that the cell is constructed using the {{tag|th}} element. If used elsewhere than a header row, omit this parameter. | ||
=== Examples === | === Examples === | ||
{| style="width:100%; background:transparent;" | {| style="width:100%; background:transparent;" | ||
| | | | ||
| − | < | + | <code><nowiki>{{class|FA}}</nowiki></code> |
<table>{{class|FA}}</table> | <table>{{class|FA}}</table> | ||
| − | < | + | <code><nowiki>{{class|FA|image=no}}</nowiki></code> |
<table>{{class|FA|image=no}}</table> | <table>{{class|FA|image=no}}</table> | ||
| − | < | + | <code><nowiki>{{class|FA|category=biography articles}}</nowiki></code> |
<table>{{class|FA|category=biography articles}}</table> | <table>{{class|FA|category=biography articles}}</table> | ||
| − | < | + | <code><nowiki>{{class|B}}</nowiki></code> |
| − | <table>{{class|B | + | <table>{{class|B}}</table> |
| − | < | + | <code><nowiki>{{class|B|image=yes}}</nowiki></code> |
| − | <table>{{class|B | + | <table>{{class|B|image=yes}}</table> |
| − | < | + | <code><nowiki>{{class|B|category=mathematics articles}}</nowiki></code> |
| − | <table>{{class|B | + | <table>{{class|B|category=mathematics articles}}</table> |
| − | |||
|} | |} | ||
| + | |||
| + | ==TemplateData== | ||
| + | {{TemplateData header}} | ||
| + | <TemplateData> | ||
| + | { | ||
| + | "description": "", | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Grade", | ||
| + | "description": "The classification of the article", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "image": { | ||
| + | "label": "Image", | ||
| + | "description": "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", | ||
| + | "type": "string", | ||
| + | "required": false | ||
| + | }, | ||
| + | "category": { | ||
| + | "label": "Category", | ||
| + | "description": "An alternative category link", | ||
| + | "type": "string", | ||
| + | "required": false | ||
| + | }, | ||
| + | "header": { | ||
| + | "label": "Header", | ||
| + | "description": "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", | ||
| + | "type": "string", | ||
| + | "required": false | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </TemplateData> | ||
==See also== | ==See also== | ||
{{Grading scheme/doc/see also}} | {{Grading scheme/doc/see also}} | ||
| + | * [[Wikipedia:Version 1.0 Editorial Team/Assessment]] | ||
| + | * [[Template:WPBannerMeta]] | ||
| − | + | <includeonly>{{Sandbox other|| | |
| − | + | <!-- Categories below this line, please; interwikis at Wikidata --> | |
| − | |||
| − | <includeonly> | ||
| − | <!-- | ||
[[Category:Classification templates| Class]] | [[Category:Classification templates| Class]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 15:06, 24 April 2020
| 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 8,820,000 pages, or roughly 2195% 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. Transclusion count updated automatically (see documentation). |
This template is used to show WP1.0 assessment ratings on WikiProject banners and other places.
Contents
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
|
|
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
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 | |||
|---|---|---|---|
| {{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
- {{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 =}}