Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 18:09, 28 September 2024 by PenguinEncounter (talk | contribs) (Punctation)
  • 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}