Difference between revisions of "Template:Class/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (update transclusion count)
imported>Zyxw
(add {{TemplateData header}} before <templatedata>, update transclusion count)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{high-risk|5,530,000+}}
+
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{high-risk|6,120,000+}}
  
 
This template is used to show [[Wikipedia:Version 1.0 Editorial Team/Assessment|WP1.0 assessment]] ratings on WikiProject banners and other places.
 
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>
+
* <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>
+
* <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|class/icon}}).
*:'''{{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>
+
* <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>
+
* <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.
+
*: 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 ===
Line 39: Line 39:
 
|}
 
|}
  
==Template data==
+
==TemplateData==
 +
{{TemplateData header}}
 
<TemplateData>
 
<TemplateData>
 
{
 
{
Line 74: Line 75:
 
==See also==
 
==See also==
 
{{Grading scheme/doc/see also}}
 
{{Grading scheme/doc/see also}}
 +
* [[Wikipedia:Version 1.0 Editorial Team/Assessment]]
 +
* [[Template:WPBannerMeta]]
  
*[[Wikipedia:Version 1.0 Editorial Team/Assessment]]
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
*[[Template:WPBannerMeta]]
+
<!-- Categories below this line, please; interwikis at Wikidata -->
 
 
<includeonly
 
 
[[Category:Classification templates| Class]
 
[[Category:Classification templates| Class]
</includeonly>
+
}}</includeonly>

Revision as of 23:15, 26 August 2015

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

{{class|FA|image=no}}

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

{{class|Bplus}}

{{class|Bplus|image=yes}}

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

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

Stringoptional

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
Importance
Hybrid
Others
Tool to add multiple templates to quality assessment pages