Modul:WLink: Unterschied zwischen den Versionen
c/p aus https://de.wikipedia.beta.wmflabs.org/w/index.php?oldid=19757 (Spezial:PermaLink/163959359#Einmal geschütztes Modul aktualisieren)
w>Schniggendiller K (Änderte den Schutz von „Modul:WLink“: Häufig eingebundenes Modul: Spezial:PermaLink/159443434#Dreimal Hausmeister (m/w) gesucht ([Bearbeiten=Nur Administratoren] (unbeschränkt) [Verschieben=Nur Administratoren] (unbeschränkt))) |
w>Schniggendiller (c/p aus https://de.wikipedia.beta.wmflabs.org/w/index.php?oldid=19757 (Spezial:PermaLink/163959359#Einmal geschütztes Modul aktualisieren)) |
||
| Zeile 1: | Zeile 1: | ||
local WLink = { suite = "WLink", | local WLink = { suite = "WLink", | ||
serial = " | serial = "2017-01-25" }; | ||
--[=[ | --[=[ | ||
ansiPercent() | ansiPercent() | ||
| Zeile 590: | Zeile 590: | ||
local r = attempt; | local r = attempt; | ||
local i = 1; | local i = 1; | ||
local j, k, n, lean, s, shift, space, suffix; | local j, k, n, lean, s, shift, span, space, suffix; | ||
while ( true ) do | while ( true ) do | ||
j = r:find( "[", i, true ); | j = r:find( "[", i, true ); | ||
| Zeile 629: | Zeile 629: | ||
end | end | ||
else | else | ||
span, shift = extractExtlink( suffix ); | |||
if not | if span then | ||
if not shift then | |||
shift = ""; | |||
end | |||
shift = ""; | else | ||
shift = string.format( "[%s]", s ); | |||
end | end | ||
i = i - 1; | i = i - 1; | ||
| Zeile 1.249: | Zeile 1.250: | ||
end | end | ||
p.failsafe = function ( frame ) | p.failsafe = function ( frame ) | ||
local since = frame.args[ 1 ]; | local s = type( frame ); | ||
local since; | |||
if s == "table" then | |||
since = frame.args[ 1 ]; | |||
elseif s == "string" then | |||
since = frame; | |||
end | |||
if since then | if since then | ||
since = mw.text.trim( since ); | since = mw.text.trim( since ); | ||