Модуль:Карточка: различия между версиями

мНет описания правки
мНет описания правки
Строка 1: Строка 1:
-- DRUID Infobox.
-- DRUID Infobox.
-- source: https://support.wiki.gg/wiki/Module:Infobox
-- source: https://support.wiki.gg/wiki/Module:Infobox
-- license: CC BY-SA 4.0
-- license: CC BY-SA 4.0


-- version 0.1.7
-- version 0.1.7
Строка 152: Строка 152:
:addClass(args.class) -- warning: class can be nil, don't concat anything
:addClass(args.class) -- warning: class can be nil, don't concat anything
:attr('id', args.id or ('druid-container-' .. h.counter))
:attr('id', args.id or ('druid-container-' .. h.counter))
if args.style then
out:cssText(args.style)
end
h.runHook('onMakeOutputStart', out, args)
h.runHook('onMakeOutputStart', out, args)
if args.kind then out:addClass('druid-container-' .. h.escape(args.kind)) end
if args.kind then out:addClass('druid-container-' .. h.escape(args.kind)) end