Modul:WLink: Unterschied zwischen den Versionen

289 Bytes hinzugefügt ,  19. Mai 2016
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-18" };
                 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
                    if space then
                        space = s:match( "^([^:]+):" );
                        space = mw.site.namespaces[ space ];
                         if space then
                         if space then
                             space = space.id;
                             space = mw.site.namespaces[ space ];
                            if space then
                                space = space.id;
                            end
                         end
                         end
                    end
                        if space == 6  or  space == 14 then
                    if space == 6  or  space == 14 then
                            shift = "";
                        elseif not shift then
                            shift = s;
                        end
                    else
                        s    = "";
                         shift = "";
                         shift = "";
                    elseif not shift then
                        shift = s;
                     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 = "";
Anonymer Benutzer