Extension:PageProperties

PageProperties allows to easily edit display title, language and content model of a page. To associate semantic properties to pages without to manually annotate them (provided that Semantic MediaWiki is installed), and to set SEO meta tags for the entire wiki or specific pages.

The extension adds an action on the top menu of Wiki articles and then authorized users can set all the relevant properties of the page.



Installation

 * Download from Github and place the file(s) in a directory called  in your   folder.
 * Add the following code at the bottom of your LocalSettings.php
 * Run  (this will install the required tables)
 * ✅ – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Main
From the main tab you can edit the display title of the page, language and content model. The display title can be left blank without having to deal with css tricks.



-

Semantic properties
From the Semantic properties tab you can register semantic properties to the related page without annotating them manually. Same properties can have multiples values, and they will be handled correctly by askqueries and shown on the FactBox. (see for further details)





-

SEO


From the SEO tab you can easily add meta tags or properties to specific pages or the entire wiki.

If the extension Extension:wikiSEO is installed, PageProperties will show a combobox with the parameters allowed by the extension, and they will be internally handled by the WikiSEO extension itself without the need to manually annotate them on the page.

Note that the checkbox "apply to entire wiki" will be only shown if the properties are related to the Main Page of the wiki.



Configuration
controls users and groups allowed to edit page properties. Place in  as follows to allow all logged-in users to edit page properties. By default only sysops are allowed. The list accepts both usernames and groups.

If SemanticMediaWiki is not installed the extension works as expected and the "Semantic properties" tab will be omitted.

If WikiSEO is not installed the extension works as expected and the SEO meta tag or properties have to be entered using their complete syntax. For instance  instead than   and   instead than.

Known issues
SMW's factbox may not display the properties set from the extension (while they will be handled correctly by askqueries). You can monitor the state of the ticket on Github.

Before the issue is solved just edit the function  in the file    as below

Also, the combobox of Mediawiki's OOUI library does not display optgroups correctly on menus (i.e. they will not show as in this picture). I will propose/commit a patch as soon as possible to the official library.