Infobox/zh

信息框是一个用于提供页面基本信息的表格.

信息框通常以常规的模板来展现. 本wiki上使用的信息框模板都可以在中找到.

请注意，还有一些用于创建信息框的MediaWiki扩展；它们可以在中找到.

请注意，信息框也可以使用Wikidata:Infobox Tutorial中所提到的Wikibase和Scribunto扩展，从结构化数据中自动生成信息框.

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:


 * 1) Scribuntu 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.