Index: trunk/extensions/SubPageList/RELEASE-NOTES |
— | — | @@ -4,6 +4,12 @@ |
5 | 5 | Latest version of the release notes: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SubPageList/RELEASE-NOTES?view=co |
6 | 6 | |
7 | 7 | |
| 8 | +=== Version 0.2 === |
| 9 | +2011-01-xx |
| 10 | + |
| 11 | +* Fixed bug in pathstyle and sortby parameters. |
| 12 | +* Added parameter descriptions. |
| 13 | + |
8 | 14 | === Version 0.1 === |
9 | 15 | 2010-12-31 |
10 | 16 | |
Index: trunk/extensions/SubPageList/SubPageList.i18n.php |
— | — | @@ -20,4 +20,13 @@ |
21 | 21 | 'spl-desc' => 'Adds a <code><nowiki><splist /></nowiki></code> tag that enables you to list subpages', |
22 | 22 | |
23 | 23 | 'spl-nosubpages' => '$1 has no subpages to list.', |
| 24 | + |
| 25 | + 'spl-subpages-par-sort' => 'The direction to sort in.', |
| 26 | + 'spl-subpages-par-sortby' => 'What to sort the subpages by.', |
| 27 | + 'spl-subpages-par-format' => 'The subpage list can be displayed in several formats. Numbered lists (ol), bulleted lists (ul) and comma-separated lists (list).', |
| 28 | + 'spl-subpages-par-page' => 'The page to show the subpages for. Defaults to the current page.', |
| 29 | + 'spl-subpages-par-showpage' => 'Idicates if the page itself should be shown in the list or not.', |
| 30 | + 'spl-subpages-par-pathstyle' => 'The style of the path for subpages in the list.', |
| 31 | + 'spl-subpages-par-kidsonly' => 'Allows showing only direct subpages.', |
| 32 | + 'spl-subpages-par-limit' => 'The max amount of pages to list.', |
24 | 33 | ); |
\ No newline at end of file |
Index: trunk/extensions/SubPageList/SubPageList.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | die( '<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:SubPageList">SubPageList</a>.<br />' ); |
37 | 37 | } |
38 | 38 | |
39 | | -define( 'SPL_VERSION', '0.1' ); |
| 39 | +define( 'SPL_VERSION', '0.2 alpha' ); |
40 | 40 | |
41 | 41 | $wgExtensionCredits['parserhook'][] = array( |
42 | 42 | 'path' => __FILE__, |
Index: trunk/extensions/SubPageList/SubPageList.class.php |
— | — | @@ -64,11 +64,13 @@ |
65 | 65 | $params['sort']->addCriteria( new CriterionInArray( 'asc', 'desc' ) ); |
66 | 66 | $params['sort']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
67 | 67 | $params['sort']->setDefault( 'asc' ); |
| 68 | + $params['sort']->setDescription( wfMsg( 'spl-subpages-par-sort' ) ); |
68 | 69 | |
69 | 70 | $params['sortby'] = new Parameter( 'sortby' ); |
70 | 71 | $params['sortby']->addCriteria( new CriterionInArray( 'title', 'lastedit' ) ); |
71 | 72 | $params['sortby']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
72 | 73 | $params['sortby']->setDefault( 'title' ); |
| 74 | + $params['sortby']->setDescription( wfMsg( 'spl-subpages-par-sortby' ) ); |
73 | 75 | |
74 | 76 | $params['format'] = new Parameter( 'format' ); |
75 | 77 | $params['format']->addAliases( 'liststyle' ); |
— | — | @@ -78,32 +80,38 @@ |
79 | 81 | 'list', 'bar' |
80 | 82 | ) ); |
81 | 83 | $params['format']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
82 | | - $params['format']->setDefault( 'ul' ); |
| 84 | + $params['format']->setDefault( 'ul' ); |
| 85 | + $params['format']->setDescription( wfMsg( 'spl-subpages-par-format' ) ); |
83 | 86 | |
84 | 87 | $params['page'] = new Parameter( 'page' ); |
85 | 88 | $params['page']->addAliases( 'parent' ); |
86 | 89 | $params['page']->setDefault( '' ); |
| 90 | + $params['page']->setDescription( wfMsg( 'spl-subpages-par-page' ) ); |
87 | 91 | |
88 | 92 | $params['showpage'] = new Parameter( 'showpage', Parameter::TYPE_BOOLEAN ); |
89 | 93 | $params['showpage']->addAliases( 'showparent' ); |
90 | 94 | $params['showpage']->setDefault( 'no' ); |
| 95 | + $params['showpage']->setDescription( wfMsg( 'spl-subpages-par-showpage' ) ); |
91 | 96 | |
92 | 97 | $params['pathstyle'] = new Parameter( 'pathstyle' ); |
93 | 98 | $params['pathstyle']->addAliases( 'showpath' ); |
94 | | - $params['sortby']->addCriteria( new CriterionInArray( |
| 99 | + $params['pathstyle']->addCriteria( new CriterionInArray( |
95 | 100 | 'none', 'no', |
96 | 101 | 'children', 'notparent', |
97 | 102 | 'full' |
98 | 103 | ) ); |
99 | 104 | $params['pathstyle']->setDefault( 'none' ); |
100 | 105 | $params['pathstyle']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) ); |
101 | | - |
| 106 | + $params['pathstyle']->setDescription( wfMsg( 'spl-subpages-par-pathstyle' ) ); |
| 107 | + |
102 | 108 | $params['kidsonly'] = new Parameter( 'kidsonly', Parameter::TYPE_BOOLEAN ); |
103 | 109 | $params['kidsonly']->setDefault( 'no' ); |
| 110 | + $params['kidsonly']->setDescription( wfMsg( 'spl-subpages-par-kidsonly' ) ); |
104 | 111 | |
105 | 112 | $params['limit'] = new Parameter( 'limit', Parameter::TYPE_INTEGER ); |
106 | 113 | $params['limit']->setDefault( 200 ); |
107 | 114 | $params['limit']->addCriteria( new CriterionInRange( 1, 500 ) ); |
| 115 | + $params['limit']->setDescription( wfMsg( 'spl-subpages-par-limit' ) ); |
108 | 116 | |
109 | 117 | return $params; |
110 | 118 | } |