Дополнительные действия
Gapp (обсуждение | вклад) Нет описания правки Метка: отменено |
Gapp (обсуждение | вклад) Отмена версии 144, сделанной Gapp (обсуждение) Метка: отмена |
||
| Строка 17: | Строка 17: | ||
:addImage( args.image, args.caption ) | :addImage( args.image, args.caption ) | ||
:addRow( 'Родился', args.birth ) | :addRow( 'Родился', args.birth ) | ||
:addRow( 'Место пребывания', args.place ) | :addRow( 'Место пребывания', args.place ) | ||
--:addHeader( 'A header between the data rows' ) | --:addHeader( 'A header between the data rows' ) | ||
:addRow( 'Род деятельности', args.job ) | :addRow( 'Род деятельности', args.job ) | ||
return retval | return retval | ||
end | end | ||
return p | return p | ||
Версия от 03:03, 8 января 2025
Для документации этого модуля может быть создана страница Модуль:InfoboxPerson/doc
local capiunto = require 'capiunto'
local p = {}
function p.main(frame)
local args = frame:getParent().args
local headerStyle
if args.headerstyle and args.headerstyle ~= '' then
headerStyle = string.format('background-color:%s;', args.headerstyle)
else
headerStyle = 'background-color:grey;'
end
local retval = capiunto.create( {
title = args.title,
headerStyle = headerStyle,
} )
:addImage( args.image, args.caption )
:addRow( 'Родился', args.birth )
:addRow( 'Место пребывания', args.place )
--:addHeader( 'A header between the data rows' )
:addRow( 'Род деятельности', args.job )
return retval
end
return p