Infobox
Appearance
From mediawiki.org
Languages:
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 instance, this article is recommended. Keep in mind a few things before following the tutorial:
- The Scribunto extension is already included in MediaWiki v1.39.3, so instead of following the article's step 1, add the following lines of code to LocalSettings.php.
wfLoadExtension( 'Scribunto' ); $wgScribuntoDefaultEngine = 'luastandalone';
- You might also need to change the lua file permissions. For such, go to /path/to/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/yourOS/lua and make sure the file has permissions set to 755.
- If the XML file that was exported from Wikipedia throws an error and you run MediaWiki 1.43 or older, download and install the extension TemplateStyles . Make sure to add it to LocalSettings.php as well:
wfLoadExtension( 'TemplateStyles' );
- That's it. Follow the rest of the steps 2, 3, 4 and 5 from the tutorial and everything will be working.
See also
[edit ]Retrieved from "https://www.mediawiki.org/w/index.php?title=Infobox&oldid=8557495"