45,647
edits
Chrysophylax (talk | contribs) (Created page with "local export = {} --[=[ Unsupported titles and pages with high memory usage are listed at Module:links/data. Other modules used: Module:script utilities...") |
No edit summary |
||
Line 12: | Line 12: | ||
[[Module:utilities]] | [[Module:utilities]] | ||
[[Module:string]] | [[Module:string]] | ||
]=] | ]=] | ||
Line 150: | Line 149: | ||
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 229: | Line 222: | ||
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 235: | Line 227: | ||
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 244: | Line 235: | ||
-- 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 401: | 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 435: | Line 411: | ||
else | else | ||
accel = data.accel | accel = data.accel | ||
end | end | ||