|
|
Línea 1: |
Línea 1: |
| {| class="protected" style="background: #fff; border: 1px solid #aaa; padding: 0.2em; margin: 0.5em auto;" | | <includeonly>{{pp-meta |
| |-
| | |type=full |
| | style="padding-right: 4px; padding-left: 4px;" | [[Image:Padlock.svg|40px|]] | | |small={{{small|}}} |
| | '''This {{namespace}} has been protected {{#if:{{{1|}}} | because {{{1}}}. | from editing to prevent vandalism.}}''' | | |demospace={{{demospace|}}} |
| <span style="font-size:90%;">{{{note|{{#ifeq:{{NAMESPACE}} | {{TALKSPACE}} || {{#ifeq:{{NAMESPACE}} | {{ns:user}} || Please discuss changes on the [[{{TALKPAGENAME}}|talk page]] or [[Commons:Administrators' noticeboard/Blocks & protections|request unprotection]].}} }}}}}</span>
| | |expiry={{{expiry|}}} |
| |} | | |dispute=no |
| <div style="position:absolute; z-index:100; right:10px; top:10px">
| | |reason={{#if:{{{reason|}}}| because {{lcfirst:{{{reason|}}}}}}} |
| <imagemap>
| | |categories={{{categories|[[Category:Protected|{{PAGENAME}}]]{{#ifexpr:{{#if:{{{expiry|}}}|{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|0}}|[[Category:Protected pages with expiry expired|{{PAGENAME}}]]}}{{#if:{{{expiry|}}}||[[Category:Wikipedia protected pages without expiry|{{PAGENAME}}]]}}}}}}}</includeonly><noinclude> |
| Image:Padlock.svg|20px|Protected
| | {{pp-protected|demospace=main|categories=no|reason=[[Lorem ipsum|Lorem ipsum dolor sit amet]]}} |
| default [[COM:P|This page is protected against editing.]]
| | |
| desc none
| | {{pp-template|small=yes}} |
| </imagemap>
| | {{template doc}} |
| </div><includeonly>{{{category|{{#switch:{{NAMESPACE}} | {{ns:image}}=[[Category:Protected images]] | {{ns:template}}=[[Category:Protected templates|{{PAGENAME}}]] | {{ns:user}}= | {{ns:user_talk}}= | [[Category:Protected pages]] }}}}}</includeonly><noinclude>
| | <!-- Add categories and inter-wikis to the /doc subpage, not here! --> |
| | |
| | |
| ---- | |
| ===Usage=== | |
| General protection template to inform users a page is protected. (Note: This does not protect pages. Admins can only do that.)
| |
| * Adds images to [[:Category:Protected images]], templates to [[:Category:Protected templates]], and anything else to [[:Category:Protected pages]] (except user pages and user talk pages).
| |
| | |
| Syntax: <nowiki>{{</nowiki>protected|''give reason here''}}.
| |
| * If no reason is given the default is "to prevent vandalism."
| |
| * The second line doesn't show up on talk pages or user pages (unless the <code>note</code> parameter is used).
| |
| | |
| ===Examples===
| |
| <nowiki>{{</nowiki>protected}} → {{protected|category=}}
| |
| | |
| <nowiki>{{</nowiki>protected|I said so}} → {{protected|I said so|category=}}
| |
| | |
| <nowiki>{{</nowiki>protected|note=And you can change this too.}} → {{protected|note=And you can change this too.|category=}} | |
| | |
| ===See also===
| |
| * {{tl|protected image}} - for high-risk images that are indefinitely protected.
| |
| * {{tl|protected template}} - for high-risk templates that are indefinitely protected.
| |
| * {{tl|en main page}} - for images on the English Wikipedia's main page.
| |
| | |
| [[Category:Protection templates|{{PAGENAME}}]]
| |
| </noinclude> | | </noinclude> |