'Supage Fun' Changelog: ======================= * (trunk) -- Version 0.5.3: - With parameter 'linked' set, wfEscapeWikiText() won't be used to escape sitenames within links since this could break a link. * December 2, 2011 -- Version 0.5.2: - Support for 'Parser Fun' extensions 'THIS' function added. With 'Parser Fun' enabled it now is possible to call '{{THIS:SUBPAGETITLE}}' which will output the subpage title of the template or page where the phrase is defined on, not the page which is actually being rendered by the parser as '{{SUBPAGETITLE}}' would output it. - Parser function functions within 'ExtSubpageFun' class now have a 'pf_' prefix. * November 8, 2011 -- Version 0.5.1: - All functions/variables returning page names in any way are using 'wfEscapeWikiText()' now like other variables like 'PAGENAME' for example. - 'filter' parameter can be used for 'NUMBEROFSUBPAGES'. * November 7, 2011 -- Version 0.5: - All magic words are case-sensitive now and must be written in UPPERCASE. - Input of invalid page names (with forbidden characters) will output '' instead of raising a php error. This behavior is adopted from {{FULLPAGENAME}} which also outputs '' in that case. - New parameter 'filter' for 'SUBPAGES', 'PARENTPAGES' and 'SIBLINGPAGES'. This allows to filter the list of pages by keywords or a regular expression (delimiters '/', '%' and '|' allowed, flags 'imsSuUx'. If the string is not considered a valid regex, the string is considered a list of keywords (separated by '|' e.g. through a template '{{!}}'). - Functions output on category pages with link parameter set will no longer create category links but real links how it should be. - Language file added. - 'SubpageInfo' class put into new file 'SFun_SubpageInfo.php'. - Further code cleanup. Magic words overload removed. - 'Supage Fun' now is distributed under ISC License and can be found in wikimedia.org svn. * September 16, 2011 -- Version 0.4: - Cleaned-up code, gotten rid of global functions. All useful functions for other extension developers are in 'SubpageInfo' class, parser function/variables stuff has its own 'ExtSubpageFun' class now. - Function 'NUMBEROFSUBPAGES' now allows the use of parameter 'depth'. - Function 'PARENTPAGES' now allows negative 'depth' values to return that many pages starting from the top-level parent. - If parameter 'depth' is '0', 'NUMBEROFSUBPAGES' will return '0', 'PARENTPAGES' and 'SUBPAGETITLE' an empty string. - Named function Arguments won't accidentally be threated as parameter '1' anymore if no value is given. E.g. '{{PARENTPAGES:depth=}}' is possible without confusion now. * March 24, 2011 -- Version 0.3.2.1: - Fit for PHP 5.3: [http://php.net/manual/en/function.split.php Split] function replaced with [http://www.php.net/manual/en/function.preg-split.php preg_split]. * March 24, 2011 -- Version 0.3.2: - 'SUBPAGETITLE' won't output any namespace anymore, just the main part. - Bug solved in which page titles with some special characters were causing problems. * December 30, 2009 -- Version 0.3.1: - Minor change in extension meta infos for proper appearance in [[special:version]]. - Extension status is ''stable'' now. * December 10, 2009 -- Version 0.3.0: - Changed parameters '2' and '3' for advanced list formations against named parameters 'linked' and 'sep'. - Added named parameter 'depth' for 'SUBPAGES' and 'PARENTPAGES'. * December 9, 2009 -- Version 0.2.0: - Sixth variable/function 'SUBPAGETITLE' added. * December 9, 2009 -- Version 0.1.0 (initial release): - Introduced the six variables/functions 'NUMBEROFSUBPAGES', 'SUBPAGELEVEL', 'SUBPAGES', 'PARENTPAGES', 'SIBLINGPAGES' and 'TOPLEVELPAGE'.