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 end

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

return p