Modulo:ja-link

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

La documentazione per questo modulo può essere creata in Modulo:ja-link/man

local export = {}
local m_ja = require("Modulo:ja")
local lang = require("Modulo:languages").getByCode("ja")
local sc = require("Modulo:scripts").getByCode("Jpan")
local m_links = require("Modulo:links")

function export.show(frame)
	local params = {
		 = { required = true },
		 = {},
		 = {},
		 = { alias_of = 3 },
		 = {},
		 = {},
		 = {},
		 = {},
	}
	local args = require("Modulo:parameters").process(frame:getParent().args, params)

	local lemma = args
	local kana = args
	-- if only one arg passed, it may be kana with hyphens
	if not kana then
		kana = lemma
		lemma = mw.ustring.gsub(lemma, '', '')
	end
	local gloss = args
	local pos = args
	local linkto = args
	local caps = args
	local transliteration = args or m_ja.kana_to_romaji(kana)

	if require("Modulo:scripts").getByCode('Hani'):countCharacters(transliteration) > 0 then
		error("The transliteration seems to have kanji in it. Was the kana reading properly provided?")
	end
	if caps then
		transliteration = mw.ustring.gsub(transliteration, "^%l", mw.ustring.upper)
		transliteration = mw.ustring.gsub(transliteration, " %l", mw.ustring.upper)
	end
	if transliteration ~= '-' then
		transliteration = "'']''"
		--transliteration = m_links.remove_links(transliteration) serve se $lemma è linkato manualmente
	end

	local ruby = m_ja.add_ruby_backend(lemma, kana)
	lemma = mw.ustring.gsub(lemma, "", "")

	if mw.ustring.match(ruby, '%[%[') then -- for if $lemma has manual wikilinks
		return m_links.full_link({lang = lang, term = nil, alt = ruby, gloss = gloss, sc = sc, tr = transliteration, pos = pos})
	elseif linkto then
		return m_links.full_link({lang = lang, term = linkto, alt = ruby, gloss = gloss, sc = sc, tr = transliteration, pos = pos})
	else
		return m_links.full_link({lang = lang, term = lemma, alt = ruby, gloss = gloss, sc = sc, tr = transliteration, pos = pos})
	end

end

return export