Ad placeholder

Template:Priority: Difference between revisions

Jump to navigation Jump to search
Updated documentation and made template code more readable
No edit summary
(Updated documentation and made template code more readable)
Line 1: Line 1:
{{ambox|type=content|image=[[File:Momentum_Condition_Icon.webp|35px|link=]]|text={{#switch: {{{1|}}}
<includeonly>{{ambox
| section = This section may be lacking verification or other information on a [[:Category:Priority articles|high priority topic]].<br>See the [[Help:Editing manual|guide]] if you'd like to contribute.
| type = content
| This '''high priority article''' is currently [[:Category:Priority articles|in need of improvement]]. See the [[Help:Editing manual|guide]] if you'd like to contribute}}}}<includeonly>{{Main namespace only|[[Category:Priority pages]]}}</includeonly><noinclude>
| image = [[File:Momentum_Condition_Icon.webp|35px|link=]]
[[Category:Templates]][[Category:Message box templates]]
| text = {{#switch: {{{what|{{{1|}}}}}}
  | section = This section may be lacking verification or other information on a [[:Category:Priority articles|high priority topic]]. {{{reason|{{{2|}}}}}} See the [[Help:Editing manual|guide]] if you would like to contribute.
  | This '''high priority article''' is currently [[:Category:Priority articles|in need of improvement]]. {{{reason|{{{2|}}}}}} See the [[Help:Editing manual|guide]] if you would like to contribute
  }}
}}{{Main namespace only|[[Category:Priority pages]]}}</includeonly><noinclude>{{documentation|content=
Use this template to identify pages that should be a priority for adding important and accurate information.


Use this template to identify pages that should be a priority for adding important and accurate information. It adds this page to [[:Category:Priority pages]]
This template has a corresponding maintenance category at: [[:Category:Priority pages]].


{{InfoBlob|<nowiki>{{Priority}}</nowiki>}} gives you the template above.
== Examples ==
{{Template demo
| style = list
| caption 1 = Basic usage for an entire article
| <nowiki>{{Priority}}</nowiki>
| caption 2 = Specify that the notice only applies to a section of the article
| <nowiki>{{Priority|article}}</nowiki>
| caption 3 = Add additional information on what needs to be improved
| <nowiki>{{Priority|reason=This article should be rewritten to better follow the style guidelines.}}</nowiki>
| caption 4 = Block style
| <nowiki>
{{Priority
| what = section
| reason = This section should be rewritten to better follow the style guidelines.
}}
</nowiki>
}}


But you can use
== Template data ==
 
<templatedata>
{{Priority|section}}
{
 
    "description": "Mark a page as in need of priority updates.",
{{InfoBlob|<nowiki>{{Priority|section}}</nowiki>}} to use for specific sections of the page.
"params": {
"1": {
            "aliases": ["what"],
            "description": "What this notice applies to (article or section)",
            "type": "string",
"default": "article",
            "suggestedvalues": ["article", "section"],
            "required": false
},
"2": {
            "aliases": ["reason"],
            "description": "The reason this notice was added",
            "type": "string",
            "suggested": true
        }
}
}
</templatedata>}}
[[Category:Templates]]
[[Category:Message box templates]]
</noinclude>

Navigation menu