Jump to content

ഘടകം:script utilities/data

വിക്കിനിഘണ്ടു സംരംഭത്തിൽ നിന്ന്

ഈ ഘടകത്തിന്റെ വിവരണം ഘടകം:script utilities/data/വിവരണം എന്ന താളിൽ നിർമ്മിക്കാവുന്നതാണ്

local data = {}

data.translit = {
	["term"] = {
--[=[	can't be done until Kana transliterations are correctly parsed by [[Module:links]]
		["tag"] = "i",
		]=]
		["classes"] = "mention-tr",
	},
	["usex"] = {
		["tag"] = "i",
		["classes"] = "e-transliteration",
	},
	["head"] = {
		["classes"] = "headword-tr",
		["dir"] = "ltr",
	},
	["default"] = {},
}

data.transcription = {
	["head"] = {
		["tag"] = "span",
		["classes"] = "headword-ts",
		["dir"] = "ltr",
	},
	["usex"] = {
		tag = "span",
		["classes"] = "e-transcription",
	},
	["default"] = {},
}

for key, value in pairs(data.translit) do
	if not value.tag then
		value.tag = "span"
	end
end

data.faces = {
	["term"] = {
		tag = "i",
		class = "mention",
	},
	["head"] = {
		tag = "strong",
		class = "headword",
	},
	["hypothetical"] = {
		prefix = '<span class="hypothetical-star">*</span>',
		tag = "i",
		class = "hypothetical",
	},
	["bold"] = {
		tag = "b",
	},
	["translation"] = {
		tag = "span",
	},
	["nil"] = {
		tag = "span",
	},
}

return data
"https://ml.wiktionary.org/w/index.php?title=ഘടകം:script_utilities/data&oldid=547178" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്