Module:script utilities/data: Difference between revisions

From Linguifex
Jump to navigation Jump to search
No edit summary
(Undo revision 227460 by Sware (talk))
Tag: Undo
Line 10: Line 10:
["usex"] = {
["usex"] = {
["tag"] = "i",
["tag"] = "i",
["classes"] = "",
["classes"] = "e-transliteration",
},
},
["head"] = {
["head"] = {
Line 56: Line 56:
["nil"] = {
["nil"] = {
tag = "span",
tag = "span",
},
["usex"] = {
["tag"] = "i",
},
},
}
}


return data
return data

Revision as of 15:53, 29 April 2021



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",
	},
	["default"] = {},
}

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

data.faces = {
	["term"] = {
		tag = "b",
		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",
	},
	["usex"] = {
		["tag"] = "i",
	},
}

return data