Jump to content
MediaWiki

Infotaula

From mediawiki.org
This page is a translated version of the page Infobox and the translation is 43% complete.

Una infotaula és una taula que s'utilitza per proporcionar informació estandarditzada entre pàgines.

Les infotaules s'implementen tradicionalment mitjançant plantilles normals. Les plantilles de les infotaules utilitzades en aquest wiki es poden trobar a Categoria:Plantilles d'infotaules .

Tingueu en compte que també hi ha algunes extensions de MediaWiki per crear infotaules; es poden trobar a Category:Infobox extensions .

Tingueu en compte que les infotaules també es poden generar automàticament a partir de dades estructurades mitjançant les extensions Wikibase i Scribunto, tal com es descriu a Wikidata:Tutorial d'infotaules.

Add Infoboxes in MediaWiki 1.39

To add infoboxes to your own MediaWiki instance, this article is recommended. Keep in mind a few things before following the tutorial:

  1. 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';
    
  2. 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.
  3. 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' );
    
  4. That's it. Follow the rest of the steps 2, 3, 4 and 5 from the tutorial and everything will be working.


See also

AltStyle によって変換されたページ (->オリジナル) /