http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90807
Revision: 90807
Author: kaldari
Date: 2011-06-26 00:39:49 +0000 (Sun, 26 Jun 2011)
Log Message:
-----------
improvements to css, messages, and default config
Modified Paths:
--------------
trunk/extensions/WikiLove/WikiLove.i18n.php
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.css
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js
Modified: trunk/extensions/WikiLove/WikiLove.i18n.php
===================================================================
--- trunk/extensions/WikiLove/WikiLove.i18n.php 2011-06-26 00:38:44 UTC (rev
90806)
+++ trunk/extensions/WikiLove/WikiLove.i18n.php 2011-06-26 00:39:49 UTC (rev
90807)
@@ -15,16 +15,16 @@
'wikilove-desc' => 'Adds an interface for facilitating positive user
feedback to user talk pages',
'wikilove' => 'WikiLove',
'wikilove-enable-preference' => 'Enable showing appreciation for other
users with the WikiLove tab (experimental)',
- 'wikilove-tab-text' => 'Show appreciation',
+ 'wikilove-tab-text' => 'WikiLove',
'tooltip-ca-wikilove' => 'Post a message for this user showing your
appreciation',
- 'wikilove-dialog-title' => 'WikiLove',
+ 'wikilove-dialog-title' => 'WikiLove – Send a message of appreciation
to another user',
'wikilove-select-type' => 'Select type',
'wikilove-get-started-header' => "Let's get started!",
'wikilove-get-started-list-1' => 'Select the type of WikiLove you wish
to send',
'wikilove-get-started-list-2' => 'Add details to your WikiLove',
'wikilove-get-started-list-3' => 'Send your WikiLove!',
'wikilove-add-details' => 'Add details',
- 'wikilove-image' => 'Enter an image:',
+ 'wikilove-image' => 'Enter an image from Wikimedia Commons:',
'wikilove-select-image' => 'Select an image:',
'wikilove-header' => 'Enter a header:',
'wikilove-title' => 'Enter a title:',
Modified: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.css
===================================================================
--- trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.css
2011-06-26 00:38:44 UTC (rev 90806)
+++ trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.css
2011-06-26 00:39:49 UTC (rev 90807)
@@ -1,3 +1,7 @@
+.ui-widget-overlay {
+ min-height: 750px;
+}
+
/* dialog */
#mw-wikilove-dialog {
margin: 10px;
@@ -3,4 +7,8 @@
}
+#mw-wikilove-preview-form {
+ clear: both; /* for monobook skin */
+}
+
/* dialog type selection */
/*#mw-wikilove-dialog*/ #mw-wikilove-select-type {
Modified:
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js
===================================================================
---
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js
2011-06-26 00:38:44 UTC (rev 90806)
+++
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js
2011-06-26 00:39:49 UTC (rev 90807)
@@ -14,7 +14,7 @@
types: {
// example type, could be removed later (also no i18n)
'barnstar': {
- name: 'Barnstar', // name of the type (appears in the
types menu)
+ name: 'Barnstars', // name of the type (appears in the
types menu)
select: 'Select a barnstar:', // subtype select label
subtypes: { // some different subtypes
// note that when not using subtypes you should
use these subtype options
@@ -25,8 +25,7 @@
descr: 'This barnstar is given to
recognize particularly fine contributions to Wikipedia, to let people know that
their hard work is seen and appreciated.', // description
header: 'A barnstar for you!', //
header that appears at the top of the talk page post (optional)
title: 'The Original Barnstar', //
title that appears inside the award box (optional)
- image: 'Original Barnstar Hires.png',
// image for the award
- email: 'Hello $7!\n\nI just awarded you
a barnstar.' // message to use in email notification; $7 is replaced by the
recipient's username
+ image: 'Original Barnstar Hires.png' //
image for the award
},
'admins': {
fields: [ 'message' ],
@@ -34,8 +33,7 @@
descr: 'The Admin\'s Barnstar may be
awarded to an administrator who made a particularly difficult decision or
performed a tedious but needed admin task.',
header: 'A barnstar for you!',
title: 'The Admin\'s Barnstar',
- image: 'Administrator Barnstar
Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Administrator Barnstar
Hires.png'
},
'antivandalism': {
fields: [ 'message' ],
@@ -43,8 +41,7 @@
descr: 'The Anti-Vandalism Barnstar may
be awarded to those who show great contributions to protecting and reverting
attacks of vandalism on Wikipedia.',
header: 'A barnstar for you!',
title: 'The Anti-Vandalism Barnstar',
- image: 'Barnstar of Reversion
Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Barnstar of Reversion Hires.png'
},
'diligence': {
fields: [ 'message' ],
@@ -52,8 +49,7 @@
descr: 'The Barnstar of Diligence may
be awarded in recognition of a combination of extraordinary scrutiny, precision
and community service.',
header: 'A barnstar for you!',
title: 'The Barnstar of Diligence',
- image: 'Barnstar of Diligence
Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Barnstar of Diligence Hires.png'
},
'diplomacy': {
fields: [ 'message' ],
@@ -61,8 +57,7 @@
descr: 'The Barnstar of Diplomacy is
awarded to users who have helped to resolve, peacefully, conflicts on
Wikipedia.',
header: 'A barnstar for you!',
title: 'The Barnstar of Diplomacy',
- image: 'Peace Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Peace Barnstar Hires.png'
},
'goodhumor': {
fields: [ 'message' ],
@@ -70,8 +65,7 @@
descr: 'The Barnstar of Good Humor may
be awarded to Wikipedians who consistently lighten the mood, defuse conflicts,
and make Wikipedia a better place to be.',
header: 'A barnstar for you!',
title: 'The Barnstar of Good Humor',
- image: 'Barnstar of Reversion
Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Barnstar of Reversion Hires.png'
},
'brilliant': {
fields: [ 'message' ],
@@ -79,8 +73,7 @@
descr: 'The Brilliant Idea Barnstar may
be awarded to a user who figures out an elegant solution to a particularly
difficult problem.',
header: 'A barnstar for you!',
title: 'The Brilliant Idea Barnstar',
- image: 'Brilliant Idea Barnstar
Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Brilliant Idea Barnstar
Hires.png'
},
'citation': {
fields: [ 'message' ],
@@ -88,8 +81,7 @@
descr: 'The Citation Barnstar is
awarded to users who provide references and in-line citations to previously
unsourced articles.',
header: 'A barnstar for you!',
title: 'The Citation Barnstar',
- image: 'Citation Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Citation Barnstar Hires.png'
},
'civility': {
fields: [ 'message' ],
@@ -97,8 +89,7 @@
descr: 'The Civility Barnstar may be
awarded to any user who excels at maintaining civility in the midst of
contentious situations.',
header: 'A barnstar for you!',
title: 'The Civility Barnstar',
- image: 'Civility Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Civility Barnstar Hires.png'
},
'copyeditor': {
fields: [ 'message' ],
@@ -106,8 +97,7 @@
descr: 'The Copyeditor\'s Barnstar is
awarded for excellence in correcting spelling, grammar, punctuation, and style
issues.',
header: 'A barnstar for you!',
title: 'The Copyeditor\'s Barnstar',
- image: 'Copyeditor Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Copyeditor Barnstar Hires.png'
},
'defender': {
fields: [ 'message' ],
@@ -115,8 +105,7 @@
descr: 'The Defender of the Wiki may be
awarded to those who have gone above and beyond to prevent Wikipedia from being
used for fraudulent purposes.',
header: 'A barnstar for you!',
title: 'The Defender of the Wiki
Barnstar',
- image: 'WikiDefender Barnstar
Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'WikiDefender Barnstar Hires.png'
},
'editors': {
fields: [ 'message' ],
@@ -124,8 +113,7 @@
descr: 'The Editor\'s Barnstar is
awarded to individuals who display particularly fine decisions in general
editing.',
header: 'A barnstar for you!',
title: 'The Editor\'s Barnstar',
- image: 'Editors Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Editors Barnstar Hires.png'
},
'designers': {
fields: [ 'message' ],
@@ -133,8 +121,7 @@
descr: 'The Graphic Designer\'s
Barnstar may be awarded to those who work tirelessly to provide Wikipedia with
free, high-quality graphics.',
header: 'A barnstar for you!',
title: 'The Graphic Designer\'s
Barnstar',
- image: 'Rosetta Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Rosetta Barnstar Hires.png'
},
'half': {
fields: [ 'message' ],
@@ -142,8 +129,7 @@
descr: 'The Half Barnstar is awarded
for excellence in cooperation, especially for productive editing with someone
who holds an opposing viewpoint.',
header: 'A barnstar for you!',
title: 'The Half Barnstar',
- image: 'Halfstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Halfstar Hires.png'
},
'minor': {
fields: [ 'message' ],
@@ -151,8 +137,7 @@
descr: 'Minor edits are often
overlooked, but are essential contributions to Wikipedia. The Minor Barnstar is
awarded for making minor edits of the utmost quality.',
header: 'A barnstar for you!',
title: 'The Minor barnstar',
- image: 'Minor Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Minor Barnstar Hires.png'
},
'antispam': {
fields: [ 'message' ],
@@ -160,8 +145,7 @@
descr: 'The Anti-Spam Barnstar is
awarded to users who do an exceptional job fighting against spam on Wikipedia.',
header: 'A barnstar for you!',
title: 'The No Spam Barnstar',
- image: 'No Spam Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'No Spam Barnstar Hires.png'
},
'photographers': {
fields: [ 'message' ],
@@ -169,17 +153,15 @@
descr: 'The Photographer\'s Barnstar is
awarded to those individuals who tirelessly improve the Wikipedia with their
photographic skills and contributions.',
header: 'A barnstar for you!',
title: 'The Photographer\'s Barnstar',
- image: 'Camera Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Camera Barnstar Hires.png'
},
'kindness': {
fields: [ 'message' ],
option: 'Random Acts of Kindness
Barnstar',
descr: 'The Random Acts of Kindness
Barnstar may be awarded to those that show a pattern of going the extra mile to
be nice, without being asked.',
header: 'A barnstar for you!',
- title: 'The Random Acts of Kindness
barnstar',
- image: 'Kindness Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ title: 'The Random Acts of Kindness
Barnstar',
+ image: 'Kindness Barnstar Hires.png'
},
'reallife': {
fields: [ 'message' ],
@@ -187,8 +169,7 @@
descr: 'The Real Life Barnstar is
awarded to editors who make contributions both online and offline, by
organizing wiki-related real-life events.',
header: 'A barnstar for you!',
title: 'The Real Life Barnstar',
- image: 'Real Life Barnstar.jpg',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Real Life Barnstar.jpg'
},
'resilient': {
fields: [ 'message' ],
@@ -196,8 +177,7 @@
descr: 'The Resilient Barnstar may be
given to any editor who learns and improves from criticisms, never letting
mistakes impede their growth as a Wikipedian.',
header: 'A barnstar for you!',
title: 'The Resilient Barnstar',
- image: 'Resilient Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Resilient Barnstar Hires.png'
},
'rosetta': {
fields: [ 'message' ],
@@ -205,8 +185,7 @@
descr: 'The Rosetta Barnstar may be
given to any editor who exhibits outstanding translation efforts on Wikipedia.',
header: 'A barnstar for you!',
title: 'The Rosetta Barnstar',
- image: 'Rosetta Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Rosetta Barnstar Hires.png'
},
'special': {
fields: [ 'message' ],
@@ -214,8 +193,7 @@
descr: 'The Special Barnstar may be
awarded to a user as a gesture of appreciation when there is no other barnstar
which would be appropriate.',
header: 'A barnstar for you!',
title: 'The Special Barnstar',
- image: 'Special Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Special Barnstar Hires.png'
},
'surreal': {
fields: [ 'message' ],
@@ -223,8 +201,7 @@
descr: 'The Surreal Barnstar may be
awarded to any Wikipedian who adds "special flavor" to the community by acting
as a sort of wildcard.',
header: 'A barnstar for you!',
title: 'The Surreal Barnstar',
- image: 'Surreal Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Surreal Barnstar Hires.png'
},
'teamwork': {
fields: [ 'message' ],
@@ -232,8 +209,7 @@
descr: 'The Teamwork Barnstar may be
awarded when several editors work together to improve an article.',
header: 'A barnstar for you!',
title: 'The Teamwork Barnstar',
- image: 'Team Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Team Barnstar Hires.png'
},
'technical': {
fields: [ 'message' ],
@@ -241,8 +217,7 @@
descr: 'The Technical Barnstar may be
awarded to anyone who has enhanced Wikipedia through their technical work
(programming, bot building, link repair, etc.).',
header: 'A barnstar for you!',
title: 'The Technical Barnstar',
- image: 'Vitruvian Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Vitruvian Barnstar Hires.png'
},
'tireless': {
fields: [ 'message' ],
@@ -250,8 +225,7 @@
descr: 'The Tireless Contributor
Barnstar is awarded to especially tireless Wikipedians who contribute an
especially large body of work without sacrificing quality.',
header: 'A barnstar for you!',
title: 'The Tireless Contributor
Barnstar',
- image: 'Tireless Contributor Barnstar
Hires.gif',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Tireless Contributor Barnstar
Hires.gif'
},
'writers': {
fields: [ 'message' ],
@@ -259,61 +233,125 @@
descr: 'The Writer\'s Barnstar may be
awarded to any user who has written a large number of articles or has
contributed a large number of edits.',
header: 'A barnstar for you!',
title: 'The Writer\'s Barnstar',
- image: 'Writers Barnstar Hires.png',
- email: 'Hello $7!\n\nI just awarded you
a barnstar.'
+ image: 'Writers Barnstar Hires.png'
}
},
icon: mw.config.get( 'wgExtensionAssetsPath' ) +
'/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-barnstar.png' //
icon for left-side menu
},
- 'beer': {
- name: 'Beer',
- fields: [ 'header', 'message' ],
- header: 'A beer for you!',
- text: '[[$3|left|150px]]\n$1\n\n~~~~\n<br style="clear:
both"/>', // custom text
- gallery: {
- imageList: [ 'Cruzcampo.jpg',
'Glass_of_la_trappe_quadrupel.jpg', 'Hefeweizen.jpg',
'Krušovice_Mušketýr_in_glass.JPG', 'NCI_Visuals_Food_Beer.jpg', 'PintJug.jpg' ],
- width: 145,
- number: 3
- },
- icon: mw.config.get( 'wgExtensionAssetsPath' ) +
'/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-beer.png' // icon
for left-side menu
- },
- 'food': {
- name: 'Food', // name of the type (appears in the types
menu)
- select: 'Select food:', // subtype select label
+ 'food/drink': {
+ name: 'Food and drink', // name of the type (appears in
the types menu)
+ select: 'Select food or drink item:', // subtype select
label
subtypes: { // some different subtypes
// note that when not using subtypes you should
use these subtype options
// for the top-level type
+ 'beer': {
+ text: '{| style="background-color: $5;
border: 1px solid $6;"\n\
+|style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
+|style="vertical-align: middle; padding: 3px;" | $1 ~~~~\n\
+|}', // custom text
+ fields: [ 'header', 'message' ], //
fields to ask for in form
+ option: 'Beer', // option listed in the
select list
+ header: 'A beer for you!', // header
that appears at the top of the talk page post (optional)
+ image: 'Export hell seidel
steiner.png', // image for the award
+ imageSize: '80px' // size to display
image
+ },
+ 'brownie': {
+ text: '{| style="background-color: $5;
border: 1px solid $6;"\n\
+|style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
+|style="vertical-align: middle; padding: 3px;" | $1 ~~~~\n\
+|}',
+ fields: [ 'header', 'message' ],
+ option: 'Brownie',
+ header: 'A brownie for you!',
+ image: 'Brownie transparent.png',
+ imageSize: '120px'
+ },
+ 'cheeseburger': {
+ text: '{| style="background-color: $5;
border: 1px solid $6;"\n\
+|style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
+|style="vertical-align: middle; padding: 3px;" | $1 ~~~~\n\
+|}',
+ fields: [ 'header', 'message' ],
+ option: 'Cheeseburger',
+ header: 'A cheeseburger for you!',
+ image: 'Cheeseburger.png',
+ imageSize: '120px'
+ },
+ 'coffee': {
+ text: '{| style="background-color: $5;
border: 1px solid $6;"\n\
+|style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
+|style="vertical-align: middle; padding: 3px;" | $1 ~~~~\n\
+|}',
+ fields: [ 'header', 'message' ],
+ option: 'Coffee',
+ header: 'A cup of coffee for you!',
+ image: 'A small cup of coffee.JPG',
+ imageSize: '120px'
+ },
'cookie': {
text: '{| style="background-color: $5;
border: 1px solid $6;"\n\
|style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
|style="vertical-align: middle; padding: 3px;" | $1 ~~~~\n\
|}',
- fields: [ 'header', 'message' ], //
fields to ask for in form
- option: 'Cookie', // option listed in
the select list
- header: 'A cookie for you!', // header
that appears at the top of the talk page post (optional)
- image: 'Choco_chip_cookie.png' // image
for the award
+ fields: [ 'header', 'message' ],
+ option: 'Cookie',
+ header: 'A cookie for you!',
+ image: 'Choco_chip_cookie.png',
+ imageSize: '120px'
+ },
+ 'cupcake': {
+ text: '{| style="background-color: $5;
border: 1px solid $6;"\n\
+|style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
+|style="vertical-align: middle; padding: 3px;" | $1 ~~~~\n\
+|}',
+ fields: [ 'header', 'message' ],
+ option: 'Cupcake',
+ header: 'A cupcake for you!',
+ image: 'Choco-Nut Bake with Meringue
Top cropped.jpg',
+ imageSize: '120px'
+ },
+ 'pie': {
+ text: '{| style="background-color: $5;
border: 1px solid $6;"\n\
+|style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
+|style="vertical-align: middle; padding: 3px;" | $1 ~~~~\n\
+|}',
+ fields: [ 'header', 'message' ],
+ option: 'Pie',
+ header: 'A pie for you!',
+ image: 'A very beautiful Nectarine
Pie.jpg',
+ imageSize: '120px'
+ },
+ 'tea': {
+ text: '{| style="background-color: $5;
border: 1px solid $6;"\n\
+|style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\
+|style="vertical-align: middle; padding: 3px;" | $1 ~~~~\n\
+|}',
+ fields: [ 'header', 'message' ],
+ option: 'Tea',
+ header: 'A cup of tea for you!',
+ image: 'Meissen-teacup pinkrose01.jpg',
+ imageSize: '120px'
}
},
- icon: mw.config.get( 'wgExtensionAssetsPath' ) +
'/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-cookie.png' // icon
for left-side menu
+ icon: mw.config.get( 'wgExtensionAssetsPath' ) +
'/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-beer.png'
},
'kitten': {
- name: 'Kitten',
+ name: 'Kittens',
fields: [ 'header', 'message' ],
header: 'A kitten for you!',
text: '[[$3|left|150px]]\n$1\n\n~~~~\n<br style="clear:
both"/>', // $3 is the image filename
gallery: {
- imageList: [ 'Cucciolo gatto Bibo.jpg','Kitten
(06) by Ron.jpg','Kitten-stare.jpg', 'Cat03.jpg', 'Kot_Leon.JPG', 'Greycat.jpg'
],
+ imageList: [ 'Cucciolo gatto Bibo.jpg', 'Kitten
(06) by Ron.jpg', 'Kitten-stare.jpg', 'Red Kitten 01.jpg', 'Kitten in a
helmet.jpg', 'Cute grey kitten.jpg' ],
width: 145,
number: 3
},
- icon: mw.config.get( 'wgExtensionAssetsPath' ) +
'/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-kitten.png' // icon
for left-side menu
+ icon: mw.config.get( 'wgExtensionAssetsPath' ) +
'/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-kitten.png'
},
// default type, nice to leave this one in place when adding
other types
'makeyourown': {
name: mw.msg( 'wikilove-type-makeyourown' ),
fields: [ 'header', 'title', 'image', 'message' ],
- imageSize: '150px',
- icon: mw.config.get( 'wgExtensionAssetsPath' ) +
'/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-create.png' // icon
for left-side menu
+ icon: mw.config.get( 'wgExtensionAssetsPath' ) +
'/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-create.png'
}
}
}; };
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs