Skip to content

Github mirror of MediaWiki extension ParserFun - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

License

Notifications You must be signed in to change notification settings

arabdigitalexpression/mediawiki-extensions-ParserFun

Repository files navigation

== About ==

The 'Parser Fun' extension Enhances MediaWiki with the following features:

(1) A new parser function to do several parser tasks manually on wikitext.
    The following can be achieved by the '#parse' parser function:
    - Parsing wikitext
    - Unstripping '<nowiki>' and general stripped text
	
(2) Prefix 'THIS:' (available in some other languages) which can be put in front
    of site information related magic words like '{{THIS:PAGENAME}}'. This
    allows to get the information from the page the phrase actually is literally
    defined on instead of the page which is being parsed and where the phrase was
    expanded into. '{{THIS}}' simply is synonym for '{{THIS:FULLPAGENAME}}'.
    If 'THIS:' is used with an unsupported variable it will be interpreted as
    template call. Currently the following functions are supported:
    'FULLPAGENAME', 'PAGENAME', 'BASEPAGENAME', 'SUBPAGENAME', 'SUBJECTPAGENAME',
	'TALKPAGENAME', 'NAMESPACE', 'SUBJECTSPACE', 'ARTICLESPACE', 'TALKSPACE'
    as well as their URL-encoded equivalents ending with 'EE'.
    It is possible for other extensions to support the 'THIS:' prefix, currently:
    - All 'Subpage Fun' extension variables:
      https://www.mediawiki.org/wiki/Extension:Subpage_Fun

* Website: https://www.mediawiki.org/wiki/Extension:Parser_Fun
* Author:  Daniel Werner < [email protected] >


== Installation ==

Once you have downloaded the code, place the 'ParserFun' directory within your
MediaWiki 'extensions' directory. Then add the following code to your
[[Manual:LocalSettings.php|LocalSettings.php]] file:

 # Parser Fun
 require_once( "$IP/extensions/ParserFun/ParserFun.php" );
 
This extension requires Jeroen De Dauws 'Validator' extension (version 0.4.13 or
above). It must be included before the 'Parser Fun' extension.
You can get it at: http://www.mediawiki.org/wiki/Extension:Validator

 
== Contributing ==

If you have bug reports or feature requests, please add them to the 'Parser Fun'
Talk page [0]. You can also send them to Daniel Werner < [email protected] >

[0] https://www.mediawiki.org/w/index.php?title=Extension_talk:Parser_Fun

About

Github mirror of MediaWiki extension ParserFun - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published