Estensione:Capiunto

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:Capiunto and the translation is 28% complete.

Other languages:
Deutsch • ‎English • ‎català • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎sicilianu • ‎suomi • ‎русский • ‎中文 • ‎日本語
Manuale sulle Estensioni MediaWiki
OOjs UI icon advanced.svg
Capiunto
Stato della release: stabile
Descrizione Provides basic Infobox functionality for Scribunto.
Autore(i) Marius Hoch (Hoo mantalk)
MediaWiki 1.25+
Cambi della base di dati No
Licenza GNU General Public License 2.0 or later
Scaricare
Hook usati
ScribuntoExternalLibraries
ScribuntoExternalLibraryPaths
Traducete l'estensione Capiunto se è disponibile su translatewiki.net
Verificare uso e versione della matrice.
Problemi Compiti aperti · Riportare un bug

The Capiunto (Latin: "they shall contain") extension provides a basic Infobox functionality for Scribunto.

An overview of the Lua methods which Capiunto provides can be found at /Infobox.

Capiunto provides flexible Infobox functionality for Scribunto and generates HTML for Infobox features such as headers and rows.

Capiunto is designed for clean and modern Infoboxes. Using Lua as a scripting language for Infobox templates, it was developed to make Infoboxes:

  • clean and clutter-free
  • usable across different language versions
  • driven by data from Wikidata
  • easy to maintain and extend

With Capiunto Lua code to create a basic Infobox might look like this:

local capiunto = require 'capiunto'
capiunto.create( {
	title = 'Title of the Infobox'
} )
:addRow( 'A label', 'some data' )
:addHeader( 'A header between the data rows' )
:addRow( 'Another label', 'more data' )

Requisiti

Capiunto depends on the Scribunto extension.

Installazione

  • Download and place the file(s) in a directory called Capiunto in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Capiunto/Capiunto.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Vedi anche