Template:Protected/doc: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>LostInRiverview
mNo edit summary
m (1 revision imported)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
;Uses
;Uses
This template is intended for use on ''temporarily protected pages''. It informs users that the page is semi- or fully-protected, and advises them to raise appropriate issues on the article talk page.
This template is intended for use on protected pages. It informs users that the page is semi- or fully-protected, and advises them to propose changes on the article talk page, or propose unprotection on the [[TSW:AN|admins' noticeboard]].


;Syntax
;Syntax
<code><pre>{{Protected
{{t|Protected}}
|expiration =
}}</pre></code>


;Examples
;Parameter
The template is set up to display an accurate message based on the protection status of the page. If a page is semi-protected, this version of the template will display:
There is one parameter, <code>expiration</code>. This parameter is mandatory. Note that this parameter plugs the date into {{t|Countdown}} and gives a running countdown on the template itself, so the format of the date must be compatible with {{t|Countdown}}. Other parameters may be added in the future.


{{Metabox
The template is set up to display an accurate message if a page is semi-protected or fully protected. ''If the page is not protected, the template will not appear at all.''
|type = admin
|image = Semi-Protection.png
|headline = Page protected
|text = Editing of this article by unregistered or newly registered users is [[The Sims Wiki:Protected page|disabled]]. Users affected by this may [[talk:{{PAGENAME}}|propose changes to the article]] or [[The Sims Wiki:Administrators' noticeboard|request that the article be unprotected]].
}}

If a page is fully protected, this version of the template will be displayed instead:

{{Metabox
|type = admin
|image = FullPro.png
|headline = Page protected
|text = Editing of this article is currently [[The Sims Wiki:Protected page|fully disabled]]. Users may [[talk:{{PAGENAME}}|propose changes to the article]] or [[The Sims Wiki:Administrators' noticeboard|request that the article be unprotected]].
}}

Finally, if the template is placed on a page that isn't under protection, or if the template is placed on a page that was protected but where the protection has expired, the template will display this message:

<small>''<nowiki>[This template (</nowiki>[[Template:Protected]]<nowiki>) has been added to a page that is not currently</nowiki> [[The Sims Wiki:Protected page|under protection]],<nowiki> and may be removed from the article.]</nowiki>''</small>

<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 14:15, 29 June 2021

Uses

This template is intended for use on protected pages. It informs users that the page is semi- or fully-protected, and advises them to propose changes on the article talk page, or propose unprotection on the admins' noticeboard.

Syntax

{{Protected}}

Examples

The template is set up to display an accurate message based on the protection status of the page. If a page is semi-protected, this version of the template will display:

Page protected
Editing of this article by unregistered or newly registered users is disabled. Users affected by this may propose changes to the article or request that the article be unprotected.

If a page is fully protected, this version of the template will be displayed instead:

Page protected

Finally, if the template is placed on a page that isn't under protection, or if the template is placed on a page that was protected but where the protection has expired, the template will display this message:

[This template (Template:Protected) has been added to a page that is not currently under protection, and may be removed from the article.]