Nicht angemeldeter Benutzer - Bearbeiten von Seiten ist nur als angemeldeter Benutzer möglich.

Änderungen

Zur Navigation springen Zur Suche springen
862 Bytes hinzugefügt ,  18:08, 16. Okt. 2019
2019-10-15
Zeile 1: Zeile 1:  
local URIutil = { suite  = "URIutil",
 
local URIutil = { suite  = "URIutil",
                   serial = "2019-09-20",
+
                   serial = "2019-10-15",
 
                   item  = 19644443 };
 
                   item  = 19644443 };
 
--[=[
 
--[=[
Zeile 186: Zeile 186:  
     end
 
     end
 
     if not r then
 
     if not r then
         local lucky;
+
         local lucky, storage;
         lucky, r = pcall( mw.loadData,  "Module:URIutil/" .. acquire );
+
        storage = "Module:URIutil/" .. acquire;
 +
         lucky, r = pcall( mw.loadData, storage );
 +
        if not lucky then
 +
            if not URIutil.suited and
 +
              type( URIutil.item ) == "number" then
 +
                local suited = string.format( "Q%d", URIutil.item );
 +
                URIutil.suited = mw.wikibase.getSitelink( suited )
 +
                                or  true;
 +
            end
 +
            if type( URIutil.suited ) == "string" then
 +
                storage = string.format( "%s/%s",
 +
                                        URIutil.suited, acquire );
 +
                lucky, r = pcall( mw.loadData, storage );
 +
            end
 +
        end
 
         if type( r ) ~= "table" then
 
         if type( r ) ~= "table" then
 
             r = { };
 
             r = { };
Zeile 1.870: Zeile 1.884:  
         r = ISSNformat( issn, issn.type );
 
         r = ISSNformat( issn, issn.type );
 
         if type( cnf.issn ) == "string" then
 
         if type( cnf.issn ) == "string" then
             r = string.format( "[%s %s]",
+
             local s = cnf.issn
                              cnf.issn:gsub( "%$1", r ),
+
            if s:find( "$1", 5, true ) then
                              r );
+
                s = s:gsub( "%$1", r );
 +
            else
 +
                s = s .. r;
 +
            end
 +
            r = string.format( "[%s %s]", s, r );
 
         end
 
         end
 
     else
 
     else
Zeile 1.907: Zeile 1.925:  
                 s = "Digital Object Identifier";
 
                 s = "Digital Object Identifier";
 
             end
 
             end
             r = string.format( "[[%s|doi]]:%s", s, r );
+
             if s ~= fullPageName() then
 +
                r = string.format( "[[%s|doi]]:%s", s, r );
 +
            else
 +
                r = "doi:" .. r;
 +
            end
 
         else
 
         else
 
             r = "doi:" .. r;
 
             r = "doi:" .. r;
Zeile 1.969: Zeile 1.991:  
         if s then
 
         if s then
 
             if type( s ) ~= "string"
 
             if type( s ) ~= "string"
 +
              or  s == "-"
 
               or  s == "" then
 
               or  s == "" then
 
                 s = false;
 
                 s = false;
Zeile 1.975: Zeile 1.998:  
             s = "Uniform Resource Name";
 
             s = "Uniform Resource Name";
 
         end
 
         end
         if s then
+
         if s and  s ~= fullPageName() then
 
             r = string.format( "[[%s|urn]]:%s", s, r );
 
             r = string.format( "[[%s|urn]]:%s", s, r );
 
         else
 
         else
Cookies helfen uns bei der Bereitstellung von imedwiki. Durch die Nutzung von imedwiki erklärst du dich damit einverstanden, dass wir Cookies speichern.

Navigationsmenü