Module:category tree/affixes and compounds: Difference between revisions

Undo revision 515133 by Sware (talk)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 43: Line 43:
"pronouns",
"pronouns",
"proper nouns",
"proper nouns",
"roots",
"suffixes",
"suffixes",
"verbs",
"verbs",
Line 262: Line 263:
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, require("Module:scripts").getByCode("Latn"), affixtype)
local _, display_ts = m_affix.make_affix(args.ts, data.lang, require("Module:scripts").getByCode("Latn"), affixtype)
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 365:
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, sc, "term") .. id_text
local pagename = "{{{langname}}} " .. labelpref .. m_script_utilities.tag_text(display_term, data.lang, latn, "term") .. id_text
if displaytitle ~= pagename then
if displaytitle ~= pagename then
displaytitle = pagename
displaytitle = pagename