r81459 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:< r81458‎ | r81459 | r81460 >
Date:15:32, 3 February 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Added some docs
Modified paths:
  • /trunk/extensions/IncludeWP/INSTALL (modified) (history)
  • /trunk/extensions/IncludeWP/IncludeWP.class.php (modified) (history)
  • /trunk/extensions/IncludeWP/IncludeWP.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/IncludeWP/IncludeWP.class.php
——@@ -59,7 +59,8 @@
6060 protected function getParameterInfo( $type ) {
6161 $params = array();
6262
63 - $params[] = new Parameter( 'page' );
 63+ $params['page'] = new Parameter( 'page' );
 64+ $params['page']->setDescription( wfMsg( 'includewp-include-par-page' ) );
6465
6566 return $params;
6667 }
——@@ -190,6 +191,15 @@
191192 'noparse' => true,
192193 'isHTML' => true
193194 );
194 - }
 195+ }
195196
 197+ /**
 198+ * @see ParserHook::getDescription()
 199+ *
 200+ * @since 0.1
 201+ */
 202+ public function getDescription() {
 203+ return wfMsg( 'includewp-parserhook-desc' );
 204+ }
 205+
196206 }
Index: trunk/extensions/IncludeWP/INSTALL
——@@ -29,7 +29,7 @@
3030 MediaWiki 'extensions' directory. Then add the following code to your [[Manual:LocalSettings.php|LocalSettings.php]] file:
3131
3232 <source lang="php">
33 -# SubPageList
 33+# IncludeWP
3434 require_once( "$wgExtensionAssetsPath/IncludeWP/IncludeWP.php" );
3535 </source>
3636
Index: trunk/extensions/IncludeWP/IncludeWP.i18n.php
——@@ -25,5 +25,8 @@
2626 'includewp-show-full-page' => 'Show full page',
2727 'includewp-loading-failed' => 'Failed to load page.',
2828
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.',
3033 );

Status & tagging log