Module:R:Mindat

Hello, you have come here looking for the meaning of the word Module:R:Mindat. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:R:Mindat, but we will also tell you about its etymology, its characteristics and you will know how to say Module:R:Mindat in singular and plural. Everything you need to know about the word Module:R:Mindat you have here. The definition of the word Module:R:Mindat will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:R:Mindat, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local export = {}

local function initial_capital(x)
	return x:gsub("^%l", string.upper)
end

local function space_to_underscore(x)
	return x:gsub(" ", "_")
end

function export.index(frame)
	-- Data module causes a Lua memory error just for this template.
	local title = mw.title.getCurrentTitle().text
	if title == "gold" then
		return nil
	end
	
	local args, mensa = frame:getParent().args, mw.loadData("Module:R:Mindat/data")
	local w = args or title
	local wU = args or initial_capital(title)
	local glossary = args
	
	local function link_main(w, wU)
		return mensa and " or "") .. ".html " .. w .."]" or ""
	end
	
	local function link_glossary(w,wU)
		return ""
	end
	
	return glossary and link_glossary(w,wU) or link_main(w,wU)
end		
		
return export