Module:category tree/affixes and compounds: Difference between revisions
No edit summary |
|||
| Line 262: | Line 262: | ||
local _, display_term, lookup_term = m_affix.make_affix(term, data.lang, sc, affixtype, nil, true) | local _, display_term, lookup_term = m_affix.make_affix(term, data.lang, sc, affixtype, nil, true) | ||
local _, display_alt = m_affix.make_affix(args.alt, data.lang, sc, affixtype) | local _, display_alt = m_affix.make_affix(args.alt, data.lang, sc, affixtype) | ||
local _, display_tr = m_affix.make_affix(args.tr, data.lang, | |||
local _, display_ts = m_affix.make_affix(args.ts, data.lang, | local latn = require("Module:scripts").getByCode("Latn") | ||
local _, display_tr = m_affix.make_affix(args.tr, data.lang, latn, affixtype) | |||
local _, display_ts = m_affix.make_affix(args.ts, data.lang, latn, affixtype) | |||
local m_script_utilities = require("Module:script utilities") | local m_script_utilities = require("Module:script utilities") | ||
local id_text = id and " (" .. id .. ")" or "" | local id_text = id and " (" .. id .. ")" or "" | ||
| Line 362: | Line 364: | ||
local displaytitle = "{{{langname}}} " .. labelpref .. m_script_utilities.tag_text(args.alt or display_alt or display_term, data.lang, sc, "term") .. id_text | local displaytitle = "{{{langname}}} " .. labelpref .. m_script_utilities.tag_text(args.alt or display_alt or display_term, data.lang, sc, "term") .. id_text | ||
local pagename = "{{{langname}}} " .. labelpref .. m_script_utilities.tag_text(display_term, data.lang, | local pagename = "{{{langname}}} " .. labelpref .. m_script_utilities.tag_text(args.alt or display_alt or display_term, data.lang, latn, "term") .. id_text | ||
if displaytitle ~= pagename then | if displaytitle ~= pagename then | ||
displaytitle = pagename | displaytitle = pagename | ||