Jump to content
Wikimedia Meta-Wiki

Template:Protected title

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Hasley (talk | contribs) at 14:02, 30 November 2021 (Reverted changes by 112.204.217.222 (talk) to last version by MarcoAurelio). It may differ significantly from the current version .
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation
This template employs intricate features of the template syntax.
Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair/revert any consequent collateral damage if the results are unexpected. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.

Usage

[edit ]

This template is used on the page Meta: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, it must be deleted for the cascading protection to take effect; there is a "delete" link provided next to the article name in this case.

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.
  • commons — When protecting against the creation of a local page under the title of an image that exists on the Commons, commons=yes must be appended for the image name/link to appear. Please note that the cascading protection does not extend to the Commons image.

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.

See also

[edit ]
The above documentation is transcluded from Template:Protected title/doc. (edit | history)
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /