Index: trunk/extensions/Validator/includes/parserHooks/Validator_Describe.php |
— | — | @@ -138,9 +138,14 @@ |
139 | 139 | $description = |
140 | 140 | ( $parameters['pre'] ? '== ' : '<h2>' ) . |
141 | 141 | $hookName . |
142 | | - ( $parameters['pre'] ? ' ==' : '</h2>' ) . "\n\n"; |
143 | | - |
| 142 | + ( $parameters['pre'] ? ' ==' : '</h2>' ); |
144 | 143 | |
| 144 | + if ( $parameters['pre'] ) { |
| 145 | + $description .= "\n<!-- " . wfMsg( 'validator-describe-autogen' ) . ' -->'; |
| 146 | + } |
| 147 | + |
| 148 | + $description .= "\n\n"; |
| 149 | + |
145 | 150 | if ( $descriptionData['description'] !== false ) { |
146 | 151 | $description .= wfMsgExt( 'validator-describe-descriptionmsg', 'parsemag', $descriptionData['description'] ); |
147 | 152 | $description .= "\n\n"; |
— | — | @@ -257,6 +262,7 @@ |
258 | 263 | |
259 | 264 | $result .= "'''" . wfMsg( 'validator-describe-tagmax' ) . "'''\n\n"; |
260 | 265 | |
| 266 | + // TODO: multiline when long |
261 | 267 | $result .= "<pre!><nowiki>\n" . Xml::element( |
262 | 268 | $hookName, |
263 | 269 | $params |
Index: trunk/extensions/Validator/Validator.i18n.php |
— | — | @@ -75,6 +75,7 @@ |
76 | 76 | 'validator-describe-pfmin' => 'Parser function with only the required parameters.', |
77 | 77 | 'validator-describe-pfmax' => 'Parser function with all parameters.', |
78 | 78 | 'validator-describe-pfdefault' => 'Parser function with all parameters using the default parameter notation.', |
| 79 | + 'validator-describe-autogen' => 'The contents of this section was auto-generated by the "describe" parser hook of the Validator extension.', |
79 | 80 | |
80 | 81 | // Criteria errors for single values |
81 | 82 | 'validator_error_empty_argument' => 'Parameter $1 can not have an empty value.', |