Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Protected/doc: Difference between revisions

Template page
m Localisation: categorize template
use {{TemplateBox}}
Line 1: Line 1:
__NOTOC__
{{TemplateBox
=== Usage ===
|1        = 1
General protection template to inform users a page is protected. (Note: This does not protect pages. Only admins can do that.)
|1d-en    = <!-- English description of the first parameter the template takes -->
*Adds files to [[:Category:Protected files]] and everything else except user pages, user talk pages, and templates to [[:Category:Protected pages]]. If the page is not protected, it will end up in [[:Category:Unprotected pages using protection templates]].
|1label  = reason
Syntax: <nowiki>{{</nowiki>protected|''give reason here''}}.
|1aliases = <!-- List of aliases, separated by / (a slash) -->
*If no reason is given the default is "to prevent vandalism".
|1type    = <!-- number, string, string/wiki-user-name, string/wiki-page-name, string/line; unknown -->
*The second line doesn't show up on talk pages or user pages (unless the <code>note</code> parameter is used).
|1def    = {{{{tSwitch|protected/text}}|default-reason}}
|1stat    = <!-- required, optional or optional-; optional- means it is optional and omitted in the usage-sample -->


=== Examples ===
|2        = icon
:''The message box does not appear on semi-protected pages or upload-only protected files. An icon still appears in the top-right corner.''
|2label  =  
<nowiki>{{</nowiki>protected}} → {{protected|demo-edit=sysop|icon=no}}
|2d-en    =  
 
|2d-td    =  
<nowiki>{{</nowiki>protected|I said so}} → {{protected|I said so|demo-edit=sysop|icon=no}}
|2type    =  
 
|2def    =  
<nowiki>{{</nowiki>protected|note=And you can change this too.}} → {{protected|note=And you can change this too.|demo-edit=sysop|icon=no}}
|2stat    = optional-
 
=== Padlocks ===
* [[File:Padlock.svg|20px]] = full protection from editing.
* [[File:Padlock-silver.svg|20px]] = semi protection from editing or uploading.
* [[File:Padlock-green.svg|20px]] = full protection from uploading (but not editing).


=== See also ===
|3        = note
*{{tl|Mprotected}} - for images included on the [[Main Page]], which are protected because of the cascading protection (but are not protected directly).
|3label  =  
*{{tl|permprot}} - for high-risk templates that are indefinitely protected (use on talk page).
|3d      = It’s default value doesn’t show up on talk pages or user pages (if you specify the parameter, it does so).
*{{tl|MWheader}} - for MediaWiki pages (use on talk page).
|3d-td    =
|3type    =
|3def    = {{{{tSwitch|protected/text}}|text2}} (except talk and user pages)
|3stat    = optional-


== Localisation ==
|name              = protected
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]].
|desc              = General protection template to inform users a page is protected. (Note: This does not protect pages. Only admins can do that.)
|namespace          =
|usergroup          =
|placement          =
|usage-notes        =
|type              =
|example            =
|example-value      =
|i18n-method        = ext.translate
|i18n-desc          = Note that the Translate extension is not yet available. 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>
{{pre2|scroll|<nowiki>
Line 45: Line 53:


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.
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.
<includeonly>
|i18n-mediawiki-msg =
|i18n-subpage      = text
|seealso            =
*{{tl|Mprotected}} - for images included on the [[Main Page]], which are protected because of the cascading protection (but are not protected directly).
*{{tl|permprot}} - for high-risk templates that are indefinitely protected (use on talk page).
*{{tl|MWheader}} - for MediaWiki pages (use on talk page).
 
=== Padlocks ===
* [[File:Padlock.svg|20px]] = full protection from editing.
* [[File:Padlock-silver.svg|20px]] = semi protection from editing or uploading.
* [[File:Padlock-green.svg|20px]] = full protection from uploading (but not editing).
|setscats          = files to [[:Category:Protected files]] and everything else except user pages, user talk pages, and templates to [[:Category:Protected pages]]. If the page is not protected, it will end up in [[:Category:Unprotected pages using protection templates]].
|print              =
|shorthand          =
|relieson          =
|mustbesubst        =
}}
 
== 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.''
<nowiki>{{protected}}</nowiki> → {{protected|demo-edit=sysop|icon=no}}
 
<nowiki>{{protected|I said so}}</nowiki> → {{protected|I said so|demo-edit=sysop|icon=no}}
 
<nowiki>{{protected|note=And you can change this too.}}</nowiki> → {{protected|note=And you can change this too.|demo-edit=sysop|icon=no}}<includeonly>
[[Category:Protection templates|{{PAGENAME}}]]
[[Category:Protection templates|{{PAGENAME}}]]
</includeonly><noinclude>
</includeonly>
 
[[Category:Template documentation]]
</noinclude>

Revision as of 19:30, 8 April 2015

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

The template automatically sets the following categories: files to Category:Protected files and everything else except user pages, user talk pages, and templates to Category:Protected pages. If the page is not protected, it will end up in Category:Unprotected pages using protection templates.

Usage

{{protected |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1reasonfrom editing to prevent vandalism.optional
iconemptyoptional
noteIt’s default value doesn’t show up on talk pages or user pages (if you specify the parameter, it does so).Please discuss changes on the talk page or request unprotection. (except talk and user pages)optional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

See also

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

Padlocks

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

Localization

العربية  беларуская (тарашкевіца)  বাংলা  dansk  Deutsch  English  español  فارسی  français  galego  עברית  हिन्दी  hrvatski  magyar  italiano  日本語  한국어  македонски  മലയാളം  मराठी  မြန်မာဘာသာ  Nederlands  polski  português  português do Brasil  русский  slovenščina  српски / srpski  svenska  ไทย  Türkçe  українська  中文

This template makes use of {{Autotranslate}} and the translate extension.


Note that the Translate extension is not yet available. 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.

Template: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.

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 This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection.

{{protected|I said so}} →

Protected This template has been protected because I said so.
Please discuss changes on the talk page or request unprotection.

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

Protected This template has been protected from editing to prevent vandalism.
And you can change this too.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.