Diferencia entre revisiones de «Plantilla:Protected»

De Wikimedia Small Projects
m (rm test)
(+more doc)
Línea 54: Línea 54:


=== See also ===
=== See also ===
*{{Tl|permprot}} - for high-risk templates that are indefinitely protected (use on talk page).
*{{tl|Mprotected}} - for images included on the [[Main Page]], which are protected because of the cascading protection (but are not protected directly).
*{{Tl|en main page}} - for images on the English Wikipedia's main page.
*{{tl|permprot}} - for high-risk templates that are indefinitely protected (use on talk page).
*{{tl|MWheader}} - for MediaWiki pages (use on talk page).
 
== Localisation ==
Only the text is switched out based on the user's interface, not the whole template (like with {{tl|autotranslate}}) to avoid unnecessary complexity. Please translate the following and add it to a subpage of Template:Protected/text, e.g. [[Template:Protected/text/en]].
 
{{pre2|scroll|<nowiki>
{{#switch:{{{1}}}
|text1=This {{namespace}} has been protected
|default-reason=from editing to prevent vandalism.
|reason=because {{{reason}}}.
|text2=Please discuss changes on the [[{{TALKPAGENAME}}|talk page]] or [[COM:AN/P|request unprotection]].
|img-text1=This page is protected against editing.
|img-text2=This page is semi-protected against editing.
|img-text3=This page is protected against reuploading.
|img-text4=This page is semi-protected against reuploading.
|error-text=Error: This page is not currently protected. Please remove the protection template.
}}&lt;noinclude>
{{translated tag|localisation}}
&lt;/noinclude>
</nowiki>}}
 
There is no /lang page or /layout page to deal with. Keep in mind this is still a work in progress and new text fields may be added in the future.


[[Category:Protection templates|{{PAGENAME}}]]
[[Category:Protection templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revisión del 00:11 24 ago 2010



Usage

General protection template to inform users a page is protected. (Note: This does not protect pages. Only admins can do that.)

Syntax: {{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 note parameter is used).

Examples

The message box does not appear on semi-protected pages or upload-only protected files. An icon still appears in the top-right corner.

{{protected}} →

Protected Plantilla:Protected/text/es Plantilla:Protected/text/es
Plantilla:Protected/text/es

{{protected|I said so}} →

Protected Plantilla:Protected/text/es Plantilla:Protected/text/es
Plantilla:Protected/text/es

{{protected|note=And you can change this too.}} →

Protected Plantilla:Protected/text/es Plantilla:Protected/text/es
And you can change this too.

Padlocks

  • = full protection from editing.
  • = semi protection from editing or uploading.
  • = full protection from uploading (but not editing).

See also

- for images included on the Main Page, which are protected because of the cascading protection (but are not protected directly).
- for high-risk templates that are indefinitely protected (use on talk page).
- for MediaWiki pages (use on talk page).

Localisation

Only the text is switched out based on the user's interface, not the whole template (like with {{autotranslate}} ) to avoid unnecessary complexity. Please translate the following and add it to a subpage of Template:Protected/text, e.g. Template:Protected/text/en.

Plantilla:Pre2

There is no /lang page or /layout page to deal with. Keep in mind this is still a work in progress and new text fields may be added in the future.