Nicht angemeldeter Benutzer - Bearbeiten von Seiten ist nur als angemeldeter Benutzer möglich.
Änderungen
Zur Navigation springen
Zur Suche springen
Zeile 1:
Zeile 1:
− +
Zeile 35:
Zeile 35:
+
Zeile 40:
Zeile 41:
− +
Zeile 55:
Zeile 56:
− +
− +
+
+
+
+
+
+
+
+
+
Zeile 174:
Zeile 184:
+
Zeile 179:
Zeile 190:
+
Zeile 185:
Zeile 197:
− +
− +
+
+
+
+
+
+
+
+
+
Zeile 227:
Zeile 248:
+
Zeile 259:
Zeile 281:
+
+
+
+
Zeile 441:
Zeile 467:
+
Zeile 458:
Zeile 485:
+
+
+
+
Zeile 535:
Zeile 566:
− +
+
+
Zeile 592:
Zeile 625:
+
Zeile 623:
Zeile 657:
− +
− +
+
+
+
+
Zeile 743:
Zeile 781:
− +
+
+
Zeile 800:
Zeile 840:
+
+
+
+
+
2015-04-04
--[=[ 2015-03-30
--[=[ 2015-04-04
{{Template:Phab}}
{{Template:Phab}}
]=]
]=]
-- .File
-- .File
-- .Show
-- .Show
-- .style
-- Postcondition:
-- Postcondition:
-- Returns string with bracketed external link, if fine
-- Returns string with bracketed external link, if fine
local r = args.File
local r = args.File
local j = r:find( ",", 1, true )
local j = r:find( ",", 1, true )
local n, params
local n, params, show
if j then
if j then
params = r:sub( j + 1 )
params = r:sub( j + 1 )
error( r, 0 )
error( r, 0 )
end
end
if args.Show then
if args.style then
r = string.format( "[[phab:F%d|%s]]", n, args.Show )
if args.Show then
show = args.Show
else
show = string.format( "F%d", n )
end
show = string.format( "<span style='%s'>%s</span>",
args.style, show )
end
if show then
r = string.format( "[[phab:F%d|%s]]", n, show )
else
else
r = string.format( "[[phab:F%d]]", n )
r = string.format( "[[phab:F%d]]", n )
-- .Mock
-- .Mock
-- .Show
-- .Show
-- .style
-- Postcondition:
-- Postcondition:
-- Returns string with bracketed external link, if fine
-- Returns string with bracketed external link, if fine
local r = args.Mock
local r = args.Mock
local n = r:match( "^[Mm]?([0-9]+)$" )
local n = r:match( "^[Mm]?([0-9]+)$" )
local show
if n then
if n then
n = tonumber( n ) -- discard leading zeros
n = tonumber( n ) -- discard leading zeros
error( r, 0 )
error( r, 0 )
end
end
if args.Show then
if args.style then
r = string.format( "[[phab:M%d|%s]]", n, args.Show )
if args.Show then
show = args.Show
else
show = string.format( "M%d", n )
end
show = string.format( "<span style='%s'>%s</span>",
args.style, show )
end
if show then
r = string.format( "[[phab:M%d|%s]]", n, show )
else
else
r = string.format( "[[phab:M%d]]", n )
r = string.format( "[[phab:M%d]]", n )
-- .Engage
-- .Engage
-- .Show
-- .Show
-- .style
-- string; single ID
-- string; single ID
-- Postcondition:
-- Postcondition:
if not show then
if not show then
show = "#" .. s
show = "#" .. s
end
if args.style then
show = string.format( "<span style='%s'>%s</span>",
args.style, show )
end
end
r = string.format( "%s[[phab:tag/%s|%s]]",
r = string.format( "%s[[phab:tag/%s|%s]]",
-- .User
-- .User
-- .Show
-- .Show
-- .style
-- frame -- object or nil
-- frame -- object or nil
-- Postcondition:
-- Postcondition:
if not frame then
if not frame then
frame = mw.getCurrentFrame()
frame = mw.getCurrentFrame()
end
if args.style then
show = string.format( "<span style='%s'>%s</span>",
args.style, show )
end
end
r = string.format( "[[phab:p/%s|%s]]",
r = string.format( "[[phab:p/%s|%s]]",
load = ( args.commit or args.commitdiff )
load = ( args.commit or args.commitdiff )
if load then
if load then
id40( slot )
if scope ~= "SVN" then
id40( slot )
end
elseif args.diff then
elseif args.diff then
since = args.diff
since = args.diff
-- .Anchor
-- .Anchor
-- .Show
-- .Show
-- .style
-- Postcondition:
-- Postcondition:
-- Returns string with bracketed external link, if fine
-- Returns string with bracketed external link, if fine
else
else
show = string.format( "phab:T%d", n )
show = string.format( "phab:T%d", n )
if sub then
if args.Anchor then
show = string.format( "%s #%s", show, sub )
show = string.format( "%s #%s", show, args.Anchor )
end
end
end
if args.style then
show = string.format( "<span style='%s'>%s</span>",
args.style, show )
end
end
r = string.format( "[[phab:T%d%s|%s]]", n, sub, show )
r = string.format( "[[phab:T%d%s|%s]]", n, sub, show )
local got = { }
local got = { }
local mode = 0
local mode = 0
local params = { Anchor = 1,
local params = { style = 0,
Anchor = 1,
Anchor = 1,
Bugzilla = 1,
Bugzilla = 1,
Countdown = 1,
Countdown = 1,
mode = 2
mode = 2
got[ 2 ] = { }
got[ 2 ] = { }
end
if got[ 0 ] then
for k, v in pairs( got[ 0 ] ) do
got[ mode ][ k ] = v
end -- for k, v
end
end
got = got[ mode ]
got = got[ mode ]