<nowiki>
// EDITBAR EXPANSION - from [email protected]
window.AddMyOwnButton=function(tbar, caption, href, imgsrc) {
var ba = document.createElement('a');
ba.href = href;
var img = document.createElement('img');
img.src = imgsrc;
img.alt = caption;
ba.appendChild(img);
tbar.appendChild(ba);
}
window.myOwnEditButtons=function() {
var tbdiv=document.getElementById('toolbar');
if ( tbdiv ) {
tbdiv.appendChild(document.createTextNode(' '));
// ===,===
AddMyOwnButton(tbdiv, 'h3', 'javascript:insertTags(\'\\n===\',\'===\',\'\');', 'http://upload.wikimedia.org/wikipedia/en/e/e9/Button_headline2.png');
// ] also: http://upload.wikimedia.org/wikipedia/commons/b/bf/WP-icon.png
AddMyOwnButton(tbdiv, 'pedia', 'javascript:insertTags(\']\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_English_Wikipedia.png');
// <small>
AddMyOwnButton(tbdiv, '<small></small>', 'javascript:insertTags(\'<small>\',\'</small>\',\'\');', 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_small.png');
// <s>
AddMyOwnButton(tbdiv, '<s></s>', 'javascript:insertTags(\'<s>\',\'</s>\',\'\');', 'http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png');
// <code>
AddMyOwnButton(tbdiv, '<code></code>', 'javascript:insertTags(\'<code>\',\'</code>\',\'\');', 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_tt.png');
// <includeonly>
AddMyOwnButton(tbdiv, '<includeonly></includeonly>', 'javascript:insertTags(\'<includeonly>\',\'</includeonly>\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');
// <noinclude>
AddMyOwnButton(tbdiv, '<noinclude></noinclude>', 'javascript:insertTags(\'<noinclude>\',\'</noinclude>\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');
// ]
AddMyOwnButton(tbdiv, 'category', 'javascript:document.editform.wpSummary.value=\'\+cat\';insertTags(\']\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/1/11/Button_category.png');
// #redirect ]
AddMyOwnButton(tbdiv, 'redirect', 'javascript:document.editform.wpSummary.value=\'redirect\';insertTags(\'#\REDIRECT\]\',\'\');', 'http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png');
// '''Foumidable/monobook.js'''
AddMyOwnButton(tbdiv, 'pgnm', 'javascript:insertTags(\'\\\'\\\'\\\'{\{subst:PAGENAME}}\\\'\\\'\\\'\',\'\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');
}
}
window.myAddOnload=function(f) {
if (window.addEventListener) window.addEventListener("load", f, false);
else if (window.attachEvent) window.attachEvent("onload",f);
}
myAddOnload(myOwnEditButtons);
// </pre>
// Optimisation de la barre de navigation
function OptimizedNavigAdmin()
{
var a = document.getElementById("p-navigation");
if (a)
{
b = a.getElementsByTagName("ul");
if(b.length > 0)
{
b.innerHTML = b.innerHTML
+ '<br>'
+ '<li><span id="n-admin" title="Special:Newpages">'
+ '<a href="https://dictious.com/fr/Special:Newpages">Newpages</a>'
+ '</span></li>'
+ '<li><span id="n-cadmin" title="English RC">'
+ '<a href="https://dictious.com/fr/en:Special:Recentchanges">:en RC</a>'
+ '</span></li>'
+ '<li><span id="Wikipédia link" title="fr:Wikipedia talk">'
+ '<a href="https://dictious.com/fr/w:User talk:Thewayforward">:Page de discussion Wikipédia</a>'
+ '</span></li>'
+ '<li><span id="n-badmin" title="Wiktionnaire:Wikidémie">'
+ '<a href="https://dictious.com/fr/Wiktionnaire:Wikidémie">Wikidémie</a>'
+ '</span></li>'
+ '<li><span id="n-dadmin" title="My monobook">'
+ '<a href="https://dictious.com/fr/User:Foumidable/monobook.js">monobook</a>'
+ '</span></li>'
+ '<li><span id="wanted" title="wanted pages">'
+ '<a href="https://dictious.com/fr/Special:Wantedpages">wanted pages</a>'
+ '</span></li>'
+ '<li><span id="sandbox" title="Bac a sable">'
+ '<a href="https://dictious.com/fr/User:Foumidable/bac a sable">My bac of sable. Warning, fait gaffe, for no sand is found herein</a>'
+ '</span></li>'
}
}
}
addLoadEvent(OptimizedNavigAdmin);
</nowiki>