MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 93: Line 93:


             function getImageHtml(image) {
             function getImageHtml(image) {
                return '<a href="' + image.link + '" target="_blank"><img src="' + image.src + '" alt="' + image.alt + '"></a>';
    return '<img src="' + image.src + '" alt="' + image.alt + '">';
            }
}
 
function formatParagraphs(text) {
function formatParagraphs(text) {
    // Split the text into paragraphs and wrap each in a <span>
    // Split the text into paragraphs and wrap each in a <span>

Navigation menu