Module:R:Autenrieth

Hello, you have come here looking for the meaning of the word Module:R:Autenrieth. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:R:Autenrieth, but we will also tell you about its etymology, its characteristics and you will know how to say Module:R:Autenrieth in singular and plural. Everything you need to know about the word Module:R:Autenrieth you have here. The definition of the word Module:R:Autenrieth will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:R:Autenrieth, 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 collisions = require("Module:R:Perseus/collision-data")

function is_collision(x)
  return collisions ~= nil
end

function format_perseus_url(title, beta, redirect)
	local url_redirect_lhs = 'http://www.perseus.tufts.edu/hopper/resolveform?type=exact&lookup='
	local url_entry_lhs = 'http://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1999.04.0073:entry='
	local url_rhs = redirect and '&lang=greek' or ''
	return (redirect and url_redirect_lhs or url_entry_lhs)..beta..url_rhs
end

function format_perseus_wikilink(title, beta, redirect)
	local url = format_perseus_url(title, beta, redirect)
	local w_link = '«» in '
	return (beta == '' and '' or w_link)
end

function export.create(frame)
	local args = frame:getParent().args
	local title = args or mw.title.getCurrentTitle().text
	local beta = args or require("Module:grc-polytonic-to-perseus-betacode").polytonic_to_perseus_betacode(title) --polytonic_to_perseus_beta(title)
	local redirect = is_collision(title) and not args and not args
	return format_perseus_wikilink(title, beta, redirect)
end

return export