Menú alternativo
Menú alternativo personal
No has accedido
Tu dirección IP será visible si haces alguna edición

Diferencia entre revisiones de «Plantilla:Protected»

De Wikimedia Small Projects
note about talk page shouldn't show up on talk pages (and probably not user pages); also remove user/user_talk pages from category
Change template to new pp-meta format using sandbox as proxy
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/sandbox
|-
|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|}}}
|}<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>
|dispute=no
 
|reason={{#if:{{{reason|}}}|&#32;because {{lcfirst:{{{reason|}}}}}}}
 
|categories={{{categories|[[Category:Protected|{{PAGENAME}}]]{{#ifexpr:{{#if:{{{expiry|}}}|{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|0}}|[[Category:Protected pages with expiry expired|{{PAGENAME}}]]}}}}}}}</includeonly><noinclude>
----
{{pp-protected|demospace=main|categories=no|reason=[[Lorem ipsum|Lorem ipsum dolor sit amet]]}}
===Usage===
General protection template to inform users a page is protected. (Note: This does not protect pages. Admins can only do that.)
{{pp-template|small=yes}}
* 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).
{{template doc}}
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
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>

Revisión del 22:16 6 abr 2008