Difference between revisions 239068 and 239419 on ptwikibooks/** * TemplateScript * Adds a menu of configurable templates and scripts to the sidebar * @author: [[m:user:Pathoschild]] ([[meta:User:Pathoschild/Scripts/TemplateScript]]) * @author: [[User:Helder.wiki]] (this configuration file) * @tracking: [[Special:GlobalUsage/User:Helder.wiki/Tools/TemplateScript.js]] ([[File:User:Helder.wiki/Tools/TemplateScript.js]]) */ /*global jQuery, mediaWiki, LanguageConverter, pathoschild */ (contracted; show full) regex( context, [{ find: reHack, replace: '<$1math>' }], reason[mw.config.get('wgContentLanguage')] || reason.en ); // coloca a pontuação que vem depois de fórmulas dentro das tags <math> list = [{ find: /<\/math> *([\.,;: !\?]|!(?!!)) */ig, replace: '$1</math> ' },{ find: /\\sin/mig, replace: '\\mathrm{sen}\\,' }]; regex( context, list, 'format. <math> e pontuação' ); } (contracted; show full) script: usingRegex }); } } $.getScript( '//meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/TemplateScript/dev.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400', loadMyRegexTools ); }( mediaWiki, jQuery ) ); All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://pt.wikibooks.org/w/index.php?diff=prev&oldid=239419.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|