Difference between revisions of "Template:Class"
Jump to navigation
Jump to search
test>Happy-melon (make space conditional) |
test>Happy-melon (tweak) |
||
| Line 3: | Line 3: | ||
--><td class="assess-{{lc:{{{1|}}}}} {{{class|}}}" style="text-align:center; font-weight:bold; {{{style|}}}" {{{attr|}}}><!-- | --><td class="assess-{{lc:{{{1|}}}}} {{{class|}}}" style="text-align:center; font-weight:bold; {{{style|}}}" {{{attr|}}}><!-- | ||
| − | -->{{#ifeq:{{{image|}}}|yes|{{ | + | -->{{#ifeq:{{{image|}}}|yes|{{classicon|class={{{1|}}}}} }}<!-- |
-->[[:Category:<!-- | -->[[:Category:<!-- | ||
| − | -->{{#switch:{{{1|}}} | | + | -->{{#switch:{{lc:{{{1|}}}}} |
| + | |fa|fl|ga|na|={{uc:{{{1}}}-Class | ||
| + | |unassessed|=Unassessed | ||
| + | |#default={{lc:{{{1}}}}}-Class | ||
| + | }}<!-- | ||
--> {{#if:{{{category|}}}|{{{category}}}|articles}}<!-- | --> {{#if:{{{category|}}}|{{{category}}}|articles}}<!-- | ||
| − | -->|{{# | + | -->|{{#switch:{{lc:{{{1|}}}}} |
| + | |fa|fl|ga|na|={{uc:{{{1}}} | ||
| + | |unassessed|=??? | ||
| + | |#default={{ucfirst:{{lc:{{{1}}}}}}} | ||
| + | }}]]<!-- | ||
--></td><!-- | --></td><!-- | ||
Revision as of 19:06, 25 January 2009
[[:Category:{{#switch:
|fa|fl|ga|na|={{{1}}}-CLASS articles|{{#switch:
|fa|fl|ga|na|={{{1}}}]] |
| 40px | 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 | |||
|---|---|---|---|
16px [[:Category:{{#switch:fa
|fa|fl|ga|na|=FA-CLASS articles|{{#switch:fa
|fa|fl|ga|na|=FA]] |
16px [[:Category:{{#switch:fl
|fa|fl|ga|na|=FL-CLASS articles|{{#switch:fl
|fa|fl|ga|na|=FL]] |
16px [[:Category:{{#switch:fm
|fa|fl|ga|na|=FM-CLASS articles|{{#switch:fm
|fa|fl|ga|na|=FM]] |
16px [[:Category:{{#switch:a
|fa|fl|ga|na|=A-CLASS articles|{{#switch:a
|fa|fl|ga|na|=A]] |
| {{class|FA}} | {{class|FL}} | {{class|FM}} | {{class|A}} |
16px [[:Category:{{#switch:ga
|fa|fl|ga|na|=GA-CLASS articles|{{#switch:ga
|fa|fl|ga|na|=GA]] |
16px [[:Category:{{#switch:b
|fa|fl|ga|na|=B-CLASS articles|{{#switch:b
|fa|fl|ga|na|=B]] |
16px [[:Category:{{#switch:c
|fa|fl|ga|na|=C-CLASS articles|{{#switch:c
|fa|fl|ga|na|=C]] |
16px [[:Category:{{#switch:start
|fa|fl|ga|na|=START-CLASS articles|{{#switch:start
|fa|fl|ga|na|=START]] |
| {{class|GA}} | {{class|B}} | {{class|C}} | {{class|Start}} |
16px [[:Category:{{#switch:stub
|fa|fl|ga|na|=STUB-CLASS articles|{{#switch:stub
|fa|fl|ga|na|=STUB]] |
16px [[:Category:{{#switch:list
|fa|fl|ga|na|=LIST-CLASS articles|{{#switch:list
|fa|fl|ga|na|=LIST]] |
16px [[:Category:{{#switch:na
|fa|fl|ga|na|=NA-CLASS articles|{{#switch:na
|fa|fl|ga|na|=NA]] |
16px [[:Category:{{#switch:unassessed
|fa|fl|ga|na|=UNASSESSED-CLASS articles|{{#switch:unassessed
|fa|fl|ga|na|=UNASSESSED]] |
| {{class|Stub}} | {{class|List}} | {{class|NA}} | {{class|Unassessed}} |
| Non-standard class types | |||
16px [[:Category:{{#switch:current
|fa|fl|ga|na|=CURRENT-CLASS articles|{{#switch:current
|fa|fl|ga|na|=CURRENT]] |
16px [[:Category:{{#switch:future
|fa|fl|ga|na|=FUTURE-CLASS articles|{{#switch:future
|fa|fl|ga|na|=FUTURE]] |
16px [[:Category:{{#switch:sia
|fa|fl|ga|na|=SIA-CLASS articles|{{#switch:sia
|fa|fl|ga|na|=SIA]] |
[[:Category:{{#switch:deferred
|fa|fl|ga|na|=DEFERRED-CLASS articles|{{#switch:deferred
|fa|fl|ga|na|=DEFERRED]] |
| {{class|Current}} | {{class|Future}} | {{class|SIA}} | {{class|Deferred}} |
[[:Category:{{#switch:al
|fa|fl|ga|na|=AL-CLASS articles|{{#switch:al
|fa|fl|ga|na|=AL]] |
[[:Category:{{#switch:bl
|fa|fl|ga|na|=BL-CLASS articles|{{#switch:bl
|fa|fl|ga|na|=BL]] |
[[:Category:{{#switch:cl
|fa|fl|ga|na|=CL-CLASS articles|{{#switch:cl
|fa|fl|ga|na|=CL]] |
[[:Category:{{#switch:sl
|fa|fl|ga|na|=SL-CLASS articles|{{#switch:sl
|fa|fl|ga|na|=SL]] |
| {{class|AL}} | {{class|BL}} | {{class|CL}} | {{class|SL}} |
[[:Category:{{#switch:book
|fa|fl|ga|na|=BOOK-CLASS articles|{{#switch:book
|fa|fl|ga|na|=BOOK]] |
[[:Category:{{#switch:category
|fa|fl|ga|na|=CATEGORY-CLASS articles|{{#switch:category
|fa|fl|ga|na|=CATEGORY]] |
[[:Category:{{#switch:disambig
|fa|fl|ga|na|=DISAMBIG-CLASS articles|{{#switch:disambig
|fa|fl|ga|na|=DISAMBIG]] |
[[:Category:{{#switch:draft
|fa|fl|ga|na|=DRAFT-CLASS articles|{{#switch:draft
|fa|fl|ga|na|=DRAFT]] |
| {{class|Book}} | {{class|Category}} | {{class|Disambig}} | {{class|Draft}} |
[[:Category:{{#switch:file
|fa|fl|ga|na|=FILE-CLASS articles|{{#switch:file
|fa|fl|ga|na|=FILE]] |
[[:Category:{{#switch:merge
|fa|fl|ga|na|=MERGE-CLASS articles|{{#switch:merge
|fa|fl|ga|na|=MERGE]] |
[[:Category:{{#switch:needed
|fa|fl|ga|na|=NEEDED-CLASS articles|{{#switch:needed
|fa|fl|ga|na|=NEEDED]] |
[[:Category:{{#switch:portal
|fa|fl|ga|na|=PORTAL-CLASS articles|{{#switch:portal
|fa|fl|ga|na|=PORTAL]] |
| {{class|File}} | {{class|Merge}} | {{class|Needed}} | {{class|Portal}} |
[[:Category:{{#switch:project
|fa|fl|ga|na|=PROJECT-CLASS articles|{{#switch:project
|fa|fl|ga|na|=PROJECT]] |
[[:Category:{{#switch:redirect
|fa|fl|ga|na|=REDIRECT-CLASS articles|{{#switch:redirect
|fa|fl|ga|na|=REDIRECT]] |
[[:Category:{{#switch:template
|fa|fl|ga|na|=TEMPLATE-CLASS articles|{{#switch:template
|fa|fl|ga|na|=TEMPLATE]] |
[[:Category:{{#switch:user
|fa|fl|ga|na|=USER-CLASS articles|{{#switch:user
|fa|fl|ga|na|=USER]] |
| {{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 =}}
| The above documentation is transcluded from Template:Class/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |