Jump to content

Module:Wt/haw/script utilities/data

From Wikimedia Incubator

Documentation for this module may be created at Module:Wt/haw/script utilities/data/doc

local data = {}

data.translit = {
	["term"] = {
--[=[	can't be done until Kana transliterations are correctly parsed by [[Module:Wt/haw/links]]
		["tag"] = "i",
		]=]
		["classes"] = "mention-tr",
	},
	["usex"] = {
		["tag"] = "i",
		["classes"] = "e-transliteration",
	},
	["head"] = {
		["classes"] = "headword-tr",
		["dir"] = "ltr",
	},
	["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