Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Card: Difference between revisions

From The Petit Planet Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 34: Line 34:
label='Card Text',
label='Card Text',
description='The text below the image.',
description='The text below the image.',
default='—',
displayDefault='"—" for most items; same as Image Name for characters',
example={'100', 'Lv. 1', 'Set'},
example={'100', 'Lv. 1', 'Set'},
},
},
Line 489: Line 487:
if a.mini then
if a.mini then
if 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')