Module:Card: Difference between revisions
From The Petit Planet Wiki
More actions
ReisuDesign (talk | contribs) No edit summary |
Fixed nil value error for field 'text' |
||
| (One intermediate revision by the same user not shown) | |||
| Line 487: | Line 487: | ||
if a.mini then | if a.mini then | ||
if lib.isNotEmpty(a.text) and tonumber((a.text:gsub(',', ''):gsub('[kKmMbBtT%%]$', ''))) ~= nil then | |||
node_card:tag('span'):addClass('card-text'):wikitext(a.text) | |||
end | |||
if lib.isNotEmpty(a.icon_right) then | if lib.isNotEmpty(a.icon_right) then | ||
node_card:tag('span') | node_card:tag('span') | ||