Changes

Jump to navigation Jump to search
→‎Infoboxes (3/16/2016): added detailed instructions for infobox setup
Download and install the [https://www.mediawiki.org/wiki/Extension:Scribunto Scribunto extension].
 
cd ~/Downloads
$ wget https://extdist.wmflabs.org/dist/extensions/Scribunto-REL1_26-9fd4e64.tar.gz
$ tar -xzvf Scribunto-REL1_26-9fd4e64.tar.gz
$ cd /var/lib/mediawiki/extensions
$ cp -r ~/Downloads/Scribunto ./Scribunto
Add these two lines to LocalSettings.php:
Step 5:
Test your Infobox templateby creating a new page on the mediawiki and using the Infobox template. I used the following code to test:  {{Infobox |title = An amazing Infobox |header1 = It works! |label2 = Configured by |data2 = trog |label3 = Web |data3 = http://trog.qgl.org/20140923/setting-up-infobox-templates-in-mediawiki-v1-23/ }} Debugging: I seem to have the template functionality working, but it's not styled properly. So let's try exporting and importing Wikipedia's Common.css stylesheet instead of just copying and pasting. And let's also try exporting and importing Wikipedia's Common.js script into the wiki.
Wait, I fixed it by just removing the custom CSS code that I had from trying to change the font-face. If those two things conflict, we may have issues down the line...
Anonymous user

Navigation menu