Difference between revisions of "Manual:Extension/BlueSpicePageTemplates"

[quality revision][quality revision]
(Tag: 2017 source edit)
m


A page template applies a predefined content structure and layout to new pages. That way, certain page types can be applied during page creation to produce consistent sets of related pages.

What is a page template?Characteristics[edit | edit source]

A page template allows you to apply a predefined content structure to new pages. Thus, certain page types can be created, which are initially always the same structure. This is Page templates are especially useful for frequently used content formats such as logs, reference pages, product descriptions, or short manuals. When a page is created with a page template, the page becomes "detached" from the original page template. This means that subsequent changes to the template will not affect pages that have originally been created with that page template. This distinguishes page templates from regular templates.

Characteristics[edit | edit source]

Just

In gerneral, page templates:

  • used for new pages only
  • Can can be limited to certain namespaces
  • Can force Namespaces
  • Based can force a namespace for new pages
  • are based on templates in the "Template" namespacesIntegrates with "PageForms"
  • integrate with the extension Page Forms

Creating a page template[edit | edit source]

Wiki admins Administrators can create new page templates, as well as edit and remove existing ones in the Page templates manager, located under "Global actions": .


Page template manager
Page template manager

Note: Every page template depends on an actual page in the namespace Template. This template must exist before creating a page template.

A new page template can be created by clicking the "Plus" button above the template list.

Template fields[edit | edit source]

When creating or editing a page template, the following information needs to be provided:

  • Name - the name of the template
  • Description - a short description of the template
  • Namespace - list of the namespace where the template is active
  • Template - page from the Template namespace from which to pull the data
Screenshot: update page template settings


Using page templates[edit | edit source]

A list of available templates appears when a user creates a new page. It is shown below the "Empty page" default template. Selecting one of these page templates will create the new page that is prefilled with the content that is transcluded from the actual template page: .


Selecting a page template
Selecting a page template

Configuration[edit | edit source]

In the Config manager, you can change the following settings:


  • Force target namespace:
  • Hide default templates: Hides the default Empty page template.


Related info


Attachments

Discussions