Module:headword: Difference between revisions
No edit summary |
No edit summary |
||
| Line 620: | Line 620: | ||
local title = mw.title.new(stripped_physical_term) | local title = mw.title.new(stripped_physical_term) | ||
if title and not title:getContent() then | if title and not title:getContent() then | ||
return true | return true | ||
end | end | ||
| Line 789: | Line 788: | ||
-- that. | -- that. | ||
if tbl == true then | if tbl == true then | ||
return | return | ||
end | end | ||
| Line 801: | Line 797: | ||
different = true | different = true | ||
end | end | ||
end | end | ||
return sortkey | return sortkey | ||
| Line 818: | Line 808: | ||
if tbl then | if tbl then | ||
sortkey = handle_raw_sortkeys(tbl, sortkey, page, lang, lang_cats) | sortkey = handle_raw_sortkeys(tbl, sortkey, page, lang, lang_cats) | ||
end | end | ||
tbl = page.wikitext_langname_cat[canonical] | tbl = page.wikitext_langname_cat[canonical] | ||
if tbl then | if tbl then | ||
handle_raw_sortkeys(tbl, sortkey, page, lang, lang_cats) | handle_raw_sortkeys(tbl, sortkey, page, lang, lang_cats) | ||
end | end | ||
end | end | ||
| Line 1,064: | Line 1,046: | ||
local auto_sc = data.lang:findBestScript(head.term) | local auto_sc = data.lang:findBestScript(head.term) | ||
if not (head.sc or data.sc) then -- No script code given, so use autodetected script. | if not (head.sc or data.sc) then -- No script code given, so use autodetected script. | ||
head.sc = auto_sc | head.sc = auto_sc | ||
| Line 1,075: | Line 1,051: | ||
if not head.sc then -- Overall script code given. | if not head.sc then -- Overall script code given. | ||
head.sc = data.sc | head.sc = data.sc | ||
end | end | ||
end | end | ||
| Line 1,124: | Line 1,088: | ||
if automated_tr then | if automated_tr then | ||
local manual_tr = head.tr | local manual_tr = head.tr | ||
if not manual_tr then | if not manual_tr then | ||