"ഘടകം:Zh" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
try another thing; construct params in one go |
Change var so it doesn't conflict with field in param block, hopefully to fix spans |
||
വരി 102:
-- go through all possible fields in loop, adding them to the output
for i,
if (args[
local val = args[
if (val ~= "") then
if (ISOlang[
params = {["lang"] = ISOlang[
val = mw.text.tag({name="span",attr=params, content=val})
elseif (
val = "''" .. val .. "''"
elseif (
val = '"' .. val .. '"'
end
-- if has associated category add it
if (cats[
val = val .. cats[
end
-- build this entry
if (no) or name == "l" then
body = body .. labels[
else
body = body .. "[[" .. wlinks[
end
end
|