Diferencia entre revisiones de «MediaWiki:Common.js»

Ir a la navegación Ir a la búsqueda
m (for now)
m (+editsection maker)
el.className = 'oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-buttonInputWidget'
// return element for insertion
return el
}
 
// create a link that looks like .editsection
function make_editsection_link(url) {
// generate an edit link
const ln = make_a(url, 'edit')
// wrap the link in an '.editsection' link floated right
const el = document.createElement('span')
el.className = 'mw-editsection'
el.style.float = 'right'
// push [] around the A element into the span
el.appendChild(document.createTextNode('['))
el.appendChild(ln)
el.appendChild(document.createTextNode(']'))
return el
}