![]() ![]() MediaWiki Help:Templates explains the process in more detail. 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. Namingedit See Manual:Interface/IDs and classesfor the documentation of common IDs and classes. The settings for MediaWiki core can be found in. Finally edit the templates to customize for your wiki. You can use the node module grunt-stylelintto lint your CSS or LESS MediaWiki and most extensions run it as part of continuous integration. You might also need to copy styles in MediaWiki:Common.css page and Javascript in MediaWiki:Common.js before everything works. If there are any red links repeat the above steps for these templates as well. 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:". One way to inspect the core CSS and JS files is to inspect a page with Web development tools while loading any Wikipedia page with debugtrue URL parameter (this will separate different CSS files, prevent minification and preserve comments). ![]() Check "Include templates" and check "Include only the current revision, not the full history", (or the file will be too big). MediaWiki comes with two pages MediaWiki:Common.css and MediaWiki:Common.js, where you can add your own CSS or JavaScript codes. 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. ![]()
0 Comments
Leave a Reply. |