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