Module:Term/Synonym

local p = {}

local utilsCargo = require("Module:UtilsCargo")

function p.Main(frame) local redirectTarget = mw.title.getCurrentTitle.redirectTarget if not redirectTarget then return end local storedTerms = utilsCargo.query("Terminologies", "games, term, plural", {		where = utilsCargo.allOf({ _pageName = redirectTarget.fullText })	})	for i, storedTerm in ipairs(storedTerms) do		frame:expandTemplate({			title = "Term/Store",			args = {				storedTerm.term or "",				storedTerm.plural or "",				storedTerm.games or "",			}		}) end return "This page serves as a redirect for a synonymous term." end

p.Templates = { ["Synonym"] = {} }

return p