Template:Protected title/doc

From Wikimedia Commons, the free media repository
Jump to: navigation, search

This template is used at Commons:Protected against recreation. It transcludes a nonexistent page that is to be protected from creation through the use of cascading protection. If the page exists, a "delete page" link is provided. If an item is listed prior to deletion, the page with cascading protection enabled must have its cache purged before the protection will take effect. If this is done before the page is deleted, the page will be protected in that state (not automatically deleted).

Usage[edit]

Parameters used by this template:

  • pg (or first unnamed parameter) — Name of page to protect from creation. Do not include the namespace; use the ns parameter to specify that.
  • reason (or second unnamed parameter) — Reason why page is protected (optional).
  • ns — Namespace of page. Must be given if the page is not in article space.
  • talk — Whether a link to the talk page should be given. The link will be provided unless talk=no is specified. Suppressing the link is useful if there is no realistic possibility that constructive discussion will occur (e.g. nonsense page titles) or if the talk page also is protected against creation.

Examples:


{{protected title|Red link}}
Red link · activity log · talk page
The above prevents red link from being created.


{{protected title|Like this one|talk=no}}
Like this one · activity log
The above prevents Like this one from being created. The link to the talk page is not displayed.


{{protected title|Starting a new page/wiki/Talk:Main Page/|Spambot target|ns=Help talk}}
Help talk:Starting a new page/wiki/Talk:Main Page/ · activity log — Spambot target
The above prevents Help talk:Starting a new page/wiki/Talk:Main Page/ from being created. As this is a talk page, a separate talk page link is automatically omitted.