Módulo:CapiuntoTest: mudanças entre as edições
Sem resumo de edição Etiqueta: Reversão manual |
Sem resumo de edição |
||
| Linha 1: | Linha 1: | ||
local p = {} | local p = {} | ||
function p. | function p.run(frame) | ||
local capiunto = require 'capiunto' | |||
local args = {} | |||
for i = 1, #frame.args do | |||
args[i] = frame.args[i] | |||
end | |||
local table = capiunto.create( { | |||
title = tostring(mw.title.getCurrentTitle()), | |||
top = 'Above text', | |||
topStyle = 'background:#cfc;', | |||
bottom = 'Below text' | |||
} ) | |||
for i = 3, 2 + #args do | |||
table:addRow(args[i], args[i + 1]) | |||
end | |||
return table | |||
end | end | ||
return p | return p | ||
Edição das 22h10min de 6 de novembro de 2023
local p = {}
function p.run(frame)
local capiunto = require 'capiunto'
local args = {}
for i = 1, #frame.args do
args[i] = frame.args[i]
end
local table = capiunto.create( {
title = tostring(mw.title.getCurrentTitle()),
top = 'Above text',
topStyle = 'background:#cfc;',
bottom = 'Below text'
} )
for i = 3, 2 + #args do
table:addRow(args[i], args[i + 1])
end
return table
end
return p