Template:Class/doc

From 'City of Adelaide' History and Genealogy Site
Jump to navigation Jump to search

{{#invoke:Message box|mbox}} {{#invoke:Message box|ombox}}

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.

Examples

{{class|FA}}

Featured article FA 

{{class|FA|image=no}}

Featured article FA 

{{class|FA|category=biography articles}}

Featured article FA 

{{class|Bplus}}

Bplus-Class article Bplus 

{{class|Bplus|image=yes}}

Bplus-Class article Bplus 

{{class|Bplus|category=mathematics articles}}

Bplus-Class article Bplus 

Template data

<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 the element rather than the <tl> element",

                       "type": "string",
                       "required": false
               }
       }

} </TemplateData>

See also

Standard class types
Featured article FA  A-Class article A  File:Symbol support vote.svg GA  B-Class article B 
{{class|FA}} {{class|A}} {{class|GA}} {{class|B}}
C-Class article C  Start-Class article Start  Stub-Class article Stub  Featured list FL 
{{class|C}} {{class|Start}} {{class|Stub}} {{class|FL}}
File:Symbol list class.svg List  Featured media FM  File:Symbol neutral vote.svg NA  File:Symbol question.svg ??? 
{{class|List}} {{class|FM}} {{class|NA}} {{class|Unassessed}}
Non-standard class types
Wikipedia Book Book  Category page Category  File:Symbol question.svg Current  Disambiguation page Disambig 
{{class|Book}} {{class|Category}} {{class|Current}} {{class|Disambig}}
File:Video-x-generic.svg File  File:Symbol question.svg Future  File:Symbol question.svg Merge  File:Symbol question.svg Needed 
{{class|File}} {{class|Future}} {{class|Merge}} {{class|Needed}}
File:Portal-puzzle.svg Portal  File:Symbol information vote.svg Project  Redirect page Redirect  File:Symbol template class.svg 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
Importance
Hybrid
Tool to add multiple templates to quality assessment pages