Module:script utilities/data: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
data.translit = { | data.translit = { | ||
["term"] = { | ["term"] = { | ||
["tag"] = "i", | ["tag"] = "i", | ||
["classes"] = "mention-tr", | ["classes"] = "mention-tr", | ||
}, | }, | ||
["usex"] = { | ["usex"] = { | ||
["tag"] = "i", | ["tag"] = "i", | ||
["classes"] = "", | ["classes"] = "e-transliteration", | ||
}, | }, | ||
["head"] = { | ["head"] = { | ||
Line 37: | Line 35: | ||
["term"] = { | ["term"] = { | ||
tag = "b", | tag = "b", | ||
class = "mention", | |||
}, | |||
["term_i"] = { | |||
tag = "i", | |||
}, | |||
["term_nonlatin"] = { | |||
tag = "", | |||
class = "mention", | class = "mention", | ||
}, | }, | ||
Line 56: | Line 61: | ||
["nil"] = { | ["nil"] = { | ||
tag = "span", | tag = "span", | ||
}, | |||
["usex"] = { | |||
["tag"] = "i", | |||
}, | }, | ||
} | } | ||
return data | return data |
Latest revision as of 23:16, 29 August 2024
- The following documentation is located at Module:script utilities/data/doc.[edit]
- Useful links: root page • root page's subpages • links • transclusions • testcases • sandbox
local data = {}
data.translit = {
["term"] = {
["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",
},
["term_i"] = {
tag = "i",
},
["term_nonlatin"] = {
tag = "",
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