45,646
edits
m (Учхљёная moved page Module:links to Module:links-Wikt without leaving a redirect) |
No edit summary |
||
Line 12: | Line 12: | ||
[[Module:utilities]] | [[Module:utilities]] | ||
[[Module:string]] | [[Module:string]] | ||
]=] | ]=] | ||
Line 86: | Line 85: | ||
if langCode == "se" or langCode == "sia" or langCode:find("^sm[ajns]$") | if langCode == "se" or langCode == "sia" or langCode:find("^sm[ajns]$") | ||
or langCode:find("^sj[dektu]$") then | or langCode:find("^sj[dektu]$") then | ||
end | end | ||
Line 157: | Line 151: | ||
if not prefixes[prefix] then | if not prefixes[prefix] then | ||
if not link.fragment and lang:getCode() ~= "und" then | if not link.fragment and lang:getCode() ~= "und" then | ||
Line 236: | Line 224: | ||
if data.alt then | if data.alt then | ||
mw.log("(from Module:links)", "text with embedded wikilinks:", text, | mw.log("(from Module:links)", "text with embedded wikilinks:", text, | ||
"ignored alt:", data.alt, "lang:", data.lang:getCode()) | "ignored alt:", data.alt, "lang:", data.lang:getCode()) | ||
Line 242: | Line 229: | ||
if data.id then | if data.id then | ||
mw.log("(from Module:links)", "text with embedded wikilinks:", text, | mw.log("(from Module:links)", "text with embedded wikilinks:", text, | ||
"ignored id:", data.id, "lang:", data.lang:getCode()) | "ignored id:", data.id, "lang:", data.lang:getCode()) | ||
Line 251: | Line 237: | ||
-- There are no [ ] in between. | -- There are no [ ] in between. | ||
-- This makes the wikilink tag redundant. | -- This makes the wikilink tag redundant. | ||
if text:find("^%[%[[^%[%]]+%]%]$") then | if not text:find("^%[%[[^%[%]]+%]%]$") then | ||
local temp = text:gsub("^%[%[(.+)%]%]$", "%1") | local temp = text:gsub("^%[%[(.+)%]%]$", "%1") | ||
temp = temp:gsub("%]%], %[%[", "|") | temp = temp:gsub("%]%], %[%[", "|") | ||
end | end | ||
end | end | ||
Line 406: | Line 386: | ||
-- Track uses of sc parameter | -- Track uses of sc parameter | ||
local best = require("Module:scripts").findBestScript(data.alt or data.term, data.lang) | local best = require("Module:scripts").findBestScript(data.alt or data.term, data.lang) | ||
end | end | ||
Line 440: | Line 411: | ||
else | else | ||
accel = data.accel | accel = data.accel | ||
end | end | ||