Difference between revisions of "Template:Class"

From blackwiki
Jump to navigation Jump to search
test>Happy-melon
(fix)
test>Happy-melon
(tweak)
Line 4: Line 4:
  
 
-->{{#ifeq:{{{image|}}}|yes|{{#switch:{{lc:{{{1|}}}}}
 
-->{{#ifeq:{{{image|}}}|yes|{{#switch:{{lc:{{{1|}}}}}
  |fa    = [[File:Featured article star.svg|14px|Featured article]]
+
  |fa    = [[File:Featured article star.svg|16px|Featured article]]
  |a    = [[File:Symbol a class.svg|14px|A-Class article]]
+
  |a    = [[File:Symbol a class.svg       |16px|A-Class article]]
  |ga    = [[File:Symbol support vote.svg|14px|Good article]]
+
  |ga    = [[File:Symbol support vote.svg |16px|Good article]]
  |b    = [[File:Symbol b class.svg|14px|B-Class article]]
+
  |b    = [[File:Symbol b class.svg       |16px|B-Class article]]
  |c    = [[File:Symbol c class.svg|14px|C-Class article]]
+
  |c    = [[File:Symbol c class.svg       |16px|C-Class article]]
  |start = [[File:Symbol start class.svg|14px|Start-Class article]]
+
  |start = [[File:Symbol start class.svg   |16px|Start-Class article]]
  |stub  = [[File:Symbol stub class.svg|14px|Stub-Class article]]
+
  |stub  = [[File:Symbol stub class.svg   |16px|Stub-Class article]]
  |list  = [[File:Symbol list class.svg|14px|List-Class article]]
+
  |list  = [[File:Symbol list class.svg   |16px|List-Class article]]
 
}}}}<!--
 
}}}}<!--
  

Revision as of 01:27, 18 January 2009

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

FA

{{class|FA|image=no}}

FA

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

FA

{{class|B}}

B

{{class|B|image=yes}}

B-Class articleB

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

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
Featured articleFA FL FM A-Class articleA
{{class|FA}} {{class|FL}} {{class|FM}} {{class|A}}
Good articleGA B-Class articleB C-Class articleC Start-Class articleStart
{{class|GA}} {{class|B}} {{class|C}} {{class|Start}}
Stub-Class articleStub List-Class articleList NA Unassessed
{{class|Stub}} {{class|List}} {{class|NA}} {{class|Unassessed}}
Non-standard class types
Current Future SIA Deferred
{{class|Current}} {{class|Future}} {{class|SIA}} {{class|Deferred}}
AL BL CL SL
{{class|AL}} {{class|BL}} {{class|CL}} {{class|SL}}
Book Category Disambig Draft
{{class|Book}} {{class|Category}} {{class|Disambig}} {{class|Draft}}
File Merge Needed Portal
{{class|File}} {{class|Merge}} {{class|Needed}} {{class|Portal}}
Project Redirect Template 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