More actions
No edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
table.insert(final, "[[" .. v .. "]]") | table.insert(final, "[[" .. v .. "]]") | ||
end | end | ||
return "Not to be confused with " .. table.concat(final, ", ") | return "{{Hatnote|Not to be confused with " .. table.concat(final, ", ") .. "}}" | ||
end | end | ||
return {["hatnote"] = hatnoteDistinguish} | return {["hatnote"] = hatnoteDistinguish} |
Revision as of 17:28, 28 September 2024
- {{Hatnote|Not to be confused with }}
- {{Hatnote|Not to be confused with }}
- {{Hatnote|Not to be confused with }}
- {{Hatnote|Not to be confused with }}
function hatnoteDistinguish(frame)
local args = frame.args
local final = {}
for k, v in ipairs(args) do
if k == #args then
table.insert(final, "or")
end
table.insert(final, "[[" .. v .. "]]")
end
return "{{Hatnote|Not to be confused with " .. table.concat(final, ", ") .. "}}"
end
return {["hatnote"] = hatnoteDistinguish}