/*! * A set of simple tools for partial parsing and formatting of translatable * messages. * * @author Niklas Laxström * @license GPL-2.0-or-later */ ( function () { 'use strict'; mw.translate = mw.translate || {}; mw.translate = $.extend( mw.translate, { /** * Formats some common wikitext elements. * * @param {string} text Message text * @param {string} [key] Message key * @return {string} Formatted text in html */ formatMessageGently: function ( text, key ) { var externals, protocols = mw.config.get( 'wgUrlProtocols' ); // Try to keep simple. text = $( '