Module:Card: Difference between revisions
From The Petit Planet Wiki
More actions
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 539: | Line 539: | ||
end | end | ||
local node_text = node_card:tag('span') | if lib.isNotEmpty(a.text) then | ||
local node_text = node_card:tag('span') | |||
:addClass('card-text') | |||
:addClass('card-font') | |||
:wikitext(a.text) | |||
if a.text_size then | |||
node_text:addClass('card-text-' .. a.text_size) | |||
end | |||
if a.multiline_text then | |||
node_text:addClass('multi-line') | |||
end | |||
end | end | ||