Module:R:it:Treccani

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

This module implements {{R:it:Treccani}}.


local export = {}

function export.create(frame) 
	 local params = {
		 = {default = mw.title.getCurrentTitle().text},
		 = {},
		 = {},
		 = {},
		 = {type = "boolean"}
	}
	local args = require("Module:parameters").process(frame:getParent().args, params)

	local strippedTerm = mw.ustring.toNFD(args)
			:gsub("", "")  -- strip combining diacritical marks, U+0300-U+036F
			:gsub(' ', '-')
	local encodedTerm = mw.uri.encode(strippedTerm) 
	local sense = args or ''
	
	if sense ~= '' then
		encodedTerm = encodedTerm .. sense
	end
	local title = (args or args):gsub('_', ' ')
	local type = args and "enciclopedia" or "vocabolario"
    
    local link = "[https://www.treccani.it/" .. type .. "/" .. encodedTerm .. " " .. title
    	.. (sense and ('<sup>' .. sense .. '</sup>') or '')
    	.. "] " ..
    	"in Treccani.it – ''" .. mw.getLanguage("it"):ucfirst(type)  .. " Treccani on line'', Istituto dell'Enciclopedia Italiana" 

	return link
end

return export