Module:Nav

--

local p = {}

-- Mounts

local mountParameters = { ["main"] = " ", ["bear"] = " ", ["big cat"] = " ", ["camel"] = " ", ["dwarven spider"] = " ", ["guar"] = " ", ["horse"] = " ", ["kagouti"] = " ", ["nix-ox"] = " ", ["senche"] = " ", ["wolf"] = " ", ["other"] = " ", }

function p.mounts(frame) local result = '' for mnt in mw.text.gsplit(string.lower(frame.args[1]), ',') do		if mountParameters[mnt] then -- skip invalid values result = result .. mountParameters[mnt] .. ' '		end end return string.sub(result, 1, -8) -- remove last whitespace end

return p

--