Zelda Wiki

OoT Navi.png

Hey! Listen!

This wiki contains spoilers! Read at your own risk!

READ MORE

Zelda Wiki
Advertisement
Zelda Wiki
10,152
pages

Lua error in package.lua at line 80: module 'Module:Term/Fetch' not found.


local p = {}
local term_fetch = require("Module:Term/Fetch")
local formatting = require("Module:Formatting")

function p.Main( frame )
	local args = frame:getParent().args
	local term = term_fetch.fetchTerm(args[1], args[2])
	
	local returnedValue
	if args[3] == "link" then
		local gameSub = formatting.AbbToGame(args[1], true)
		returnedValue = returnedValue .. "[[" .. term["term"]
		if gameSub ~= "Unknown" then
			returnedValue = returnedValue .. "#" .. gameSub
		end
		returnedValue = returnedValue .. "|"
	end
	
	if args[4] == "plural" then
		returnedValue = returnedValue .. term["plural"]
	else
		returnedValue = returnedValue .. term["term"]
	end
	
	if args[3] == "link" then
		returnedValue = returnedValue .. "]]"
	end
	return term["term"]
end

return p