Wikisphere extensions: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
Line 1: Line 1:


== Wikisphere ==
==Wikisphere==




=== Common ===
==Wikisphere Common==


Common methods required from the various Wikisphere extensions
Common methods required from the various Wikisphere extensions


<br />


=== Subpages ===
=== Configuration ===
{| class="wikitable"
|+
!variable
!possible values
!description
|-
|$wgWikisphereUploadDisableWarnings
|true/false
|disable "was-deleted", "duplicate" and "duplicate-archive" warnings on file upload (requires the patches in the file [[Source code & patches/includes/upload/UploadBase.php|includes/upload/UploadBase.php]])
|-
|$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 on the global site wikisphere.org (front-end)
|-
|$wgWikisphereHandleDraftState
|none, new, all, owned
|[[File:Dropdown-properties.png|thumb]]requires the extension Wikisphere PageProperties. If set to none pages don't need to be explicitly published through the  page Properties (reachable from the dropdown of page actions)
|-
|
|
|
|}
<br />


=== Magic Words / Parser functions ===
<br />
{| class="wikitable"
|+
!name
!use case
!description
|-
|noparse
|<nowiki>{{#noparse: <a href="">my link</a>}}</nowiki>
|can be used to print raw html within the page when [[mediawikiwiki:Manual:$wgRawHtml|$wgRawHtml]] is disabled
|-
|hostname
|<nowiki>{{#hostname:}}</nowiki>
|prints the host name, currently used by [[Template:Pdf thumbnail|Pdf thumbnail]] to open the pdf file
|}
== 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




=== PageProperties ===
==PageProperties==


Provides SEO and published/draft state of pages. Only admins and page creators can publish a page.
Provides SEO and published/draft state of pages. Only admins and page creators can publish a page.




=== PageOwnership ===
==PageOwnership==




=== Preload content ===
===Preload content===








== CI Forms ==
==CI Forms==

Revision as of 17:56, 4 December 2021

Wikisphere

Wikisphere Common

Common methods required from the various Wikisphere extensions


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)
$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 on the global site wikisphere.org (front-end)
$wgWikisphereHandleDraftState none, new, all, owned
requires the extension Wikisphere PageProperties. If set to none pages don't need to be explicitly published through the page Properties (reachable from the dropdown of page actions)


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


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


PageProperties

Provides SEO and published/draft state of pages. Only admins and page creators can publish a page.


PageOwnership

Preload content

CI Forms