Modul:WLink: Unterschied zwischen den Versionen
2016-05-19
wp>PerfektesChaos (2016-05-18) |
wp>PerfektesChaos (2016-05-19) |
||
Zeile 1: | Zeile 1: | ||
local WLink = { suite = "WLink", | local WLink = { suite = "WLink", | ||
serial = "2016-05- | serial = "2016-05-19" }; | ||
--[=[ | --[=[ | ||
ansiPercent() | ansiPercent() | ||
Zeile 606: | Zeile 606: | ||
if lean then | if lean then | ||
s, shift = extractWikilink( suffix ); | s, shift = extractWikilink( suffix ); | ||
space = s:match( "^([^:]+):" ) | if s then | ||
space = s:match( "^([^:]+):" ); | |||
if space then | if space then | ||
space = space.id; | space = mw.site.namespaces[ space ]; | ||
if space then | |||
space = space.id; | |||
end | |||
end | end | ||
if space == 6 or space == 14 then | |||
shift = ""; | |||
elseif not shift then | |||
shift = s; | |||
end | |||
else | |||
s = ""; | |||
shift = ""; | shift = ""; | ||
end | end | ||
else | else | ||
s, shift = extractExtlink( suffix ); | s, shift = extractExtlink( suffix ); | ||
if not s then | |||
s = ""; | |||
end | |||
if not shift then | if not shift then | ||
shift = ""; | shift = ""; |