Usuario:Desatonao/monobook.js
Apariencia
Nota: Después de guardar, debes refrescar la caché de tu navegador para ver los cambios. Internet Explorer: mantén presionada Ctrl mientras pulsas Actualizar. Firefox: mientras presionas Mayús pulsas el botón Actualizar, (o presiona Ctrl-Shift-R). Los usuarios de Google Chrome y Safari pueden simplemente pulsar el botón Recargar. Para más detalles e instrucciones acerca de otros exploradores, véase Ayuda:Cómo limpiar la caché.
//<pre>
//------------------------------------------------
// incluir conversor Wiki a HTML
document.write('<script type="text/javascript" src="/w/index.php?title=Usuario:Pilaf/wikicode.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
window.onload = Main;
function Main()
{
loadButtons();
LivePreviewInstall();
}
/*********** Botonera ***********/
function goSearch(i)
{
urls = new Array(
"http://en.wikipedia.org/wiki/",
"http://gl.wikipedia.org/wiki/",
"http://fr.wikipedia.org/wiki/",
"http://enciclopedia.us.es/index.php/",
"http://es.wiktionary.org/wiki/",
"http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_HTML=2&TIPO_BUS=2&LEMA=",
"http://google.com/search?q=",
"http://symploke.trujaman.org/index.php/",
"http://google.com/search?q="
);
var text = document.getElementById("searchInput");
window.open(urls[i] + escape(text.value));
}
function buttonCode(strCode)
{
return ' <input type="button" class="searchButton" '+strCode+' />';
}
function loadButtons()
{
var btSearch = '<br/>';
btSearch += buttonCode('onclick="goSearch(0)" value="w:en" title="Wikipedia en inglés"');
btSearch += buttonCode('onclick="goSearch(1)" value="w:gl" title="Wikipedia en galego"');
btSearch += buttonCode('onclick="goSearch(2)" value="w:fr" title="Wikipedia en francés"');
btSearch += buttonCode('onclick="goSearch(3)" value="EL" title="Enciclopedia Libre"');
btSearch += buttonCode('onclick="goSearch(4)" value="Wikcionario"');
btSearch += buttonCode('onclick="goSearch(5)" value="DRAE" title="Diccionario de la Real Academia Española"');
btSearch += buttonCode('onclick="goSearch(6)" value="EF" title="Enciclopedia Filosófica"');
btSearch += buttonCode('onclick="goSearch(7)" value="Google"');
var buttons = '<div>';
/* Botón de enlaces */
buttons += '<a class="mybutton" title="Zona de pruebas"href="http://es.wikipedia.org/wiki/Usuario:Desatonao/Enlaces">#</a>';
/* Botón del mapa de la ayuda */
buttons += '<a class="mybutton" title="Mapa de la ayuda" href="http://es.wikipedia.org/wiki/Wikipedia:Mapa" style="text-decoration:none;" >?</a>';
/* Botón Café */
buttons += '<a class="mybutton" title="café"href="http://es.wikipedia.org/wiki/Wikipedia:Caf%C3%A9"><font face="DF Diversities LET" size=3>d</font></a>';
/* Botón para buscar en Wikipedia a través de Google */
/*
buttons += '<a class="mybutton" title="Buscar en Wikipedia a través de Google" href="http://www.google.com/search?q=&btnG=B%FAsqueda+en+Google.com&domains=http://es.wikipedia.org&sitesearch=http://es.wikipedia.org&ie=iso-8859-1&oe=iso-8859-1">G</a>';
*/
/* Botón Bienvenidas */
buttons += '<a class="mybutton" title="Bienvenida" href="javascript:Bienvenida()" style="background:mediumaquamarine" ><code style="background:yellow"></code>Be</a>';
/* Botón WEI */
buttons += '<a class="mybutton" title="Wei..." href="javascript:ponWEI()" style="background:yellow" ><code style="background:yellow">:\)</code></a>';
/* Botón Esbozo */
buttons += '<a class="mybutton" title="Esbozo" href="javascript:Esbozo()" style="background:#87CEFF" ><code style="background:#87CEFF"></code>E</a>';
/* Botón Wikcionario */
buttons += '<a class="mybutton" title="Wikci" href="javascript:wikci()" style="background:#87CEFF" ><code style="background:#87CEFF"></code>D</a>';
/* Botón Wikificar */
buttons += '<a class="mybutton" title="Wikificar" href="javascript:wikificar()" style="background:#87CEFF" ><code style="background:#87CEFF"></code>Wk</a>';
/* Botón Categoría */
buttons += '<a class="mybutton" title="Categoría" href="javascript:Category()" style="background:#87CEFF" ><code style="background:yellow"></code>Ca</a>';
/* Botón Redirect */
buttons += '<a class="mybutton" title="Redirect" href="javascript:redirect()" style="background:#87CEFF" ><code style="background:#87CEFF"></code>Re</a>';
/* Botón Copy */
buttons += '<a class="mybutton" title="Plantilla:Copyvio" href="javascript:Copy()" style="background:Orange Red 1" >C</a>';
/* Botón Aviso borrar*/
buttons += '<a class="mybutton" title="Plantilla:Aviso" href="javascript:Aviso()" style="background:Orange Red 1" >aB</a>';
/* Botón Consulta borrar*/
buttons += '<a class="mybutton" title="Plantilla:Consulta" href="javascript:Consulta()" style="background:Orange Red 1" >cB</a>';
buttons += '</div>';
var toolbox = document.getElementById("p-navigation");
toolbox.innerHTML += '<h5>Mi botonera</h5>'+buttons;
var boxSearch = document.getElementById("searchform");
if (boxSearch)
boxSearch.innerHTML += btSearch;
}
function ponWEI()
{
insertTags('<code style="background:yellow">','</code>',';)');
}
function Bienvenida()
{
insertTags('{{bienvenido usuario}}\nSaludos, y que aprendas tanto de la wikipedia como nosotros esperamos aprender de ti. Si tienes alguna duda, pregunta, que aquí estamos para ayudar. --~~'+'~~','','');
}
function Copy()
{
insertTags('{'+'{Copyvio|1=dirección|2=~~'+'~~|3=día|4=mes}}','');
}
function Aviso()
{
insertTags('{'+'{Aviso borrar|','|~~'+'~~}}','motivo');
}
function Consulta()
{
insertTags('{'+'{subst:Consulta borrar|artículo|motivo|~~'+'~~|dia|mes}}','','');
}
function Esbozo()
{
insertTags('{'+'{esbozo de|','}}\n','Tema');
}
function Category()
{
insertTags('['+'[Categoría:',']]','Categoría');
}
function wikci()
{
insertTags('{'+'{wikcionario}}\n','');
}
function wikificar()
{
insertTags('{'+'{wikificar}}\n','');
}
function redirect()
{
insertTags('#REDIRECT:[[',']]','Título del enlace');}
/*********** Fin botonera ************/
//</pre>