Help:Special property "Is edit protected"

From semantic-mediawiki.org
Jump to: navigation, search
Is edit protected
Stores the status of an edit restriction of a page
Further Information
Provided by: Semantic MediaWiki
Added: 2.5.0
Removed: still in use
Alias: has no alias
Optional: no
Visible: yes
Annotable: yes
Declarative: no
Key:
_EDIP
Setting: not specified
Focus: not specified
In this wiki: Property:Is edit protected

The Is edit protected property is a special property in Semantic MediaWiki with a built-in meaning: it stores the status of an edit restriction of a page with a truth value. It was introduced starting with Semantic MediaWiki 2.5.0.1 Edit access to pages holding this special property is enforced with a positive truth value, e. g. "true". The protection status is indicate with a lock icon in the top right corner of the respective page.

Important noteImportant Note: If no user right is added to the $smwgEditProtectionRight configuration parameter the edit protection feature utilizing this special property cannot used on the wiki. Thus respective annotations remain ineffective.

Usage

Adding page protection

Manually annotate the respective page by adding [[Is edit protected::true]] to it. Thus the protection level is changed to "smw-pageedit" and the page is protected from edits by users who do not have this user right. Any user may add this annotation.

Removing page protection

Either manually change the annotation to hold a a negative truth value to the property, e.g. "false" ([[Is edit protected::false]]). Only users with the "smw-pageedit" user right can do this.

NoteNote: Alternatively users belonging to the administrators user group (sysop) may by default use the "protect" action (&action=protect) via the page menu to add or remove the page protection. Both methods however exclude each other on a per-page basis.

Notes

  • In case [[Is edit protected::true]] was annotated and someone removes the annotation without resetting the protection status with e.g. [[Is edit protected::false]] prior to it then the protection stays enforced until a user removes the restriction using the "protect" action via the page menu (&action=protect).
  • If for some reason [[Is edit protected::true]] and [[Is edit protected::false]] are annotated at the same time on the same page then the protection stays enforced.
  • If the page contains the manually added annotation [[Is edit protected::true]] then any attempt to remove the protection using the "protect" action via the page menu (&action=protect) or to alter its level will fail, i.e. the "smw-pageedit" protection continues to get enforced for as long as [[Is edit protected::true]] is stored on the page. The page will continue to be uneditable by users without the "smw-pageedit" user right.
  • If the page contains the manually added annotation [[Is edit protected::false]] then any attempt to add a protection using the "protect" action via the page menu (&action=protect) will fail, i.e. the "smw-pageedit" protection does not get enforced as for as long as [[Is edit protected::false]] is stored on the page. The page will continue to be editable by any user.

See also


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2232