Changes

Jump to navigation Jump to search
→‎Infoboxes (3/16/2016): starting to set up infoboxes
== Infoboxes (3/16/2016) ==
I decide to follow the instructions on [http://trog.qgl.org/20140923/setting-up-infobox-templates-in-mediawiki-v1-23/ this post]. Let's see how it goes.
Step 1:
 
Download and install the [https://www.mediawiki.org/wiki/Extension:Scribunto Scribunto extension].
 
Add these two lines to LocalSettings.php:
require_once("$IP/extensions/Scribunto/Scribunto.php");
$wgScribuntoDefaultEngine = 'luastandalone';
 
And set execute permissions for Lua binaries in the extension:
 
$ chmod a+x /var/lib/mediawiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua_5_1_5_linux_64_generic/lua
 
In addition, check that the PCRE version is at least 8.10 (preferable at least 8.33), PHP's mbstring extension is enabled, and PHP's proc_open function is not disabled using a phpinfo page.
 
Step 2:
 
Copy Wikipedia's [https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&action=edit Common.css] stylesheet into the wiki's Common.css stylesheet.
 
Step 3:
 
Export the Infobox template from Wikipedia.
== To-do list ==
Anonymous user

Navigation menu