Meidogger oerlis:Thogo
Appearance
How?
I don't know, but it will definitely not work anymore in the summary message. Only pure wiki code, but not HTML, is possible there, due to a change in the software. But you can ask on IRC on #wikimedia-tech for assistance on this. --Thogo 17 jun 2009, 13.35 (CEST)
- Thank you. It's nothing we hadn't already noticed ourselves, but at least it's actual contact.
- The main problem four years ago was the need to know what div is guaranteed to be at the bottom of the edit field.
- At the time, I solved it this way because I could not find that information. I was hoping that by the time the developers warned us that things were going to change again, that information would be generally available. But if it is, I can't find it. Aliter 17 jun 2009, 21.03 (CEST)
if(wgAction == 'edit' || wgAction == 'submit') addOnloadHook(addSummaryButtons)
function addSummaryButtons() {
var frm = document.getElementById('editform');
var sum = document.getElementById('wpSummaryLabel');
if(!sum || !frm || !sum.firstChild) return
var chars = ['\u00E1','\u00E2','\u00E9','\u00EA','\u00ED','\u00EE','\u00F3','\u00F4','\u00FA','\u00FB'];
var div = document.createElement('div');
for(var i=0;i<chars.length;i++) {
var input = document.createElement('input');
input.setAttribute('type','button');
input.setAttribute('value',chars[i]);
input.onclick = function() { insertTags(this.value,'','') };
div.appendChild(input);
}
sum.insertBefore(div,sum.firstChild);
}
- This could be put into MediaWiki:Common.js/edit.js and something like
if(wgAction == 'edit' || wgAction == 'submit') importScript('MediaWiki:Common.js/edit.js')
- into MediaWiki:Common.js. But MediaWiki:Edittools I believe is guaranteed to be at the bottom of all edit pages now, and can do the same thing. Splarka 18 jun 2009, 01.46 (CEST)
- Thanks. That'll sure make things easier to reimplement. Aliter Continued on Splarka's talk page. Aliter