-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
47 lines (34 loc) · 2.08 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
== 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