Jump to content
🗳️🖥️ The Wikimedia Foundation December 2024 Developer Satisfaction Survey closes on the 2025-01-03. This survey helps us measure developer satisfaction, and prioritize work on tools and platforms for our technical contributors.

Infobox

From mediawiki.org

An infobox is a table used to provide standardized information across pages.

Infoboxes are traditionally implemented using regular templates. The infobox templates used on this wiki can be found in Category:Infobox templates .

Note that there also are some MediaWiki extensions for creating infoboxes; they can be found in Category:Infobox extensions .

Note that infoboxes can also be generated automatically from structured data using the Wikibase and Scribunto extensions as described in Wikidata:Infobox Tutorial.

Add Infoboxes in MediaWiki 1.39

[edit]

To add infoboxes to your own MediaWiki I recommend this article click here Just keep in mind a few things before following the tutorial:

  1. Scribunto extension is already included in MediaWiki v1.39.3 So instead of following the article's step 1 just add the following lines of code to LocalSettings.php.
    wfLoadExtension( 'Scribunto' );  $wgScribuntoDefaultEngine = 'luastandalone';
    
  2. You might also need to change the lua file permissions, for that just go to /path/to/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/yourOS/lua and make sure the file has permissions set to 755
  3. Importing the xml file that was exported from wikipedia threw an error that was fixed by downloading and installing the extension TemplateStyles . Don't forget to add it to LocalSettings.php as well.
    wfLoadExtension( 'TemplateStyles' );
    
  4. That's it. I followed the rest of the steps 2, 3, 4 and 5 from the tutorial and was able to get everything running.

See also

[edit]