RECOUP/site/MediaWiki/Common.js: Difference between revisions
mNo edit summary |
m (1 revision: Import and update from manual.recoup.educ.cam.ac.uk, CC BY-NC-SA - RECOUP) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{RECOUP_header|MediaWiki:Common.js}}</noinclude>/* Any JavaScript here will be loaded for all users on every page load. */ | <noinclude>{{RECOUP_header|MediaWiki:Common.js}}</noinclude> | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | |||
Line 14: | Line 15: | ||
} | } | ||
addInsertButton("/ | addInsertButton("/resources/strike.png", "strike through", "<s>","</s>","strike through"); | ||
addInsertButton("/ | addInsertButton("/resources/underline.png", "underline", "<u>","</u>","underline"); | ||
addInsertButton("/resources/box.png", "box", "{"+"{box\n|text=","\n}}","box"); | |||
addInsertButton("/ | addInsertButton("/resources/comment.png", "comment", "{"+"{comment\n|text=","\n}}","comment"); | ||
|text="," | |||
<noinclude>{{RECOUP_footer|MediaWiki:Common.js}}</noinclude><noinclude>[[Category:RECOUP]]</noinclude> | <noinclude>{{RECOUP_footer|MediaWiki:Common.js}}</noinclude><noinclude>[[Category:RECOUP]]</noinclude> |
Latest revision as of 12:15, 5 February 2015
/* Any JavaScript here will be loaded for all users on every page load. */
//Add Button to Button bar above edit field
//Cf. http://www.mediawiki.org/wiki/MediaWiki:Common.js
function addInsertButton(img, speedTip, tagOpen, tagClose, sampleText){
mwCustomEditButtons[mwCustomEditButtons.length] = {'imageFile': img, 'speedTip': speedTip, 'tagOpen': tagOpen, 'tagClose': tagClose, 'sampleText': sampleText};
}
addInsertButton("/resources/strike.png", "strike through", "","","strike through");
addInsertButton("/resources/underline.png", "underline", "","","underline");
addInsertButton("/resources/box.png", "box", "{"+"{box\n|text=","\n}}","box");
addInsertButton("/resources/comment.png", "comment", "{"+"{comment\n|text=","\n}}","comment");
Singal, N., and Jeffery, R. (2008). Qualitative Research Skills Workshop: A Facilitator's Reference Manual, http://oer.educ.cam.ac.uk/wiki/RECOUP, Cambridge: RECOUP (Research Consortium on Educational Outcomes and Poverty, http://recoup.educ.cam.ac.uk/). CC BY-NC-SA 4.0. (original page)