RECOUP/site/MediaWiki/Common.js: Difference between revisions

From OER in Education
< RECOUP‎ | site
mNo edit summary
mNo edit summary
Line 17: Line 17:
addInsertButton("/wiki/skins/common/images/button_bold.png", "underline", "<u>","</u>","underline");
addInsertButton("/wiki/skins/common/images/button_bold.png", "underline", "<u>","</u>","underline");


addInsertButton("/wiki/skins/common/images/button_bold.png", "comment", "{{comment
addInsertButton("/wiki/skins/common/images/button_bold.png", "comment", "{{comment|text=","}}","comment");
|text=","
}}","comment");
<noinclude>{{RECOUP_footer|MediaWiki:Common.js}}</noinclude><noinclude>[[Category:RECOUP]]</noinclude>
<noinclude>{{RECOUP_footer|MediaWiki:Common.js}}</noinclude><noinclude>[[Category:RECOUP]]</noinclude>

Revision as of 20:23, 23 August 2008

/* 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("/wiki/skins/common/images/button_bold.png", "strike out", "","","strike out"); addInsertButton("/wiki/skins/common/images/button_bold.png", "underline", "","","underline");

addInsertButton("/wiki/skins/common/images/button_bold.png", "comment", "Template:Comment","comment");


Cc-by-nc-sa-narrow.png 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)