

Mediawiki common.js install#
If there is in template code you'll also need to install the Scribunto extension. If it still doesn't work and you have messy pages of braces and if statements, then you need to install the ParserFunctions extension. Finally edit the templates to customize for your wiki. But remember, the changes in MediaWiki:Common.css and MediaWiki:Common.js pages will affect all the skins and in case if you make any error, it will disrupt all the pages. You might also need to copy styles in MediaWiki:Common.css page and Javascript in MediaWiki:Common.js before everything works. MediaWiki comes with two pages MediaWiki:Common.css and MediaWiki:Common.js, where you can add your own CSS or JavaScript codes. Maybe a better approach is to handle the issue in the js code until the issue is. If there are any red links repeat the above steps for these templates as well. However wasteful becomes a silly term when Dokuwiki or Mediawiki are so. It will tell you if the page doesn't exist if so, and you have the necessary user rights, just create it with the code you need to execute. Enter 'MediaWiki:Common.js' into the search box of your wiki. MediaWiki:Common.css contains CSS that is applied to every page in the wiki. The most important of these are MediaWiki:Common.css and MediaWiki:Common.js. Then import this into the destination wiki.Īfter it has been imported open the template for editing, check the list below the edit box "Pages transcluded onto the current version of this page:". MediaWiki:Common.js contains JavaScript that will be loaded for all users. Some pages in the MediaWiki namespace are used for something other than defining interface text: adding additional JavaScript and CSS to the wiki's pages.
To do this, add an import script instruction to MediaWiki:Common.js: importScriptMediaWiki:Example. //Mediawiki common.js full#
Check "Include templates" and check "Include only the current revision, not the full history", (or the file will be too big). And then instruct MediaWiki to import that script. Go to Wikipedia and copy the name of the template you're after, go to Special:Export and paste the name of the template in the big text box, e.g. Templates load other templates which load others in turn, etc. It's a PITA and unfortunately (unlike extensions or media files) there is no repository of canned templates.
