Jump to content

Extension:PageTemplates

From mediawiki.org
MediaWiki extensions manual
PageTemplates
Release status: stable
Description Choose from different page templates during page creation.
Author(s) Hallo Welt! GmbH
Maintainer(s) Hallo Welt! GmbH
Latest version -
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.43 (LTS)
Database changes Yes
  • $wgPageTemplatesForceNamespace
  • $wgPageTemplatesExcludeRegex
  • $wgPageTemplatesHideIfNotInTargetNs
  • $wgPageTemplatesHideDefaults
  • $wgPageTemplatesExcludeNs
  • pagetemplatesadmin-viewspecialpage
Licence GNU General Public License 3.0 only
Download
Translate the PageTemplates extension if it is available at translatewiki.net
 Community Forum

PageTemplates allows users to select from predefined content structures (e.g., directory, layout, content elements) when creating a new page.

Usage / features

[edit]
  • Create a template with pre-defined content elements (headers, categories, boxes, etc.) in the template namespace.
  • Create a page template using the special page PageTemplatesAdmin to give the page template a name and a description.
  • Each page template is linked to an existing template in the namespace Templates.
  • Page templates can be assigned to namespaces so that the template is only available in those namespaces.
  • The page template selection is shown during page creation.

See also

[edit]


Installation

[edit]

.git) as a "vcs repository" and the package name (mediawiki/BlueSpicePageTemplates) and version to the require section of your composer.local.json. Example:

{
	"repositories": [
		{
			"type": "vcs",
			"url": "https://github.com/wikimedia/mediawiki-extensions-BlueSpicePageTemplates
.git"
		}
	],
	"require": {
		"mediawiki/BlueSpicePageTemplates": "BlueSpicePageTemplates"
	}
}
  • Run the following command in your MediaWiki installation path
composer update --no-dev
wfLoadExtension( 'BlueSpicePageTemplates' );
  • Yes Done Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
[edit]
Bluespice icon

This extension was originally made for BlueSpice . BlueSpice is a MediaWiki distribution for enterprises and organizations. It enhances MediaWiki, in particular in the areas of quality management, process support, administration, editing and security. This extension is bundled with BlueSpice free.

BlueSpice: