Editing Wikisphere extensions
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
==Modules== | ==Modules== | ||
Line 19: | Line 6: | ||
!name | !name | ||
!description | !description | ||
!required | !required exensions | ||
|- | |- | ||
|Wikisphere common | |Wikisphere common | ||
Line 26: | Line 13: | ||
|- | |- | ||
|Wikisphere PageProperties | |Wikisphere PageProperties | ||
|Allows to easily edit display title, language | |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 common | ||
|- | |- | ||
Line 34: | Line 21: | ||
|- | |- | ||
|Wikisphere Subpages | |Wikisphere Subpages | ||
|Provides | |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 | |none | ||
|- | |- | ||
Line 40: | Line 27: | ||
|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) | |SyntaxHighlight (optionally) | ||
|- | |||
|Wikisphere PreloadContent | |||
|(not yet developed) Automatically creates pages upon form submission based on the regular expressions | |||
| | |||
|} | |} | ||
==Configuration== | |||
==Configuration | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ | ||
Line 52: | Line 40: | ||
!possible values | !possible values | ||
!description | !description | ||
|- | |- | ||
|$wgWikisphereUploadDisableWarnings | |$wgWikisphereUploadDisableWarnings | ||
|true/false | |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]]) | ||
|- | |- | ||
|$wgWikisphereUploadUnderCurrentPage | |$wgWikisphereUploadUnderCurrentPage | ||
|true/false | |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 [[Source code & patches#Files.2FUpload|described here]]) | ||
This allows the use of generic | |||
|- | |- | ||
|$ | |$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 them when appropriate | ||
$ | |||
|- | |- | ||
|$ | |$wgWikisphereCreateOwnedPageRealName | ||
|true/false | |true/false | ||
| | |if the extension Wikisphere PageOwnership is installed, automatically creates an owned page corresponding to the user's 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 user's account creation as soon as an user signs in | |||
|- | |- | ||
| | |$wgWikispherePostOnWikisphere | ||
| | |true/false | ||
| | |posts the semantic content on the global wikisphere.org database (front-end) | ||
|- | |- | ||
| | |$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 ...) 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 sub-pages need to be published to be accessible to everybody or to be posted on the global wikisphere.org database (front-end) | |||
|} | |} | ||
Line 193: | Line 80: | ||
|- | |- | ||
|wikisphere_userpages | |wikisphere_userpages | ||
|<nowiki>{{wikisphere_userpages}}</nowiki> | |<nowiki>{{#wikisphere_userpages: }}</nowiki> | ||
|prints the list of pages owned by the logged-in user (to be used in forms, in order to create new pages under pages owned by the creator) | |prints the list of pages owned by the logged-in user (to be used in forms, in order to create new pages under pages owned by the creator) | ||
|Wikisphere PageOwnership | |Wikisphere PageOwnership | ||
Line 199: | Line 86: | ||
|wikisphere_subpages | |wikisphere_subpages | ||
|<nowiki>{{#wikisphere_subpages: }}</nowiki> | |<nowiki>{{#wikisphere_subpages: }}</nowiki> | ||
|prints the list of subpages of a given page | |prints the list of subpages of a given page | ||
|Wikisphere Subpages | |Wikisphere Subpages | ||
|- | |- | ||
Line 208: | Line 95: | ||
|- | |- | ||
|hostname | |hostname | ||
|<nowiki>{{hostname}}</nowiki> | |<nowiki>{{#hostname:}}</nowiki> | ||
|prints the host name, currently used by [[Template:Pdf thumbnail|Pdf thumbnail]] to open display the pdf file from the pdf viewer of the browser | |prints the host name, currently used by [[Template:Pdf thumbnail|Pdf thumbnail]] to open display the pdf file from the pdf viewer of the browser | ||
|Wikisphere common | |Wikisphere common | ||
|} | |} | ||
Line 241: | Line 103: | ||
==Features== | ==Features== | ||
<br /> | |||
===Wikisphere Common=== | ===Wikisphere Common=== | ||
Line 250: | Line 112: | ||
*displays "Powered by WikiSphere" icon | *displays "Powered by WikiSphere" icon | ||
*implements magic words "noparse" and "hostname" | *implements magic words "noparse" and "hostname" | ||
*implements basic functions required by other Wikisphere extensions | *implements basic functions required by other Wikisphere extensions<br /><br /> | ||
===PageProperties=== | |||
<br /> | |||
*implements the special page PageProperties in order to assign properties like display_title, language, published state, meta (Html metadata), and more, to any page | *implements the special page PageProperties in order to assign properties like display_title, language, published state, meta (Html metadata), and more, to any page | ||
Line 261: | Line 122: | ||
*prints HTML metadata in the head of the page | *prints HTML metadata in the head of the page | ||
*handles the link rendered in each page according to the saved display_title | *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 | *retrieves and saves the page's semantic data on the global Wikisphere database (if the $wgWikispherePostOnWikisphere is enabled) | ||
===PageOwnership=== | ===PageOwnership=== | ||
*creates default owned pages (real name and account creation timestamp) | |||
*displays the action "Ownership" in the page's dropdown menu | *displays the action "Ownership" in the page's dropdown menu | ||
*displays the list of personal pages on the left navigation panel | *displays the list of personal pages on the left navigation panel | ||
*implements the parser function "wikisphere_userpages" to print the list of pages owned by the logged-in user | *implements the parser function "wikisphere_userpages" to print the list of pages owned by the logged-in user | ||
*implements the special page PageOwnership in order to assign | *implements the special page PageOwnership in order to assign admins, editors or readers to specific pages and their subpages | ||
Line 277: | Line 139: | ||
*displays the list of subpages of the current page on the left navigation panel | *displays the list of subpages of the current page on the left navigation panel | ||
*implements the special page WikisphereSubpages in order to display and navigate through subpages of a given page | *implements the special page WikisphereSubpages in order to display and navigate through subpages of a given page | ||
===Preload content=== |