Template:Class

From blackwiki
Revision as of 14:48, 8 April 2009 by test>Happy-melon (*really* confused now)
Jump to navigation Jump to search
16px ???
50px Template documentation[view] [edit] [history] [purge]

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}}

16px FA

{{class|FA|image=no}}

16px FA

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

16px FA

{{class|B}}

16px B

{{class|B|image=yes}}

16px B

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

16px B

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

Template parameters

ParameterDescriptionTypeStatus
Grade1

The classification of the article

Stringrequired
Imageimage

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

Stringoptional
Categorycategory

An alternative category link

Stringoptional
Headerheader

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

Stringoptional

See also

Standard class types
16px FA 16px FL 16px Fm 16px A
{{class|FA}} {{class|FL}} {{class|FM}} {{class|A}}
16px GA 16px B 16px C 16px Start
{{class|GA}} {{class|B}} {{class|C}} {{class|Start}}
16px Stub 16px List 16px NA 16px ???
{{class|Stub}} {{class|List}} {{class|NA}} {{class|Unassessed}}
Non-standard class types
16px Current 16px Future 16px Sia 16px Deferred
{{class|Current}} {{class|Future}} {{class|SIA}} {{class|Deferred}}
16px Al 16px Bl 16px Cl 16px SL
{{class|AL}} {{class|BL}} {{class|CL}} {{class|SL}}
16px Book 16px Category 16px Disambig 16px Draft
{{class|Book}} {{class|Category}} {{class|Disambig}} {{class|Draft}}
16px File 16px Merge 16px Needed 16px Portal
{{class|File}} {{class|Merge}} {{class|Needed}} {{class|Portal}}
16px Project 16px Redirect 16px Template 16px 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
Importance
Hybrid
Others
Tool to add multiple templates to quality assessment pages