Module:TaxonList: Difference between revisions

Content deleted Content added
need to trim, especially leading space
allow bold as well as italic and linked
Line 51:
function p.main(frame)
local italic = frame.args['italic'] == 'yes'
local bold = frame.args['bold'] == 'yes'
local linked = frame.args['linked'] == 'yes'
if bold then linked = false end -- must not have bold and wikilinked
local incomplete = frame.args['incomplete'] == 'yes'
local taxonArgs = frame:getParent().args
Line 74 ⟶ 76:
if italic then
taxonName = '<i>' .. taxonName .. '</i>'
end
if bold then
taxonName = '<b>' .. taxonName .. '</b>'
end
result = result .. '<li>' .. dagger .. taxonName