Difference between revisions of "Template:Importance scheme/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Funandtrvl
(test)
imported>Funandtrvl
(test)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{template sandbox notice}}
+
<table class="wikitable plainlinks" width="100%">
<noinclude><table class="wikitable plainlinks" width="100%"></noinclude>{{#ifexpr:{{#switch:{{{trigger|¬}}}
+
<caption>{{Navbar-header|{{{2|WikiProject article&nbsp;}}}{{#if:{{{impn|}}}|{{lc:{{{impn}}}}}|importance}} {{{1|scheme}}}|Importance scheme}}</caption><tr>
  |¬
+
<th>{{#if:{{{impn|}}}|{{ucfirst:{{{impn}}}}}|Importance}}</th>
  |yes      = 1
+
<th>Criteria</th>
   |#default = 0
+
<th>Example</th>
  }}+{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|1}}|Template:Importance scheme|1|0}}
+
</tr>
  |<tr>{{importance
+
{{Importance scheme/row
   |1={{{grade}}}
+
|grade    = Top
   |impn={{#if:{{{impn|}}}|{{{impn}}}|importance}}
+
|impn    = {{{impn|}}}
   |category={{{topic|}}} articles
+
|topic    = {{{topic|{{{Project|}}}}}}
  }}<td>{{#if:{{{custom|}}}|{{{custom}}}|{{{criteria}}}}}</td>
+
|criteria = Subject is extremely important, even crucial, to its specific field. Reserved for subjects that have achieved international notability within their field.
  <td style="font-size:90%; text-align:center;">{{#if:{{{specified|}}}|{{{specified}}}|{{#if:{{{default|}}}|[[:{{{default}}}]] }}}}</td>
+
|custom   = {{{Top_text|}}}
  </tr>
+
|default = Kindergarten
}}<noinclude></table></noinclude>
+
|specified= {{{Top_example|}}}
 +
}}{{Importance scheme/row
 +
|grade    = High
 +
  |impn    = {{{impn|}}}
 +
|topic    = {{{topic|{{{Project|}}}}}}
 +
|criteria = Subject is extremely notable, but has not achieved international notability, or is only notable within a particular continent.
 +
|custom  = {{{High_text|}}}
 +
|default  = Factory Acts
 +
|specified= {{{High_example|}}}
 +
}}{{Importance scheme/row
 +
|grade    = Mid
 +
|impn    = {{{impn|}}}
 +
  |topic    = {{{topic|{{{Project|}}}}}}
 +
|criteria = Subject is only notable within its particular field or subject and has achieved notability in a particular place or area.
 +
|custom   = {{{Mid_text|}}}
 +
|default  = 0.999...
 +
|specified= {{{Mid_example|}}}
 +
}}{{Importance scheme/row
 +
|grade   = Low
 +
|impn    = {{{impn|}}}
 +
|topic    = {{{topic|{{{Project|}}}}}}
 +
|criteria = Subject is not particularly notable or significant even within its field of study. It may only be included to cover a specific part of a notable article.
 +
|custom   = {{{Low_text|}}}
 +
|default  = G cell
 +
|specified= {{{Low_example|}}}
 +
}}{{Importance scheme/row
 +
|trigger  = {{{Bottom|}}}
 +
|grade    = Bottom
 +
|impn    = {{{impn|}}}
 +
|topic    = {{{topic|{{{Project|}}}}}}
 +
|criteria = Subject is of the lowest level of relevance or significance to its field of study.
 +
|custom   = {{{Bottom_text|}}}
 +
|default  = International Cricket (video game)
 +
|specified= {{{Bottom_example|}}}
 +
}}{{Importance scheme/row
 +
|trigger  = {{{NA|}}}
 +
|grade    = NA
 +
|impn    = {{{impn|}}}
 +
  |topic    = {{{topic|{{{Project|}}}}}}
 +
|criteria = Subject {{#if:{{{impn|}}}|{{lc:{{{impn}}}}}|importance}} is not applicable. Generally applies to non-article pages such as redirects, categories, templates, etc.
 +
|custom   = {{{NA_text|}}}
 +
|default  = Category:Palms
 +
|specified= {{{NA_example|}}}
 +
}}{{Importance scheme/row
 +
|trigger  = {{{Unknown}}}
 +
|grade    = Unknown
 +
|impn    = {{{impn|}}}
 +
|topic    = {{{topic|{{{Project|}}}}}}
 +
|criteria = Subject {{#if:{{{impn|}}}|{{lc:{{{impn}}}}}|importance}} has not yet been assessed.
 +
|custom  = {{{Unknown_text|}}}
 +
|specified= {{{Unknown_example|}}}
 +
}}
 +
</table><noinclude>
 +
{{Documentation}}
 +
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
 +
</noinclude>

Latest revision as of 23:50, 12 November 2020

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

Usage instructions

  • The code below is for customizing the template for a specific WikiProject. Fields are optional, and will default to generic examples if left blank.
    • Specifying the topic field will link the importance labels to the appropriate importance category in the given project in the format "Low-importance topic articles".
    • Specifying article importance examples will display the provided text in the example for the given importance.
    • The rows for Bottom, No, NA and Unknown are optional, and will not be displayed unless yes is specified for the respective "Bottom", "No", "NA" and "Unknown" parameters.
    • impn - allows a different name for the importance scale (e.g. priority). If not specified, then "importance" will be used.
  • Copy and paste:
{{Importance scheme
|topic          = 
|impn           =
|Top_text       = 
|Top_example    = 
|High_text      = 
|High_example   = 
|Mid_text       = 
|Mid_example    = 
|Low_text       = 
|Low_example    = 
|Bottom         = 
|Bottom_text    = 
|Bottom_example = 
|NA             = 
|NA_text        = 
|NA_example     = 
|Unknown        = 
|Unknown_text   = 
|Unknown_example= 
}}