Hello, you have come here looking for the meaning of the word
Module:txg-headword. In DICTIOUS you will not only get to know all the dictionary meanings for the word
Module:txg-headword, but we will also tell you about its etymology, its characteristics and you will know how to say
Module:txg-headword in singular and plural. Everything you need to know about the word
Module:txg-headword you have here. The definition of the word
Module:txg-headword will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
Module:txg-headword, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
local export = {}
local m_headword = require("Module:headword")
local m_param = require("Module:parameters")
local txg = require("Module:languages").getByCode("txg")
local Tang_pattern = ""
local pagename = mw.loadData("Module:headword/data").pagename
local function lang_txg(text)
return '<span class="Tang" lang="txg">' .. text .. '</span>'
end
local function l_txg(text)
return lang_txg("]")
end
function export.char(frame)
local params = {
= {list = true},
= {},
= {},
= {},
= {},
}
local args = m_param.process(frame:getParent().args, params)
if args then
for i,cat in ipairs(args) do
args = "Tangut "..cat.."s"
end
end
local data = {
lang = txg,
pagename = nil,
heads = {'<span style="font-size:200%;">' .. pagename .. '</span>'},
pos_category = "logograms",
categories = args,
sort_key = nil, --TODO?
}
if args.rad then
args.rad = "]"
end
if args.ids then
args.ids = lang_txg(mw.ustring.gsub(args.ids,Tang_pattern,l_txg("%0")))
end
return m_headword.full_headword(data) .. " ("
.. (args.rad and ("''radical'' " .. args.rad .. "+" .. args.as .. ", " .. args.sn .. " strokes") or "")
.. (args.ids and (", ''composition'' " .. args.ids) or "")
.. ")"
end
return export