« Module:Test » : différence entre les versions

De ESCR
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 3 : Ligne 3 :
function p.test(f)
function p.test(f)


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


return p
return p

Version du 28 septembre 2020 à 15:39

La documentation pour ce module peut être créée à Module:Test/doc

local p = {}

function p.test(f)

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

return p