| Index: trunk/extensions/IncludeWP/IncludeWP.class.php |
| — | — | @@ -59,7 +59,8 @@ |
| 60 | 60 | protected function getParameterInfo( $type ) { |
| 61 | 61 | $params = array(); |
| 62 | 62 | |
| 63 | | - $params[] = new Parameter( 'page' ); |
| | 63 | + $params['page'] = new Parameter( 'page' ); |
| | 64 | + $params['page']->setDescription( wfMsg( 'includewp-include-par-page' ) ); |
| 64 | 65 | |
| 65 | 66 | return $params; |
| 66 | 67 | } |
| — | — | @@ -190,6 +191,15 @@ |
| 191 | 192 | 'noparse' => true, |
| 192 | 193 | 'isHTML' => true |
| 193 | 194 | ); |
| 194 | | - } |
| | 195 | + } |
| 195 | 196 | |
| | 197 | + /** |
| | 198 | + * @see ParserHook::getDescription() |
| | 199 | + * |
| | 200 | + * @since 0.1 |
| | 201 | + */ |
| | 202 | + public function getDescription() { |
| | 203 | + return wfMsg( 'includewp-parserhook-desc' ); |
| | 204 | + } |
| | 205 | + |
| 196 | 206 | } |
| Index: trunk/extensions/IncludeWP/INSTALL |
| — | — | @@ -29,7 +29,7 @@ |
| 30 | 30 | MediaWiki 'extensions' directory. Then add the following code to your [[Manual:LocalSettings.php|LocalSettings.php]] file: |
| 31 | 31 | |
| 32 | 32 | <source lang="php"> |
| 33 | | -# SubPageList |
| | 33 | +# IncludeWP |
| 34 | 34 | require_once( "$wgExtensionAssetsPath/IncludeWP/IncludeWP.php" ); |
| 35 | 35 | </source> |
| 36 | 36 | |
| Index: trunk/extensions/IncludeWP/IncludeWP.i18n.php |
| — | — | @@ -25,5 +25,8 @@ |
| 26 | 26 | 'includewp-show-full-page' => 'Show full page', |
| 27 | 27 | 'includewp-loading-failed' => 'Failed to load page.', |
| 28 | 28 | |
| 29 | | - 'includewp-licence-notice' => 'The above content comes from the $1 article <a href="$2">$3</a> licenced under the <a href="$4">$5</a>. A full list of authors can be found <a href="$6">here</a>.' |
| | 29 | + 'includewp-licence-notice' => 'The above content comes from the $1 article <a href="$2">$3</a> licenced under the <a href="$4">$5</a>. A full list of authors can be found <a href="$6">here</a>.', |
| | 30 | + |
| | 31 | + 'includewp-parserhook-desc' => 'Parser hook that allows displaying content of a Wikipedia article.', |
| | 32 | + 'includewp-include-par-page' => 'The name of the (remote) page you want to display.', |
| 30 | 33 | ); |