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

Änderungen

Zur Navigation springen Zur Suche springen
164 Bytes hinzugefügt ,  13:33, 28. Mär. 2015
2015-03-27
Zeile 1: Zeile 1: −
--[=[ 2015-03-26
+
--[=[ 2015-03-27
 
{{Template:Phab}}
 
{{Template:Phab}}
 
]=]
 
]=]
Zeile 235: Zeile 235:  
     --    Returns string URL, if fine
 
     --    Returns string URL, if fine
 
     local s = type( args )
 
     local s = type( args )
     local r, show, tags
+
     local n, r, show, tags
 
     if s == "table" then
 
     if s == "table" then
 
         if type( args.Engage ) == "string" then
 
         if type( args.Engage ) == "string" then
 
             tags = args.Engage
 
             tags = args.Engage
            if args.Show and ( args.Show ~= "" ) then
  −
                show = args.Show
  −
            end
   
         end
 
         end
    else
+
         if args.Show and ( args.Show ~= "" ) then
         if s == "string" then
+
             show = args.Show
             tags = args
   
         end
 
         end
         if not tags  or  tags == "" then
+
    elseif s == "string" then
            tags = "MediaWiki-General-or-Unknown"
+
         tags = args
 +
    end
 +
    if not tags  or  tags == "" then
 +
        tags = "MediaWiki-General-or-Unknown"
 +
    end
 +
    tags = mw.text.split( tags, "%s+" )
 +
    n    = #tags
 +
    if show  and  n > 1 then
 +
        show = false
 +
    end
 +
    for i = 1, n do
 +
        s = tags[ i ]
 +
        if r then
 +
            r = r .. " | "
 +
        else
 +
            r = ""
 
         end
 
         end
    end
+
         if not show then
    if tags then
+
             show = "#" .. s
        local n
  −
        tags = mw.text.split( tags, "%s+" )
  −
        n    = #tags
  −
         if show and  n > 1 then
  −
             show = false
   
         end
 
         end
         for i = 1, n do
+
         r = string.format( "%s[%stag/%s %s]",
            s = tags[ i ]
+
                          r, Site, s:lower(), show )
            if r then
+
    end -- for i
                r = r .. " | "
  −
            else
  −
                r = ""
  −
            end
  −
            if not show then
  −
                show = "#" .. s
  −
            end
  −
            r = string.format( "%s[%stag/%s %s]",
  −
                              r, Site, s:lower(), show )
  −
        end -- for i
  −
    end
   
     return r
 
     return r
 
end -- phabBoards()
 
end -- phabBoards()
Zeile 329: Zeile 324:  
             if type( details ) ~= "table" then
 
             if type( details ) ~= "table" then
 
                 details = { }
 
                 details = { }
 +
            end
 +
            if details.say then
 +
                table.insert( pages, details.say )
 
             end
 
             end
 
             if details.support then
 
             if details.support then
Zeile 564: Zeile 562:  
     elseif load then
 
     elseif load then
 
         if show then
 
         if show then
             show = "r" .. show
+
             show   = "r" .. show
            lapsus = ( not args.project )
+
--          lapsus = ( not args.project )
 
         else
 
         else
 
             show = "GIT:"
 
             show = "GIT:"
Zeile 574: Zeile 572:  
     end
 
     end
 
     if not r then
 
     if not r then
 +
        if not scope:find( "/", 3, true ) then
 +
            error( "Unknown project: " .. scope,  0 )
 +
        end
 
         r      = git( swift, scope, slot, source, jump, since )
 
         r      = git( swift, scope, slot, source, jump, since )
 
         lapsus = true
 
         lapsus = true
Zeile 839: Zeile 840:  
     local lucky, r = pcall( main, frame:getParent().args, frame )
 
     local lucky, r = pcall( main, frame:getParent().args, frame )
 
     if not lucky then
 
     if not lucky then
         r = string.format( "<span class=\"error\">%s</span>", r )
+
        local sick = "[[Category:Wikipedia:Vorlagenfehler/Vorlage:Phab]]"
 +
         r = string.format( "<span class=\"error\">%s</span>%s",
 +
                          r, sick )
 
     end
 
     end
 
     return r
 
     return r
Cookies helfen uns bei der Bereitstellung von imedwiki. Durch die Nutzung von imedwiki erklärst du dich damit einverstanden, dass wir Cookies speichern.

Navigationsmenü