Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:Create Page

From mediawiki.org


MediaWiki extensions manual
Create Page
Release status: beta
ImplementationParser function, User interface
DescriptionAllows placing an input that takes the name of a new page into pages
Author(s)
Latest version0.5.0 (2021-02-02)
MediaWiki1.35+
PHP7.3+
Database changesNo
  • $wgCreatePageEditExisting
  • $wgCreatePageUseVisualEditor
LicenseGNU General Public License 3.0 or later
Download
README
RELEASE-NOTES

TheCreate Page extension allows you to insert an input that takes the name of a new page into pages.

Installation

[edit]
  • Download and move the extractedCreatePage folder to yourextensions/ directory.
    Developers and code contributors should install the extensionfrom Git instead, using:
    cdextensions/gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/CreatePage
  • Add the following code at the bottom of yourLocalSettings.php file:
    wfLoadExtension('CreatePage');
  • Configure as required.
  • YesDone – Navigate toSpecial:Version on your wiki to verify that the extension is successfully installed.

Configuration

[edit]
$wgCreatePageEditExisting
Defaults tofalse. Set totrue to edit existing pages.
$wgCreatePageUseVisualEditor
Defaults tofalse. Set totrue to redirect to VisualEditor for page creation.

Usage

[edit]

The input is placed using the#createpage parser function. It accepts 3 optional arguments. Namespace, default page name, and submission button text are in that order.

Most simple usage, which will send the user to?title=enteredPageName&action=edit&redlink=1, i.e., create "enteredPageName" if it does not exist.

{{#createpage:}}

Create a page in the Course namespace:

{{#createpage:Course}}

A regularly behaving input, but with "Your page name" entered as the default value:

{{#createpage:|Your page name}}

Altering the text of the submission button:

{{#createpage:||Create this page!}}

Specifying the default content for the page to be created:

{{#createpage:|||Template:ScaffoldTemplateNameHere}}

Display the input on the same line as some text:

<pstyle="display:inline">Enter the name for a new course:</p> {{#createpage:Course||Create course}}

Authors

[edit]

This extension was written byJeroen De Dauw as aWikimedia Foundation contractor for theWikipedia Education Program.

See also

[edit]
This extension is included in the following wiki farms/hosts and/or packages:
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:Create_Page&oldid=7900242"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp