http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90944
Revision: 90944 Author: kaldari Date: 2011-06-28 06:51:28 +0000 (Tue, 28 Jun 2011) Log Message: ----------- adding example for custom image field, so that it isnt as mysterious Modified Paths: -------------- trunk/extensions/WikiLove/WikiLove.i18n.php trunk/extensions/WikiLove/WikiLove.php trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js Modified: trunk/extensions/WikiLove/WikiLove.i18n.php =================================================================== --- trunk/extensions/WikiLove/WikiLove.i18n.php 2011-06-28 06:40:49 UTC (rev 90943) +++ trunk/extensions/WikiLove/WikiLove.i18n.php 2011-06-28 06:51:28 UTC (rev 90944) @@ -30,6 +30,7 @@ 'wikilove-title' => 'Enter a title:', 'wikilove-enter-message' => 'Enter a message:', 'wikilove-omit-sig' => '(without a signature)', + 'wikilove-image-example' => '(example: Trophy.png)', 'wikilove-button-preview' => 'Preview', 'wikilove-preview' => 'Preview', 'wikilove-notify' => 'Notify the user by e-mail', @@ -55,6 +56,7 @@ 'wikilove-button-preview' => 'Button text. Verb.', 'wikilove-preview' => 'Title. Noun.', 'wikilove-barnstar-header' => 'See [[:wikipedia:Barnstar]]. Probably not literally translatable.', + 'wikilove-image-example' => 'The filename should be an actual image on Wikimedia Commons.', ); /** Bulgarian (Български) Modified: trunk/extensions/WikiLove/WikiLove.php =================================================================== --- trunk/extensions/WikiLove/WikiLove.php 2011-06-28 06:40:49 UTC (rev 90943) +++ trunk/extensions/WikiLove/WikiLove.php 2011-06-28 06:51:28 UTC (rev 90944) @@ -110,6 +110,7 @@ 'wikilove-title', 'wikilove-enter-message', 'wikilove-omit-sig', + 'wikilove-image-example', 'wikilove-button-preview', 'wikilove-preview', 'wikilove-notify', Modified: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js =================================================================== --- trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js 2011-06-28 06:40:49 UTC (rev 90943) +++ trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js 2011-06-28 06:51:28 UTC (rev 90944) @@ -81,6 +81,7 @@ <label for="mw-wikilove-title" id="mw-wikilove-title-label"><html:msg key="wikilove-title"/></label>\ <input type="text" class="text" id="mw-wikilove-title"/>\ <label for="mw-wikilove-image" id="mw-wikilove-image-label"><html:msg key="wikilove-image"/></label>\ + <span class="mw-wikilove-note" id="mw-wikilove-image-note"><html:msg key="wikilove-image-example"/></span>\ <input type="text" class="text" id="mw-wikilove-image"/>\ <label for="mw-wikilove-message" id="mw-wikilove-message-label"><html:msg key="wikilove-enter-message"/></label>\ <span class="mw-wikilove-note" id="mw-wikilove-message-note"><html:msg key="wikilove-omit-sig"/></span>\ @@ -230,7 +231,7 @@ $( '#mw-wikilove-title' ).val( currentTypeOrSubtype.title || '' ); // show or hide image label and textbox depending on fields configuration - $( '#mw-wikilove-image, #mw-wikilove-image-label') + $( '#mw-wikilove-image, #mw-wikilove-image-label, #mw-wikilove-image-note' ) .toggle( $.inArray( 'image', currentTypeOrSubtype.fields ) >= 0 ); // set the new text for the image textbox _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs