MtDu has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/371627 )
Change subject: Add Goats to WikiLove ...................................................................... Add Goats to WikiLove Bug: T173187 Change-Id: Iaa7bfbd7f7c9aa8bcdc2bfb77fb4ab9375afe057 --- M extension.json M i18n/en.json M i18n/qqq.json M resources/ext.wikiLove.defaultOptions.js A resources/images/icons/wikilove-icon-goat.png 5 files changed, 20 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiLove refs/changes/27/371627/1 diff --git a/extension.json b/extension.json index 7f808d4..611ec8b 100644 --- a/extension.json +++ b/extension.json @@ -35,6 +35,7 @@ "wikilove-type-barnstars", "wikilove-type-food", "wikilove-type-kittens", + "wikilove-type-goats", "wikilove-type-makeyourown", "wikilove-barnstar-header", "wikilove-barnstar-select", @@ -157,7 +158,8 @@ "wikilove-food-stroopwafels-option", "wikilove-food-stroopwafels-desc", "wikilove-food-stroopwafels-header", - "wikilove-kittens-header" + "wikilove-kittens-header", + "wikilove-goats-header" ] }, "ext.wikiLove.startup": { diff --git a/i18n/en.json b/i18n/en.json index acd2b91..d7297fd 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -152,6 +152,8 @@ "wikilove-food-stroopwafels-header": "Some stroopwafels for you!", "wikilove-type-kittens": "Kittens", "wikilove-kittens-header": "A kitten for you!", + "wikilove-type-goats": "Goats", + "wikilove-goats-header": "A goat for you!", "wikilove-type-makeyourown": "Make your own", "wikilove-err-header": "Please enter a header.", "wikilove-err-title": "Please enter a title.", diff --git a/i18n/qqq.json b/i18n/qqq.json index 12d7768..5669d31 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -163,6 +163,8 @@ "wikilove-food-stroopwafels-header": "A header of a [[:wikipedia:Barnstar]] of type \"food\" appears at the top of the talk page post.", "wikilove-type-kittens": "[[File:Wiki Love 002.png|thumb]]\nLabel for a button. Should be no longer than 22 characters.", "wikilove-kittens-header": "Used as header with JavaScript", + "wikilove-type-goats": "[[File:Wiki Love 002.png|thumb]]\nLabel for a button. Should be no longer than 22 characters.", + "wikilove-goats-header": "Used as header with JavaScript", "wikilove-type-makeyourown": "[[File:Wiki Love 002.png|thumb]]\nLabel for a button. Should be no longer than 22 characters.", "wikilove-err-header": "[[File:Wiki Love 004.png|thumb]]\nUse the same translation for \"header\" as was used for {{msg-mw|wikilove-header}}.", "wikilove-err-title": "\nTitle is the title of the wikilove box (e.g. \"Barnstar\")", diff --git a/resources/ext.wikiLove.defaultOptions.js b/resources/ext.wikiLove.defaultOptions.js index 9b6cf1c..e7dfefc 100644 --- a/resources/ext.wikiLove.defaultOptions.js +++ b/resources/ext.wikiLove.defaultOptions.js @@ -363,6 +363,19 @@ }, icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/WikiLove/resources/images/icons/wikilove-icon-kitten.png' }, + 'goat': { + name: mw.msg( 'wikilove-type-goats' ), + fields: [ 'header', 'message' ], + header: mw.msg( 'wikilove-goats-header' ), + text: '[[$3|left|150px]]\n$1\n\n~~~~\n<br style="clear: both;"/>', // $3 is the image filename + gallery: { + imageList: [ 'A aesthetic goat.JPG', 'Boer Goat (8742860752).jpg', 'Házikecske portré.JPG'], + width: 145, + height: 150, + number: 3 + }, + icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/WikiLove/resources/images/icons/wikilove-icon-goat.png' + }, // default type, nice to leave this one in place when adding other types 'makeyourown': { name: mw.msg( 'wikilove-type-makeyourown' ), diff --git a/resources/images/icons/wikilove-icon-goat.png b/resources/images/icons/wikilove-icon-goat.png new file mode 100644 index 0000000..5accf71 --- /dev/null +++ b/resources/images/icons/wikilove-icon-goat.png Binary files differ -- To view, visit https://gerrit.wikimedia.org/r/371627 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iaa7bfbd7f7c9aa8bcdc2bfb77fb4ab9375afe057 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikiLove Gerrit-Branch: master Gerrit-Owner: MtDu <justin.d...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits