Module:script utilities/data: Difference between revisions
Jump to navigation
Jump to search
Chrysophylax (talk | contribs) (Created page with "local data = {} data.translit = { ["term"] = { --[=[ can't be done until Kana transliterations are correctly parsed by Module:links ["tag"] = "i", ]=] ["classes"]...") |
No edit summary |
||
Line 36: | Line 36: | ||
data.faces = { | data.faces = { | ||
["term"] = { | ["term"] = { | ||
tag = " | tag = "b", | ||
class = "mention", | class = "mention", | ||
}, | }, |
Revision as of 15:04, 23 March 2021
- 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"] = {
--[=[ 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",
},
}
return data