Extension:LockOnCreate

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
LockOnCreate

Release status:Extension status beta

ImplementationTemplate:Extension#type User interface
DescriptionTemplate:Extension#description Provides automatic page lock to the author who created the page
Author(s)Template:Extension#username WikiFocus Ltd. (Wikipothesistalk)
Latest versionTemplate:Extension#version 1.1.1 (2014-09-05)
MediaWikiTemplate:Extension#mediawiki 1.23+
PHPTemplate:Extension#php 5.3+
LicenseTemplate:Extension#license GFDL
Download Download LockOnCreate.zip
Hooks usedTemplate:Extension#hook
EditPage::showEditForm:initialManual:Hooks/EditPage::showEditForm:initial
ArticlePageDataAfterManual:Hooks/ArticlePageDataAfter
EditFilterManual:Hooks/EditFilter
SkinTemplateContentActionsManual:Hooks/SkinTemplateContentActions
BeforePageDisplayManual:Hooks/BeforePageDisplay

Translate the LockOnCreate extension if it is available at translatewiki.net

Check usage and version matrix.

The LockOnCreate provides automatic page lock to the author who created the page.

Rationale[edit]

Wiki sites are generally for group-edited web pages. But situations arise where you want an author-created MediaWiki page to be editable to only the page author.

The LockOnCreate extension does that:

  • It provides automatic page lock to the author who created the page. A system administrator can still edit the page, if needed.
  • The associated talk page remains active for anyone to edit.

LockOnCreate has an editing timeout function that can be used two ways:

  1. You can set the timeout to lock the page to the page author after x minutes/seconds. The page will still be editable by system administrators.
  2. Or you can comment out the timeout code, which allows the page author to go back and edit the page at any time.

If you decide to lock the page, the AuthorComments extension can be used to allow the page author to make additional comments. Those comments will be listed under the author's initial post. The page author can post any number of separate comments. You can choose to lock each posted comment after x minutes/seconds, or you can leave the comments unlocked.

Installation[edit]

  • Download and place the file(s) in a directory called LockOnCreate in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/LockOnCreate/LockOnCreate.php";
    
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Questions, comments, issues[edit]

If you have a question, comment, or issue, please add it to the "Discuss" tab on the website that hosts this extension, or email admin@wikipothesis.com.

See also[edit]