"ഘടകം:Zh" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

Content deleted Content added
Move where categories are added, to work around newline bug
again change where cats added to try and work around bug
വരി 105:
if (args[part]) then
local val = args[part]
local cat = ""
if (val ~= "") then
-- if has associated category add it
if (cats[part]) then
valcat = val .. cats[part]
end
if (ISOlang[part]) then -- add language if needed
Line 120 ⟶ 121:
-- build this entry
if (no) or part == "l" then
body = body .. labels[part] .. cat .. ": " .. val .. "; "
else
body = body .. "[[" .. wlinks[part] .. "|" .. labels[part] .. "]]" .. cat ..": " .. val .. "; "
end
end
Line 136 ⟶ 137:
params = {["lang"] = ISOlang["c"], ["xml:lang"] = ISOlang["c"]}
c = mw.text.tag({name="span",attr=params, content=c})
return "[[" .. wlinks["c"] .. "|" .. labels["c"] .. "]]: " .. cats["c"] .. cats["c: "] .. c
end
end
"https://ml.wikipedia.org/wiki/ഘടകം:Zh" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്