45,647
edits
No edit summary |
No edit summary |
||
Line 89: | Line 89: | ||
or langCode:find("^sj[dektu]$") then | or langCode:find("^sj[dektu]$") then | ||
if link.display and link.display:find("'") then | if link.display and link.display:find("'") then | ||
elseif link.target and link.target:find("'") then | elseif link.target and link.target:find("'") then | ||
end | end | ||
end | end | ||
Line 159: | Line 157: | ||
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 232: | Line 224: | ||
-- Do we have embedded wikilinks? | -- Do we have embedded wikilinks? | ||
if text:find("[[", nil, true) then | if text:find("[[", nil, true) then | ||
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 244: | Line 231: | ||
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 254: | Line 240: | ||
-- This makes the wikilink tag redundant. | -- This makes the wikilink tag redundant. | ||
if text:find("^%[%[[^%[%]]+%]%]$") then | if text:find("^%[%[[^%[%]]+%]%]$") then | ||
else | else | ||
local temp = text:gsub("^%[%[(.+)%]%]$", "%1") | local temp = text:gsub("^%[%[(.+)%]%]$", "%1") | ||
temp = temp:gsub("%]%], %[%[", "|") | temp = temp:gsub("%]%], %[%[", "|") | ||
end | end | ||
end | end | ||
Line 410: | Line 391: | ||
-- 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 | ||