Template:Pp-meta: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
m (Text replacement - "{{Documentation}}" to "{{Doc}}") |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 63: | Line 63: | ||
}}|yes|{{#ifeq:{{lc:{{{small|}}}}}|yes| | }}|yes|{{#ifeq:{{lc:{{{small|}}}}}|yes| | ||
<indicator name="protected-icon">[[File:{{{image|{{#switch:{{lc:{{{type}}}}} | <indicator name="protected-icon">[[File:{{{image|{{#switch:{{lc:{{{type}}}}} | ||
|full=Padlock. | |full=Padlock.png | ||
|semi=Padlock-silver. | |semi=Padlock-silver.png | ||
|pc1=Padlock-silver-light. | |pc1=Padlock-silver-light.png | ||
|pc2=Padlock-orange. | |pc2=Padlock-orange.png | ||
|move=Padlock-olive. | |move=Padlock-olive.png | ||
|indef=Padlock-red. | |indef=Padlock-red.png | ||
|office=Padlock-black. | |office=Padlock-black.png | ||
|create=Padlock-skyblue. | |create=Padlock-skyblue.png | ||
|#default=Transparent.gif | |#default=Transparent.gif | ||
}}}}}|20px|link={{{icon-link| | }}}}}|20px|link={{{icon-link|Wi***edia:Protection policy#{{lc:{{{type}}}}}}}}|{{{icon-text|{{#switch:{{lc:{{{type}}}}} | ||
|pc1 = All edits by unregistered and new users are subject to review | |pc1 = All edits by unregistered and new users are subject to review | ||
|pc2 = All edits by users who are not reviewers or administrators are subject to review | |pc2 = All edits by users who are not reviewers or administrators are subject to review | ||
| Line 96: | Line 96: | ||
}}]]</indicator> | }}]]</indicator> | ||
|<!-- else, not small --> | |<!-- else, not small --> | ||
{{Mbox | {{Mbox | ||
| type = protection | | type = protection | ||
| image = [[File:{{{image|{{#switch:{{lc:{{{type}}}}} | | image = [[File:{{{image|{{#switch:{{lc:{{{type}}}}} | ||
|full=Padlock. | |full=Padlock.png | ||
|semi=Padlock-silver. | |semi=Padlock-silver.png | ||
|pc1=Padlock-silver-light. | |pc1=Padlock-silver-light.png | ||
|pc2=Padlock-orange. | |pc2=Padlock-orange.png | ||
|move=Padlock-olive. | |move=Padlock-olive.png | ||
|indef=Padlock-red. | |indef=Padlock-red.png | ||
|office=Padlock-black. | |office=Padlock-black.png | ||
|create=Padlock-skyblue. | |create=Padlock-skyblue.png | ||
|#default=Transparent.gif | |#default=Transparent.gif | ||
}}}}}|40px|{{{icon-text|This page is {{#switch:{{lc:{{{type}}}}} | }}}}}|40px|{{{icon-text|This page is {{#switch:{{lc:{{{type}}}}} | ||
| Line 137: | Line 137: | ||
}} | }} | ||
}}|<includeonly>[[Category:Pages with incorrect protection templates]]</includeonly>}}<noinclude> | }}|<includeonly>[[Category:Pages with incorrect protection templates]]</includeonly>}}<noinclude> | ||
{{ | {{Doc}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 04:53, 29 February 2024
Description
Syntax
- With descriptions
{{pp-meta
| type = <any of "full", "semi", "pc1", "pc2", "indef", "move", "create" or "office" depending on protection type>
| disallowlevel = <if type is not move or create and the template should only be used on one protection level, then "autoconfirmed" or "sysop">
| small = {{{small|}}} <unless template should always be small, then "yes", or if never small, "no" or omit>
| right = {{{right|}}} <unless small versions of the template should be somewhere other than the default location>
| expiry = {{{expiry|}}} <omit for indef templates>
| reason = <your reason here>
| xfd = <if type is "create", then "{{{xfd|}}}", else omit>
| demospace = {{{demospace|}}} <unless template should only be used in one mainspace, when it is then
appropriate to set this to "main", "talk", or "other" where talk includes all odd-numbered namespaces>
| demolevel = {{{demolevel|undefined}}} <unless you want the template to strictly fail on inappropriate protection levels, or want to disable the protection checks>
| image = <your image here without Image: prefix, omit unless nonstandard>
| icon-link = <your link without any [[]] but perhaps with a #section here, applies to icon version>
| icon-text = <your *complete* alternate icon text including full stop if applicable.
Use only plaintext. Omit unless nonstandard.>
| icon-reason = <your specific reason here without full stop, use only plaintext>
| reason-text = <your complete top line without formatting but including full stop and allowing wikilinks.>
| explanation-text = <Your full explanation here>
| categories = {{{categories|<your categories here, else replace all with "no">}}}
}}
- Plain text
{{pp-meta
| type =
| disallowlevel =
| small =
| expiry =
| reason =
| xfd =
| demospace =
| demolevel =
| image =
| icon-link =
| icon-text =
| icon-reason =
| reason-text =
| explanation-text =
| categories =
}}
Examples
TemplateData
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| type | type | no description | Unknown | optional |
| demolevel | demolevel | no description | Unknown | optional |
| disallowlevel | disallowlevel | no description | Unknown | optional |
| small | small | no description | Unknown | optional |
| image | image | no description | Unknown | optional |
| icon-link | icon-link | no description | Unknown | optional |
| icon-text | icon-text | no description | Unknown | optional |
| expiry | expiry | no description | Unknown | optional |
| icon-reason | icon-reason | no description | Unknown | optional |
| name | name | no description | Unknown | optional |
| subst | subst | no description | Unknown | optional |
| demospace | demospace | no description | Unknown | optional |
| reason-text | reason-text | no description | Unknown | optional |
| reason | reason | no description | Unknown | optional |
| explanation-text | explanation-text | no description | Unknown | optional |
| dispute | dispute | no description | Unknown | optional |
| section | section | no description | Unknown | optional |
| xfd | xfd | no description | Unknown | optional |