Caixa de Informação
Appearance
Uma caixa de informação é uma tabela utilizada para proporcionar informação padronizada através das páginas.
As caixas de informação são implementadas tradicionalmente utilizando os modelos regulares. The infobox templates used on this wiki can be found in Categoria: Modelos de caixa de informação.
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.
Adicionar Caixas de Informação no MediaWiki 1.39
To add infoboxes to your own MediaWiki this article here is recommended. 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.