Content deleted Content added
change where category added; has to be before final semicolon which can be removed |
use single declaration of params; spans seem not to be working properly so hopefully this is the cause |
||
Line 99:
local body = "" -- the output string
local params -- for creating HTML spans
-- go through all possible fields in loop, adding them to the output
Line 106 ⟶ 107:
if (val ~= "") then
if (ISOlang[name]) then -- add language if needed
params["xml:lang"] = ISOlang[name]
val = mw.text.tag({name="span",attr=params, content=val})
Line 134 ⟶ 135:
if (c) then
if (c > "") then -- if there is treat it as Chinese
params["xml:lang"] = ISOlang["c"]
c = mw.text.tag({name="span",attr=params, content=c})
|