インフォボックス
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 カテゴリ:基礎情報ボックスのテンプレート .
Note that there also are some MediaWiki extensions for creating infoboxes; they can be found in カテゴリ:基礎情報ボックスの拡張機能 .
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
To add infoboxes to your own MediaWiki I recommend this article click here Just keep in mind a few things before following the tutorial:
- 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';
- 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
- 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' );
- 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.