Template:Protected: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
HiddenDragon (talk | contribs) (Use documentation/template demo templates) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly>{{ambox|type=protection|image={{#ifeq: {{{1|}}} | admin | [[File:Soul_Oath_Condition_Icon.webp|35px|link=]] | [[File:Phalanx_Formation_Icon.webp|35px|link=]]}}|text=This page is protected and can only be edited by {{{1|registered user}}}s. {{{reason|No reason was given for why this template was added.}}}}}</includeonly><noinclude>{{documentation|content= | ||
< | Mark a page as protected. First unnamed parameter can specify if it's locked only for admins: | ||
== Example == | |||
{{Template demo | |||
| style = list | |||
| <nowiki>{{protected|admin}}</nowiki> | |||
}} | |||
== Template data == | == Template data == | ||
<templatedata> | <templatedata> | ||
Line 13: | Line 16: | ||
} | } | ||
} | } | ||
</templatedata>}}</noinclude> | </templatedata> | ||
}} | |||
[[Category:Templates]] | |||
[[Category:Message box templates]] | |||
</noinclude> |
Latest revision as of 21:13, 19 January 2025
Template documentation
Mark a page as protected. First unnamed parameter can specify if it's locked only for admins:
Example
Markup
{{protected|admin}}Renders as
![]() | This page is protected and can only be edited by admins. No reason was given for why this template was added. |
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description | Unknown | optional |
reason | reason | no description | Unknown | optional |