Difference between revisions of "MediaWiki:Vector.js"
From www.PSALTIKI.info
|
|
| (7 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| − | /* Any JavaScript here will be loaded for users using the Vector skin */
| |
| − | /*
| |
| − | importScript("MediaWiki:Hotkeys.js");
| |
| − | hotkeys = {
| |
| − | 'b' : 'Brooks was here',
| |
| − | 'l' : '',
| |
| − | 's' : '§',
| |
| − | 't' : '{| class="wikitable"\n! header\n! header\n|-\n| data\n| data\n|}\n'
| |
| − | };
| |
| − | */
| |
| | | | |
| − | /**
| |
| − | * Extra buttons in toolbar
| |
| − | * @stats [[File:Krinkle_InsertWikiEditorButton.js]]
| |
| − | */
| |
| − | $.ajax({
| |
| − | url: '//localhost:8001/index.php?title=MediaWiki:InsertWikiEditorButton.js&action=raw&ctype=text/javascript',
| |
| − | dataType: 'script',
| |
| − | cache: true
| |
| − | }).done(function () {
| |
| − |
| |
| − | // Happy face
| |
| − | krInsertWikiEditorButton({
| |
| − | id: "mw-text-blue",
| |
| − | icon: "/images/BoutonsDefaut03.png",
| |
| − | label: 'make-text-blue',
| |
| − | insertBefore: '<font color="blue">',
| |
| − | insertAfter: '</font>',
| |
| − | sampleText: 'past your text'
| |
| − | });
| |
| − |
| |
| − | // RED
| |
| − | krInsertWikiEditorButton({
| |
| − | id: 'mw-text-red',
| |
| − | icon: '/images/redtext.png',
| |
| − | label: 'make-text-red',
| |
| − | insertBefore: '<font color="#de0000">',
| |
| − | insertAfter: '</font>',
| |
| − | sampleText: 'past your text'
| |
| − | });
| |
| − | // DISPLAY TITLE
| |
| − | krInsertWikiEditorButton({
| |
| − | id: 'mw-display-title',
| |
| − | icon: '/images/BoutonsDefaut03.png',
| |
| − | label: 'DISPLAY TITLE',
| |
| − | insertBefore: "{{DISPLAYTITLE:",
| |
| − | insertAfter: "}}",
| |
| − | sampleText: 'past your text'
| |
| − | });
| |
| − |
| |
| − | });
| |
Latest revision as of 18:43, 14 May 2018