r82066 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82065‎ | r82066 | r82067 >
Date:18:43, 13 February 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Added docs
Modified paths:
  • /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
@@ -73,12 +73,15 @@
7474 $params['wiki']->setDefault( $egIncWPDefaultWiki );
7575 $params['wiki']->addCriteria( new CriterionInArray( array_keys( $egIncWPWikis ) ) );
7676 $params['wiki']->addManipulations( new ParamManipulationFunctions( 'strtolower' ) );
 77+ $params['wiki']->setDescription( wfMsg( 'includewp-include-par-wiki' ) );
7778
7879 $params['paragraphs'] = new Parameter( 'paragraphs', Parameter::TYPE_INTEGER );
7980 $params['paragraphs']->setDefault( $egIncWPParagraphs );
 81+ $params['paragraphs']->setDescription( wfMsg( 'includewp-include-par-paragraphs' ) );
8082
8183 $params['height'] = new Parameter( 'height', Parameter::TYPE_INTEGER );
8284 $params['height']->setDefault( $egIncWPDivHeight );
 85+ $params['height']->setDescription( wfMsg( 'includewp-include-par-height' ) );
8386
8487 return $params;
8588 }
Index: trunk/extensions/IncludeWP/IncludeWP.i18n.php
@@ -30,6 +30,9 @@
3131
3232 'includewp-parserhook-desc' => 'Parser hook that allows displaying content of a Wikipedia page.',
3333 'includewp-include-par-page' => 'The name of the (remote) page you want to display.',
 34+ 'includewp-include-par-wiki' => 'The name of the wiki you want to pull content from. Needs to be one of the allowed wikis, by default only wikipedia.',
 35+ 'includewp-include-par-paragraphs' => 'The number of paragraphs you want to initially display.',
 36+ 'includewp-include-par-height' => 'The max height (in px) of the div into which the content is loaded. Set to 0 for no limit.',
3437 );
3538
3639 /** Message documentation (Message documentation)

Status & tagging log