Difference between revisions of "Template:Maths rating"

From blackwiki
Jump to navigation Jump to search
imported>SMcCandlish
(Rm. Bplus-class, per Wikipedia:Categories for discussion/Log/2018June 30#Bplus-Class articles (has merged to B-class))
imported>MSGJ
(add functionality required for merge with Template:Maths banner)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
+
{{WPBannerMeta
<!---!! NOTE TO EDITORS !!
+
|PROJECT            = Mathematics
 
+
|BANNER_NAME        = Template:Maths rating
Please do not make any nontrivial changes to this template without proposing them at WT:WPM first. This template itself is not watched by many editors. Changes to the way that article ratings are classified requires making changes to VeblenBot so that the summary tables are generated correctly.
+
  |substcheck = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
 
+
|category = {{{category|}}}
Begin first part of template: displaying the information about the article
+
  |listas = {{{listas|}}}
--><table class="tmbox tmbox-notice collapsible innercollapse wpb {{#ifeq:{{{small|}}}|yes|mbox-small}}">
+
|IMAGE_LEFT          = Nuvola apps edu mathematics-p.svg
<tr class="wpb-header" style="border-right: 1px solid #c0c090;">
+
  |IMAGE_LEFT_LARGE  = 60px
{{#if:{{{class|}}}{{{priority|}}}{{{importance|}}}
+
  |QUALITY_SCALE      = subpage
| <!-- then -->
+
  |class = {{{class|}}}
<td class="mbox-text" style="text-align:right; padding: 0.3em 1em 0.3em 0.3em; width:50%; font-weight:bold;">[[Wikipedia:WikiProject Mathematics|WikiProject&nbsp;Mathematics]]</td>
+
  |priority = {{{priority|{{{importance|}}}}}}
  <th class="mbox-text" style="width:50%; text-align:left; padding: 0.3em 0.3em 0.3em 0; border-right: 1px solid #c0c090;">{{#if:{{{class|}}} {{{priority|}}} {{{importance|}}} | (Rated&nbsp;}}<!--
+
|ASSESSMENT_CAT      = mathematics articles
-->{{#if:{{{class|}}}
+
|ASSESSMENT_LINK    = Wikipedia:WikiProject Mathematics/Wikipedia 1.0/Assessment
    |{{#ifeq:{{{class}}}|{{padleft:{{{class}}}|3}}|{{ucfirst:{{lc:{{{class}}} }} }}|{{uc:{{{class}}} }} }}-class}}<!--
+
|MAIN_ARTICLE        = mathematics
-->{{#if:{{{class|}}} |{{#if:{{{priority|}}} {{{importance|}}} |,&nbsp;}}}}<!--
+
|PORTAL              = Mathematics
-->{{#if:{{{priority|}}} |{{#ifeq:{{uc:{{{priority}}} }}|NA|NA|{{ucfirst:{{lc:{{{priority}}} }} }}}}-priority|{{#if:{{{importance|}}} |{{#ifeq:{{uc:{{{importance}}} }}|NA|NA|{{ucfirst:{{lc:{{{importance}}} }} }}}}-importance}} }}<!--
+
|COLLAPSED          = 1
-->{{#if:{{{class|}}} {{{priority|}}} {{{importance|}}}|)}}</th>
+
|COLLAPSED_HEAD      = Additional information:
| <!-- else -->
+
|note 1 = {{{vital|}}}
  <td class="mbox-empty-cell"></td>
+
|NOTE_1_TEXT        = This is a [[Wikipedia:Vital articles|vital article]].
<th class="mbox-text" style="width:100%; padding: 0.3em;">[[Wikipedia:WikiProject Mathematics|WikiProject&nbsp;Mathematics]]</th>
+
|NOTE_1_IMAGE      = Emblem-Exclamation mark curve.svg
}} <!-- endif -->
+
|NOTE_1_CAT        = Vital mathematics articles
</tr>
+
|note 2={{{portal|}}}
<tr>
+
|NOTE_2_TEXT        = This was a [[Portal:Mathematics/Selected article archive|selected article]] on the [[Portal:Mathematics|Mathematics Portal]].
<td class="mbox-text" style="padding: 0 0 0 0;" colspan="2"> <!-- start of inner table -->
+
|NOTE_2_IMAGE      = Portal.svg
<table class="tmbox" style="padding:0; width:100%; margin:0 0 0 0; background:transparent; border:none;" cellspacing="0">
+
  |NOTE_2_CAT        = Featured articles on Mathematics Portal
<tr>
+
|note 3={{{shortcut|}}}
<td colspan="{{#ifeq:{{{small|}}}|yes|2|5}}" class="mbox-text"> <!--
+
|NOTE_3_TEXT        = '''Shortcut:''' [[{{{shortcut}}}]]
-->[[Image:Nuvola apps edu mathematics-p.svg|{{#ifeq:{{{small|}}}|yes|30px|35px}}|left|WikiProject Mathematics]] <!--
+
|NOTE_3_IMAGE      = Double arrow blue.png
  -->{{#ifeq:{{{small|}}}|yes||{{portal|Mathematics}}}} This {{pagetype|{{{class|}}}}} is within the scope of '''[[Wikipedia:WikiProject Mathematics|WikiProject{{#ifeq:{{{small|}}}|yes|&#x20;|&nbsp;}}Mathematics]]''', a collaborative effort to improve the coverage of [[Mathematics]] on Wikipedia. If you would like to participate, please visit the [[Wikipedia:WikiProject Mathematics|project page]], where you can join the [[Wikipedia talk:WikiProject Mathematics|discussion]] and see a list of open tasks.</td>
+
}}<noinclude>
</tr>
+
{{documentation}}
<tr style="border-top:1px solid #c0c090;">
 
  <td class="mbox-text" {{#ifeq:{{{small|}}}|yes|style="text-align:center;" colspan="2"|style="width:25%;"}}> <!--
 
  -->[[Wikipedia:WikiProject Mathematics/Wikipedia 1.0/Assessment|Mathematics{{#ifeq:{{{small|}}}|yes|&#32;<!--&sp;-->|&nbsp;}}rating]]<!--
 
-->{{#ifeq:{{{small|}}}|yes||&#x3a;<!--:-->}}</td>
 
{{#ifeq:{{{small|}}}|yes|</tr><tr>}}
 
<td class="mbox-text" style="width:{{#ifeq:{{{small|}}}|yes|50|20}}%;text-align:center; padding:0;">
 
{{#if:{{{class|}}}|<!-- then -->{{{!}} style="width:100%; padding:0;" cellspacing="0" <!-- Old table necessary for *-Class template -->
 
{{!}}{{{{#ifeq:{{{class}}}|{{padleft:{{{class}}}|3}}|{{ucfirst:{{lc:{{{class}}} }} }}|{{uc:{{{class}}} }}}}-Class|category=Category:{{#ifeq:{{{class}}}|{{padleft:{{{class}}}|3}}|{{ucfirst:{{lc:{{{class}}} }} }}|{{uc:{{{class}}} }}}}-Class mathematics articles|class=mbox-text|style=width:100%;}}&nbsp;Class
 
{{!}}}<!--End old table-->|<!-- else
 
-->[[:Category:Unassessed mathematics articles|Quality unassessed]]<!--
 
-->}}<!-- endif --></td>
 
  <td class="mbox-text" style="width:{{#ifeq:{{{small|}}}|yes|50|20}}%; text-align:center; padding:0;">
 
{{#if:{{{priority|{{{importance|}}} }}}|<!-- then -->{{{!}} style="width:100%; padding:0;" cellspacing="0" <!-- Old table again -->
 
{{!}}{{#ifeq:{{uc:{{{priority|{{{importance}}} }}} }}|NA|<!-- then
 
-->{{NA-Class|class=mbox-text|style=width:100%;|category=Category:NA-Priority mathematics pages}}&nbsp;{{#if:{{{priority|}}}|Priority|Importance}}<!--
 
-->|<!--  else
 
-->{{{{ucfirst:{{lc:{{{priority|{{{importance}}} }}} }} }}-importance|category=Category:{{ucfirst:{{lc:{{{priority|{{{importance}}} }}} }} }}-Priority mathematics articles|class=mbox-text|style=width:100%;}}&nbsp;{{#if:{{{priority|}}}|Priority|Importance}}<!--
 
-->}}<!-- endif -->
 
{{!}}} <!-- second old table ends -->
 
|<!-- else
 
-->[[:Category: Unassessed-Priority mathematics articles|Priority unassessed]]<!--
 
-->}}<!-- endif --></td>
 
{{#ifeq:{{{small|}}}|yes|</tr><tr>}}
 
<td class="mbox-text" {{#ifeq:{{{small|}}}|yes|style="text-align:center; padding:0;" colspan="2"|style="text-align:right; width:5%; padding:0;"}}> &nbsp;'''Field''':&#x20;{{#ifeq:{{{small|}}}|yes||</td><td style="text-align:left; width:auto">&nbsp;}}<!--
 
-->{{#if:{{{field|}}}|<!--then-->{{#switch:{{lc:{{{field}}} }}
 
|basics=[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/Basics|Basics]] {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to basic mathematics]]}}
 
|applied=[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/Applied mathematics|Applied mathematics]] {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to applied mathematics]]}}
 
|discrete=[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/Discrete mathematics|Discrete mathematics]] {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to discrete mathematics]]}}
 
|foundations|logic|set theory=[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/Foundations, logic, and set theory|Foundations, logic, and set theory]] {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to foundations, logic, and set theory]]}}
 
|general=[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/General|General]] {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to general mathematics]]}}
 
|history=[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/History|History of mathematics]] {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to history of mathematics]]}}
 
|mathematician=[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/Mathematicians|Mathematicians]] {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to mathematicians]]}}
 
|probability|statistics=[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/Probability and statistics|Probability and statistics]]{{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to probability and statistics]]}}<!--
 
The following section deals with fields with the form that has a category and WPM/WP1.0 article of the associated name, such as:
 
analysis; algebra; applied mathematics; discrete mathematics; geometry; foundations, logic, and set theory; mathematical physics; mathematicians; number theory; probability and statistics; topology-->
 
|{{#ifexist:Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/{{ucfirst:{{lc:{{{field|}}} }} }}|{{#ifexist:Category:Mathematics articles related to {{lc:{{{field|}}} }}|[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/{{ucfirst:{{lc:{{{field|}}} }} }}|{{ucfirst:{{lc:{{{field|}}} }} }}]] {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to {{lc:{{{field|}}} }}]]}}|([[:Category:Unassessed field mathematics articles|Unknown field]]) {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Unassessed field mathematics articles]]}}}}|([[:Category:Unassessed field mathematics articles|Unknown field]]) {{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Unassessed field mathematics articles]]}}}}<!--end of default case-->
 
}}<!--end switch--><!-- The following deals with the history flag and unassessed articles.--><!--
 
-->{{#if:{{{historical|}}}|&nbsp;([[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/History|historical]]){{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to history of mathematics]]}}}}<!--
 
-->|<!--else
 
  -->{{#if:{{{historical|}}}|<!--then
 
  -->[[Wikipedia:WikiProject_Mathematics/Wikipedia_1.0/History|History of mathematics]]{{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Mathematics articles related to history of mathematics]]}}<!--
 
  -->|<!--else
 
  -->[[:Category:Unassessed field mathematics articles|Unassessed]]<includeonly>{{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Unassessed field mathematics articles]]}}</includeonly><!--
 
  -->}} <!--endif
 
-->}}<!--endif--></td>
 
</tr>
 
<includeonly>{{#ifeq:{{#if:{{{class|}}}|c}}{{#if:{{{priority|{{{importance|}}}}}}|p}}{{#if:{{{field|{{{historical|}}}}}}|f}}|cpf||
 
<tr style="text-align:center; border-top:1px solid #c0c090;">
 
<td colspan="{{#ifeq:{{{small|}}}|yes|2|5}}" class="mbox-text">The [[Wikipedia:WikiProject_Mathematics/Wikipedia 1.0/Assessment|assessment information]] for this article is not complete. Anyone can add information about the [[Wikipedia:WikiProject_Mathematics/Wikipedia 1.0/Grading scheme|quality]], [[Wikipedia:WikiProject_Mathematics/Wikipedia 1.0/Importance|significance]], or [[Wikipedia:WikiProject_Mathematics/Wikipedia 1.0/Fields|subject area]] of an article.</td>
 
</tr>
 
}}</includeonly>
 
{{#if:{{{vital|}}}|
 
<tr style="text-align:center; border-top:1px solid #c0c090;">
 
<td class="mbox-text" colspan="{{#ifeq:{{{small|}}}|yes|2|5}}"> '''A [[Wikipedia:Vital articles|vital article]].'''</td>
 
</tr>
 
}}
 
{{#ifeq:{{{frequentlyviewed|}}}|yes|
 
<tr style="text-align:center; border-top:1px solid #c0c090;">
 
<td class="mbox-text" colspan="{{#ifeq:{{{small|}}}|yes|2|5}}"> One of the [[Wikipedia:WikiProject_Mathematics/Popular_pages|500 most frequently viewed]] mathematics articles.</td>
 
</tr>
 
{{#ifeq:{{lc:{{{category|}}} }}|no||[[Category:Frequently viewed mathematics articles]]}}
 
}}
 
{{#if:{{{portal|}}}|
 
<tr style="text-align:center; border-top:1px solid #c0c090;">
 
<td class="mbox-text" colspan="{{#ifeq:{{{small|}}}|yes|2|5}}"> A [[Portal:Mathematics/Selected article archive|selected article]] on the [[Portal:Mathematics|Mathematics Portal]].</td>
 
</tr>
 
}}
 
<!------------------- start of article grading comments section ------------------->
 
{{#if:{{{ACD|}}}|
 
<tr style="text-align:center; border-top:1px solid #c0c090;">
 
<td colspan="{{#ifeq:{{{small|}}}|yes|2|5}}" class="mbox-text"> [[File:A_candidate.svg|32px|left]] A [[Wikipedia:WikiProject Mathematics/A-class rating/{{PAGENAME}}|discussion]] on promoting this article to [[Wikipedia:WikiProject Mathematics/A-class rating|A-class status]] or reviewing this status is underway. Please give your opinion.</td>
 
</tr>
 
}}<includeonly>
 
{{#ifeq:{{lc:{{NAMESPACE}} }}|talk|| {{#ifeq:{{lc:{{{category|}}} }}|no||
 
<tr style="text-align:center; border-top:1px solid #c0c090;">
 
<td colspan="{{#ifeq:{{{small|}}}|yes|2|5}}" class="mbox-text" style="font-weight:bold;"><span style="color:red;">This template is not placed in the article talk namespace.</span><br />The {{tl|maths rating}} template is only meant to be used for articles on their talk pages; the {{tl|maths banner}} is an alternative for other pages. If this template is being used as an example or demonstration, please add the <samp><nowiki>|category=no</nowiki></samp> parameter.</td>
 
</tr>
 
}} }}</includeonly>
 
</table> <!-- end of inner table -->
 
</td></tr></table><!-- end of outer table
 
--><includeonly><!--
 
    End of display part of template; next is second part of template: assigning categories to articles
 
-->{{#ifeq:{{lc:{{{category|}}} }}|no||{{#switch:{{lc:{{{class}}}}} <!--If category != no then include categories-->
 
|fa=[[Category:FA-Class mathematics articles]]
 
|fl=[[Category:FL-Class mathematics articles]]
 
|a=[[Category:A-Class mathematics articles]]
 
|ga=[[Category:GA-Class mathematics articles]]
 
|b=[[Category:B-Class mathematics articles]]
 
|c=[[Category:C-Class mathematics articles]]
 
|start=[[Category:Start-Class mathematics articles]]
 
|stub=[[Category:Stub-Class mathematics articles]]
 
|list=[[Category:List-Class mathematics articles]]
 
|[[Category:Unassessed mathematics articles]]
 
}}{{#switch:{{lc:{{#if:{{{priority|}}}|{{{priority}}}|{{{importance}}}}}}}
 
|top=[[Category:Top-Priority mathematics articles]]
 
|high=[[Category:High-Priority mathematics articles]]
 
|mid=[[Category:Mid-Priority mathematics articles]]
 
|low=[[Category:Low-Priority mathematics articles]]
 
|na=[[Category:NA-Priority mathematics pages]]
 
|[[Category:Unassessed-Priority mathematics articles]]
 
}}<!--
 
-->{{#if:{{{vital|}}}|[[Category:Vital mathematics articles]]}}<!--
 
-->{{#if:{{{portal|}}}|[[Category:Featured articles on Mathematics Portal]]}}<!--
 
-->{{#if:{{{historical|}}}|[[Category:History of subject mathematics articles]]}}}}<!--
 
--></includeonly><!--
 
    End of categories part of template; finish with third part of template: making assessment metadata available through the PageAssessments API.
 
--><includeonly>{{#assessment:Mathematics|{{{class|}}}|{{{priority|{{{importance|}}}}}}}}</includeonly><noinclude>
 
{{Documentation}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 22:28, 2 November 2020

Template:WPBannerMeta

Template documentation[view] [edit] [history] [purge]

Usage

This template is used to categorize and assess articles within WikiProject Mathematics. To classify an article, place the template {{maths rating}} on the article's talk page and fill in the class and priority parameters.

Please do not simply add this template without filling in the parameters. The purpose of this template is to carry article assessment data.

Anyone can add a maths rating or change an existing rating. These parameters will place the article in the appropriate subcategories of Category:Mathematics articles by priority and Category:Mathematics articles by quality.

Syntax overview

When using the maths rating template, please set each of the three following parameters:

  • Class: choose one: FA, FL, GA, A, B, C, Start, Stub, List, e.g. |class=B
  • Priority: choose one: Top, High, Mid, Low, e.g. |priority=high

The following parameters are also available. In general, if you don't know what they mean then you don't need them.

  • |vital=Y for an article that is in the Vital articles collection.
  • |portal=Y for an article that is a selected article on Portal:Mathematics.
  • |category=no if the template is being used as a demonstration and you do not want the page it is on to be added to any categories.

Standard template syntax

{{maths rating
| class=            <!--FA, FL, GA, A, B, Start, Stub, List-->
| priority =        <!--Top, High, Mid, Low-->
<!--optional or special purpose-->
| vital=            <!--set to Y for articles that are in the Vital articles collection; be sure of consensus before setting-->
| portal=           <!--set to Y to place the article in Category:Featured articles on Mathematics Portal-->
| category=         <!--set to "no" to prevent the template from adding categories to a page-->
}}

Syntax details

The main purpose of this template is to show the classifications of articles on their talk pages, as well as to place talk pages in the appropriate categories. Only the first three parameters are required for this. However, other flags can be used to show additional information and categorize the page further.

The template also supports a importance parameter which functions identically to priority except for where the template displays the word 'priority' it will instead say 'importance.' Beyond that, there is no reason to use one over the other and no reason to use both together. If they are both used, the importance parameter will be ignored. If the priority parameter is set to blank - if |priority= appears with no argument - then the code considers this a use of priority and ignores importance, except when assigning categories.

See also