Modul:Infobox: Unterschied zwischen den Versionen

Aus HTK Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „local capiunto = require 'capiunto' capiunto.create( { title = 'Title of the Infobox' } ) :addRow( 'A label', 'some data' ) :addHeader( 'A header between the…“)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
local capiunto = require 'capiunto'
local capiunto = require 'capiunto'
capiunto.create( {
capiunto.create( { title = 'Title of the Infobox' } )
title = 'Title of the Infobox'
:addRow( 'A label', 'some data' )  
} )
:addHeader( 'A header between the data rows' )  
:addRow( 'A label', 'some data' )
:addRow( 'Another label', 'more data' )
:addHeader( 'A header between the data rows' )
local html = tostring( infobox:getHtml() )
:addRow( 'Another label', 'more data' )

Version vom 1. Juni 2017, 11:09 Uhr

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

local html = tostring( infobox:getHtml() )