Template:Pp-meta: Difference between revisions

From FasciPedia
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.svg
  |full=Padlock.png
  |semi=Padlock-silver.svg
  |semi=Padlock-silver.png
  |pc1=Padlock-silver-light.svg
  |pc1=Padlock-silver-light.png
  |pc2=Padlock-orange.svg
  |pc2=Padlock-orange.png
  |move=Padlock-olive.svg
  |move=Padlock-olive.png
  |indef=Padlock-red.svg
  |indef=Padlock-red.png
  |office=Padlock-black.svg
  |office=Padlock-black.png
  |create=Padlock-skyblue.svg
  |create=Padlock-skyblue.png
  |#default=Transparent.gif
  |#default=Transparent.gif
}}}}}|20px|link={{{icon-link|Wikipedia:Protection policy#{{lc:{{{type}}}}}}}}|{{{icon-text|{{#switch:{{lc:{{{type}}}}}
}}}}}|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/wikitext
{{Mbox
| type = protection
| type = protection
| image = [[File:{{{image|{{#switch:{{lc:{{{type}}}}}
| image = [[File:{{{image|{{#switch:{{lc:{{{type}}}}}
  |full=Padlock.svg
  |full=Padlock.png
  |semi=Padlock-silver.svg
  |semi=Padlock-silver.png
  |pc1=Padlock-silver-light.svg
  |pc1=Padlock-silver-light.png
  |pc2=Padlock-orange.svg
  |pc2=Padlock-orange.png
  |move=Padlock-olive.svg
  |move=Padlock-olive.png
  |indef=Padlock-red.svg
  |indef=Padlock-red.png
  |office=Padlock-black.svg
  |office=Padlock-black.png
  |create=Padlock-skyblue.svg
  |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>
{{Documentation}}
{{Doc}}
</noinclude>
</noinclude>

Latest revision as of 04:53, 29 February 2024

[edit] [purge] Documentation

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

This page is protected.
This page is currently protected from editing.
Please discuss any changes on the talk page; you may use the {{editprotected}} template to ask an administrator to make an edit.
This page is semi-protected.
Editing of this template by new or unregistered users is currently disabled.
If you cannot edit this template and you wish to make a change, you can discuss changes on the talk page, log in, or create an account.

TemplateData

No description.

Template parameters

ParameterDescriptionTypeStatus
typetype

no description

Unknownoptional
demoleveldemolevel

no description

Unknownoptional
disallowleveldisallowlevel

no description

Unknownoptional
smallsmall

no description

Unknownoptional
imageimage

no description

Unknownoptional
icon-linkicon-link

no description

Unknownoptional
icon-texticon-text

no description

Unknownoptional
expiryexpiry

no description

Unknownoptional
icon-reasonicon-reason

no description

Unknownoptional
namename

no description

Unknownoptional
substsubst

no description

Unknownoptional
demospacedemospace

no description

Unknownoptional
reason-textreason-text

no description

Unknownoptional
reasonreason

no description

Unknownoptional
explanation-textexplanation-text

no description

Unknownoptional
disputedispute

no description

Unknownoptional
sectionsection

no description

Unknownoptional
xfdxfd

no description

Unknownoptional