Quantum redactiones paginae "Disputatio MediaWiki:Common.js" differant

Content deleted Content added
mNo edit summary
fix formatting, the closing </pre> was missing (now replaced by syntaxhighlight, looks better)
Linea 6:
Examples: [https://it.wikipedia.org/w/index.php?search=Richard+II&title=Speciale%3ARicerca] [https://it.wikipedia.org/w/index.php?title=Speciale%3ARicerca&profile=default&search=Grace+Albee&fulltext=Search] [https://it.wikipedia.org/wiki/Salticoididae]. More information: [http://magnusmanske.de/wordpress/?p=108 Magnus blog].<br>
How to: just add the following line at the end of Common.js.
<syntaxhighlight lang="javascript">
<pre>
// Results from Wikidata
// [[File:Wdsearch_script_screenshot.png]]
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' || ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) {
importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript");
}</syntaxhighlight>
}
--[[m:User:Nemo_bis|Nemo]] <nowiki>~~~~~</nowiki> ([[w:en:MediaWiki talk:Wdsearch.js|comments, translations and last instructions]])
</div>
<!-- EdwardsBot 0661 -->
Linea 18:
:I've made this addition -- seems like a Very Good Idea, especially since we have a lot of pages with no equivalents on other wikipedias.
:Anyone who understands the matter better, pleasee check that I have done the right thing!
:What I can't do is to correct the formatting on this page. I must be missing something simple. <nowiki>~~~~</nowiki>
Revertere ad "Common.js".