MediaWiki Special Page
Jump to navigation
Jump to search
A MediaWiki Special Page is a dynamic webpage created on a MediaWiki Server.
- Context:
- It can (typically) be organized into a MediaWiki Server Special Namespace.
- It can be a Web Form.
- …
- Counter-Example(s):
- a Wiki Page.
- See: MediaWiki Adminstrative Script.
References
2013
- http://www.mediawiki.org/wiki/Manual:Special_pages#Custom_special_pages
- There are various ways to provide your own special pages not bundled within MediaWiki:
- One method is to install an extension that generates a form to create or edit an article. A list of extensions currently available, can be found at Category:Special page extensions.
- You can also write an extension which provides your own special page. Writing your own extension requires PHP coding skill and comfort with object oriented design and databases also is helpful. You will also need to know how to use code to create and edit MediaWiki articles. For more information, please see this discussion.
- You can also display a custom page through Javascript, in place of the default error message "Unknown special page". In MediaWiki:Common.js, check for wgPageName, then hide the MediaWiki-generated content (just appendCSS
{visibility:hidden;}
), and inject custom HTML (innerHTML
) into thedocument.getElementById('bodyContent')
ordocument.getElementById('mw_contentholder')
. For an example, see w:en:User:Splarka/electrocute.js.