扩展: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 44% complete.

Other languages:
Deutsch • ‎English • ‎català • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎sicilianu • ‎suomi • ‎русский • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
Capiunto
发布状态: 稳定版
描述 为Scribunto提供基本信息框功能。
作者 Marius Hoch (Hoo mantalk)
MediaWiki 1.25+
数据更新
许可协议 GNU General Public License 2.0 or later
下载
使用的钩子
ScribuntoExternalLibraries
ScribuntoExternalLibraryPaths
翻译Capiunto扩展如果在translatewiki.net可用
检查使用和版本矩阵。
问题 开放的工作 · 报告错误

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' )

条件

Capiunto依赖于Scribunto扩展。

安装

  • 下载文件,并将其放置在您extensions/文件夹中的Capiunto目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    require_once "$IP/extensions/Capiunto/Capiunto.php";
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

参见