Modul:Infobox: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
local capiunto = require 'capiunto' | local capiunto = require 'capiunto' | ||
local infobox = capiunto.create({title = 'Title of the Infobox'}) | |||
local infobox = capiunto.create( { title = 'Title of the Infobox' } ) | infobox:addRow( 'A label', 'some data' ) | ||
infobox:addHeader( 'A header between the data rows' ) | |||
:addRow( 'A label', 'some data' ) | infobox:addRow( 'Another label', 'more data' ) | ||
:addHeader( 'A header between the data rows' ) | |||
:addRow( 'Another label', 'more data' ) | |||
local html = tostring( infobox:getHtml() ) | local html = tostring( infobox:getHtml() ) |
Version vom 1. Juni 2017, 11:11 Uhr
local capiunto = require 'capiunto' local infobox = capiunto.create({title = 'Title of the Infobox'}) infobox:addRow( 'A label', 'some data' ) infobox:addHeader( 'A header between the data rows' ) infobox:addRow( 'Another label', 'more data' ) local html = tostring( infobox:getHtml() )