Zelda Wiki

OoT Navi.png

Hey! Listen!

This wiki contains spoilers! Read at your own risk!

READ MORE

Zelda Wiki
Zelda Wiki
10,152
pages
Line 26: Line 26:
 
returnedValue = returnedValue .. "]]"
 
returnedValue = returnedValue .. "]]"
 
end
 
end
return term["term"]
+
return returnedValue
 
end
 
end
   

Revision as of 01:33, 12 April 2019

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 returnedValue
end

return p