MediaWiki Special Page

From GM-RKB
Jump to navigation Jump to search

A MediaWiki Special Page is a dynamic webpage created on a MediaWiki Server.



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 the document.getElementById('bodyContent') or document.getElementById('mw_contentholder'). For an example, see w:en:User:Splarka/electrocute.js.