Modul:Infobox: Unterschied zwischen den Versionen

Aus HTK Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
 
local p = {}
local capiunto = require 'capiunto'
local infobox = capiunto.create({title = 'Title of the Infobox'})
function p.run(frame)
infobox:addRow( 'A label', 'some data' )
local capiunto = require 'capiunto'
infobox:addHeader( 'A header between the data rows' )
return capiunto.create( {
infobox:addRow( 'Another label', 'more data' )
title = tostring(mw.title.getCurrentTitle()) ,
local html = tostring( infobox:getHtml() )
top = 'Above text',
topStyle = 'background:#cfc;',
bottom = 'Below text'
} )
:addRow(frame.args[1], frame.args[2])
:addRow(frame.args[3], frame.args[4])
end
return p

Version vom 1. Juni 2017, 11:14 Uhr

local p = {}

function p.run(frame) local capiunto = require 'capiunto' return capiunto.create( { title = tostring(mw.title.getCurrentTitle()) , top = 'Above text', topStyle = 'background:#cfc;', bottom = 'Below text' } ) :addRow(frame.args[1], frame.args[2]) :addRow(frame.args[3], frame.args[4]) end

return p