模組:Taxobox
外观
local p = {}
function italicize( arg )
return '\'\'' .. arg .. '\'\''
end
function strip( arg )
return (arg:gsub('[\'%s]*(.-)[\'%s]*$', '%1'))
end
function p.species( frame )
local species = frame.args[1]
local species_zh = frame.args[2]
if species_zh == nil or species_zh == '' then
return italicize( strip( species ) )
else
return strip( species_zh ) .. ' ' .. italicize( strip( species ) )
end
end
return p