Index: trunk/extensions/ParserFun/RELEASE-NOTES |
— | — | @@ -1,6 +1,9 @@ |
2 | 2 | 'Parser Fun' Changelog: |
3 | 3 | ======================= |
4 | 4 | |
| 5 | + * Version 0.3 |
| 6 | + ~~ THIS IS NOT A FINAL RELEASE YET ~~ |
| 7 | + |
5 | 8 | * December 9, 2011 -- Version 0.2 |
6 | 9 | - New parser function/variable 'CALLER' to return a templates caller. Comes with the following parameters: |
7 | 10 | + <1>/mode - can be the level of the call stack to return (if negative the value will be returned from the |
Index: trunk/extensions/ParserFun/includes/PFun_Caller.php |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | */ |
24 | 24 | public static function staticInit( Parser &$parser ) { |
25 | 25 | global $egParserFunEnabledFunctions; |
26 | | - if( in_array( ExtParserFun::MAG_CALLER, $egParserFunEnabledFunctions ) ) { |
| 26 | + if( in_array( 'caller', $egParserFunEnabledFunctions ) ) { |
27 | 27 | // only register function if not disabled by configuration |
28 | 28 | $instance = new self; |
29 | 29 | $instance->init( $parser ); |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | * @return string |
39 | 39 | */ |
40 | 40 | protected function getName() { |
41 | | - return 'CALLER'; |
| 41 | + return 'caller'; |
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
Index: trunk/extensions/ParserFun/ParserFun.php |
— | — | @@ -4,11 +4,11 @@ |
5 | 5 | * 'Parser Fun' adds a parser function '#parse' for parsing wikitext and introduces the |
6 | 6 | * 'THIS:' prefix for page information related magic variables |
7 | 7 | * |
8 | | - * Documentation: http://www.mediawiki.org/wiki/Extension:Parser_Fun |
9 | | - * Support: http://www.mediawiki.org/wiki/Extension_talk:Parser_Fun |
10 | | - * Source code: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ParserFun |
| 8 | + * Documentation: https://www.mediawiki.org/wiki/Extension:Parser_Fun |
| 9 | + * Support: https://www.mediawiki.org/wiki/Extension_talk:Parser_Fun |
| 10 | + * Source code: https://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ParserFun |
11 | 11 | * |
12 | | - * @version: 0.2 |
| 12 | + * @version: 0.3 alpha |
13 | 13 | * @license: ISC license |
14 | 14 | * @author: Daniel Werner < danweetz@web.de > |
15 | 15 | * |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | |
29 | 29 | // Only initialize the extension when Validator extension is present: |
30 | 30 | if ( ! defined( 'Validator_VERSION' ) ) { |
31 | | - die( '<p><b>Error:</b> You need to have <a href="http://www.mediawiki.org/wiki/Extension:Validator">Validator</a> installed in order to use <a href="http://www.mediawiki.org/wiki/Extension:Parse">Parse</a>.</p>' ); |
| 31 | + die( '<p><b>Error:</b> You need to have <a href="https://www.mediawiki.org/wiki/Extension:Validator">Validator</a> installed in order to use <a href="https://www.mediawiki.org/wiki/Extension:Parse">Parse</a>.</p>' ); |
32 | 32 | } |
33 | 33 | |
34 | 34 | |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | 'name' => 'Parser Fun', |
39 | 39 | 'descriptionmsg' => 'parserfun-desc', |
40 | 40 | 'version' => ExtParserFun::VERSION, |
41 | | - 'author' => '[http://www.mediawiki.org/wiki/User:Danwe Daniel Werner]', |
| 41 | + 'author' => '[https://www.mediawiki.org/wiki/User:Danwe Daniel Werner]', |
42 | 42 | 'url' => 'https://www.mediawiki.org/wiki/Extension:Parser_Fun', |
43 | 43 | ); |
44 | 44 | |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | * |
80 | 80 | * @var string |
81 | 81 | */ |
82 | | - const VERSION = '0.3'; |
| 82 | + const VERSION = '0.3 alpha'; |
83 | 83 | |
84 | 84 | static function init( Parser &$parser ) { |
85 | 85 | if( self::isEnabledFunction( 'this' ) ) { |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | * |
95 | 95 | * @since 0.2 |
96 | 96 | * |
97 | | - * @param type $word |
| 97 | + * @param string $word |
98 | 98 | * @return bool |
99 | 99 | */ |
100 | 100 | static function isEnabledFunction( $word ) { |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | * |
108 | 108 | * @since 0.1 |
109 | 109 | * |
110 | | - * @return boolean |
| 110 | + * @return string |
111 | 111 | */ |
112 | 112 | static function getDir() { |
113 | 113 | static $dir = null; |
Index: trunk/extensions/ParserFun/README |
— | — | @@ -19,9 +19,9 @@ |
20 | 20 | as well as their URL-encoded equivalents ending with 'EE'. |
21 | 21 | It is possible for other extensions to support the 'THIS:' prefix, currently: |
22 | 22 | - All 'Subpage Fun' extension variables: |
23 | | - http://www.mediawiki.org/wiki/Extension:Subpage_Fun |
| 23 | + https://www.mediawiki.org/wiki/Extension:Subpage_Fun |
24 | 24 | |
25 | | -* Website: http://www.mediawiki.org/wiki/Extension:Parser_Fun |
| 25 | +* Website: https://www.mediawiki.org/wiki/Extension:Parser_Fun |
26 | 26 | * Author: Daniel Werner < danweetz@web.de > |
27 | 27 | |
28 | 28 | |
— | — | @@ -44,4 +44,4 @@ |
45 | 45 | If you have bug reports or feature requests, please add them to the 'Parser Fun' |
46 | 46 | Talk page [0]. You can also send them to Daniel Werner < danweetz@web.de > |
47 | 47 | |
48 | | -[0] http://www.mediawiki.org/w/index.php?title=Extension_talk:Parser_Fun |
| 48 | +[0] https://www.mediawiki.org/w/index.php?title=Extension_talk:Parser_Fun |