Module:Card: Difference between revisions
Revert card-text removal on mini cards Tag: Undo |
Fixed nil value error for field 'text' |
||
| Line 487: | Line 487: | ||
if a.mini then | if a.mini then | ||
if a.text | if lib.isNotEmpty(a.text) and tonumber((a.text:gsub(',', ''):gsub('[kKmMbBtT%%]$', ''))) ~= nil then | ||
node_card:tag('span'):addClass('card-text'):wikitext(a.text) | node_card:tag('span'):addClass('card-text'):wikitext(a.text) | ||
end | end | ||