Modul:WLink: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
149 Bytes hinzugefügt ,  17. August 2017
wp>Herzi Pinki
(https://de.wikipedia.org/w/index.php?title=Vorlage_Diskussion%3ALiteratur&type=revision&diff=164738195&oldid=164404700)
wp>Holmium
Zeile 1: Zeile 1:
local WLink = { suite  = "WLink",
local WLink = { suite  = "WLink",
                 serial = "2017-04-19" };
                 serial = "2017-08-17" };
--[=[
--[=[
ansiPercent()
ansiPercent()
Zeile 788: Zeile 788:
     end
     end
     if URLutil.isResourceURL( attempt ) then
     if URLutil.isResourceURL( attempt ) then
         local site = URLutil.getAuthority( attempt );
         local site   = URLutil.getAuthority( attempt );
        local service = attempt;
         local show;
         local show;
         if #attempt == #site then
         if #attempt == #site then
Zeile 795: Zeile 796:
         show = URLutil.getTop3domain( "//" .. site );
         show = URLutil.getTop3domain( "//" .. site );
         if show then
         if show then
             local scan  = "[%./](%a[%a%%%-]+%a)(%.%l%l%.)(%a+)$";
             local scan  = "[%./](%a[%a%%%-]*%a)(%.%l%l%.)(%a+)$";
             local search = "." .. show;
             local search = "." .. show;
             local s1, s2, s3 = search:match( scan );
             local s1, s2, s3 = search:match( scan );
             if s2 then
             if s2 then
                 if not second:find( s2, 1, true ) then
                 if not second:find( s2, 1, true ) then
                     show = string.format( "%s.%s", s2, s3 );
                     show = string.format( "%s%s", s2:sub( 2 ), s3 );
                 end
                 end
             else
             else
Zeile 812: Zeile 813:
             end
             end
         end
         end
         r = string.format( "[%s %s]", attempt, show );
        if not service:match( "^[a-z:]*//.+/" ) then
            service = service .. "/";
        end
         r = string.format( "[%s %s]", service, show );
     else
     else
         r = attempt;
         r = attempt;
Anonymer Benutzer

Navigationsmenü