Wikisphere extensions

From Wikisphere
No edit summary
No edit summary
Line 1: Line 1:


==Wikisphere==
==Extensions==


Wikisphere offers a group of interdependent extensions
{| class="wikitable"
 
'''Modules'''
 
(each module is technically an autonomous extensions)
{| class="wikitable"
|+
|+
!name
!name
!description
!description
!required exensions
|-
|-
|Wikisphere common
|Wikisphere common
|Common methods required from the various Wikisphere extensions
|Common methods required from the various Wikisphere extensions
|Semantic Mediawiki/PageForms
|-
|-
|Wikisphere PageProperties
|Wikisphere PageProperties
|Allows to easily edit display title, language and content model of a page. Provides support for SEO and published/draft state of pages
|Allows to easily edit display title, language and content model of a page. Provides support for SEO and published/draft state of pages
|Wikisphere common
|-
|-
|Wikisphere PageOwnership
|Wikisphere PageOwnership
|Provides support for page ownership and attribution
|Provides support for page ownership and attribution
|Wikisphere common
|-
|-
|Wikisphere Subpages
|Wikisphere Subpages
|Provides the list of subpages on the navigation panel, a magic word to display subpages of a given page, and a special page to navigate through suppages
|Provides the list of subpages on the navigation panel, a magic word to display subpages of a given page, and a special page to navigate through suppages
|none
|-
|-
|File Inclusion
|File Inclusion
|A simple extension to display the content of authorized files within pages
|A simple extension to display the content of authorized files within pages
|SyntaxHighlight (optionally)
|-
|-
|Preload content
|Preload content
|(not yet developed) Automatically creates pages upon form submission based on the regular expressions
|(not yet developed) Automatically creates pages upon form submission based on the regular expressions
|
|}
|}




===Configuration===
==Configuration==
{| class="wikitable"
{| class="wikitable"
|+
|+
Line 69: Line 71:




===Magic Words / Parser functions===
==Magic Words / Parser functions==
{| class="wikitable"
{| class="wikitable"
|+
|+
Line 86: Line 88:




==Wikisphere Common==
==Features==


Common methods required from the various Wikisphere extensions
<br />


Features:
=== Wikisphere Common ===


<br />
*Displays the list of forms on the left navigation panel
*outputs script global variables on page head
*implements "userCan" on behalf of other Wikisphere extensions
*displays "Powered by WikiSphere" icon
*implements magic words "noparse" and "hostname"
*implements basic functions required by other Wikisphere extensions<br /><br />


* Displays the list of forms on the left navigation panel
===PageProperties===
* outputs script global variables on page head
* implements "userCan" on behalf of other Wikisphere extensions
* displays "Powered by WikiSphere" icon
* implements magic words "noparse" and "hostname"
* implements basic functions required by other Wikisphere extensions<br />


<br />
<br />


==PageProperties==
* assigns properties like display_title, language, published state, meta (Html metadata), and more, to each page
 
* displays the action "Properties" in the page's dropdown menu
Provides SEO and published/draft state of pages. Only admins and page creators can publish a page.
* prints HTML metadata in the head of the page
* handles the link rendered in each page according to the saved display_title
* retrieves and saves the page's semantic data on the global Wikisphere database (if the $wgWikispherePostOnWikisphere is enabled)





Revision as of 18:35, 4 December 2021

Extensions

name description required exensions
Wikisphere common Common methods required from the various Wikisphere extensions Semantic Mediawiki/PageForms
Wikisphere PageProperties Allows to easily edit display title, language and content model of a page. Provides support for SEO and published/draft state of pages Wikisphere common
Wikisphere PageOwnership Provides support for page ownership and attribution Wikisphere common
Wikisphere Subpages Provides the list of subpages on the navigation panel, a magic word to display subpages of a given page, and a special page to navigate through suppages none
File Inclusion A simple extension to display the content of authorized files within pages SyntaxHighlight (optionally)
Preload content (not yet developed) Automatically creates pages upon form submission based on the regular expressions


Configuration

variable possible values description
$wgWikisphereUploadDisableWarnings true/false disable "was-deleted", "duplicate" and "duplicate-archive" warnings on file upload (requires the patches in the file includes/upload/UploadBase.php)
$wgWikisphereUploadUnderCurrentPage true/false upload images under the current page. E.g. A picture named "cover.png" will be uploaded in the path Book name/cover.png rather than without any path (as in standard WIKIs). This allows the use of generic name for pictures, which are by contrast characterized by their path. (requires the patches described here)
$wgWikisphereAllowCreationRegularPages true/false if the extension Wikisphere PageOwnership is installed, regular users cannot create pages outside their owned pages. Setting this variable to true in combination with $wgWikisphereHandleDraftState set to "new" or "all" lets regulars users to create any page, at the same time leaving to moderators the power to publish it when appropriate
$wgWikisphereCreateOwnedPageRealName true/false if the extension Wikisphere PageOwnership is installed, automatically creates an owned page corresponding to the real name as soon as an user signs in
$wgWikisphereCreateOwnedPageTimestamp true/false if the extension Wikisphere PageOwnership is installed, automatically creates an owned page corresponding to the timestamp of the account creation as soon as an user signs in
$wgWikispherePostOnWikisphere true/false posts the semantic content c
$wgWikisphereHandleDraftState none, new, all, owned requires the extension Wikisphere PageProperties. If set to "none" the pages don't need to be explicitly published through the page Properties (reachable from the dropdown of page actions, see picture 1) to be accessible to everybody. If set to "new" only new pages need to be explicitly published to be accessible to everybody. If set to "owned" only owned pages and subpages need to be published to be accessible to everybody or to be posted on the global site wikisphere.org (front-end)


Magic Words / Parser functions

name use case description
noparse {{#noparse: <a href="">my link</a>}} can be used to print raw html within the page when $wgRawHtml is disabled
hostname {{#hostname:}} prints the host name, currently used by Pdf thumbnail to open the pdf file


Features


Wikisphere Common

  • Displays the list of forms on the left navigation panel
  • outputs script global variables on page head
  • implements "userCan" on behalf of other Wikisphere extensions
  • displays "Powered by WikiSphere" icon
  • implements magic words "noparse" and "hostname"
  • implements basic functions required by other Wikisphere extensions

PageProperties


  • assigns properties like display_title, language, published state, meta (Html metadata), and more, to each page
  • displays the action "Properties" in the page's dropdown menu
  • prints HTML metadata in the head of the page
  • handles the link rendered in each page according to the saved display_title
  • retrieves and saves the page's semantic data on the global Wikisphere database (if the $wgWikispherePostOnWikisphere is enabled)


PageOwnership

Subpages

Provides the list of subpages on the navigation panel, a magic word to display subpages of a given page, and a special page to navigate through suppages



Preload content