Module:rad-pronunciation: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 213: Line 213:
table.insert(args_temp, 1, "rad")
table.insert(args_temp, 1, "rad")
args_temp["nopre"] = 1
args_temp["nopre"] = 1
IPA_show = IPA_show .. "\n** " .. frame:expandTemplate{ title = "accent", args = { "rad", "hjádvanþs" } } .. " " .. frame:expandTemplate{ title = "IPA", args = args_temp }
IPA_show = IPA_show .. "\n** " .. frame:expandTemplate{ title = "accent", args = { "rad", "hjádvanþs" } } .. " " .. frame:expandTemplate{ title = "IPA", args = args_temp } .. "[[Category:Radestrian terms with hjádvanþs dialect pronunciation]]"
end
end
for r, _ in pairs(register) do
for r, _ in pairs(register) do
Line 220: Line 220:
table.insert(args_temp, 1, "rad")
table.insert(args_temp, 1, "rad")
args_temp["nopre"] = 1
args_temp["nopre"] = 1
IPA_show = IPA_show .. "\n** " .. frame:expandTemplate{ title = "accent", args = { "rad", "hjádvanþs", r } } .. " " .. frame:expandTemplate{ title = "IPA", args = args_temp }
IPA_show = IPA_show .. "\n** " .. frame:expandTemplate{ title = "accent", args = { "rad", "hjádvanþs", r } } .. " " .. frame:expandTemplate{ title = "IPA", args = args_temp } .. "[[Category:Radestrian terms with hjádvanþs dialect pronunciation]]"
end
end
end
end
Line 232: Line 232:
table.insert(args_temp, 1, "rad")
table.insert(args_temp, 1, "rad")
args_temp["nopre"] = 1
args_temp["nopre"] = 1
IPA_show = IPA_show .. "\n** " .. frame:expandTemplate{ title = "accent", args = { "rad", d } } .. " " .. frame:expandTemplate{ title = "IPA", args = args_temp }
IPA_show = IPA_show .. "\n** " .. frame:expandTemplate{ title = "accent", args = { "rad", d } } .. " " .. frame:expandTemplate{ title = "IPA", args = args_temp } .. "[[Category:Radestrian terms with " .. d .. " dialect pronunciation]]"
end
end
Line 240: Line 240:
table.insert(args_temp, 1, "rad")
table.insert(args_temp, 1, "rad")
args_temp["nopre"] = 1
args_temp["nopre"] = 1
IPA_show = IPA_show .. "\n** " .. frame:expandTemplate{ title = "accent", args = { "rad", d, r } } .. " " .. frame:expandTemplate{ title = "IPA", args = args_temp }
IPA_show = IPA_show .. "\n** " .. frame:expandTemplate{ title = "accent", args = { "rad", d, r } } .. " " .. frame:expandTemplate{ title = "IPA", args = args_temp } .. "[[Category:Radestrian terms with " .. d .. " dialect pronunciation]]"
end
end
end
end
end
end
if mw.ustring.match(IPA_show, ", /") then IPA_show = IPA_show ("Radestrian terms with multiple pronunciations") end
local homophones_show = ""
local homophones_show = ""
Line 253: Line 255:
homophones_show = homophones_show .. ", " .. m_links.full_link{ term = item, language = m_languages.get_by_code("rad") }
homophones_show = homophones_show .. ", " .. m_links.full_link{ term = item, language = m_languages.get_by_code("rad") }
end
end
homophones_show = mw.ustring.gsub(homophones_show, "(%:%,)", ":")
homophones_show = mw.ustring.gsub(homophones_show, "(%:%,)", ":") .. "[[Category:Radestrian homophones]]"
end
end