Modul:Vorlage:Phab: Unterschied zwischen den Versionen
2015-03-28
wp>PerfektesChaos (2015-03-27) |
wp>PerfektesChaos (2015-03-28) |
||
Zeile 1: | Zeile 1: | ||
--[=[ 2015-03- | --[=[ 2015-03-28 | ||
{{Template:Phab}} | {{Template:Phab}} | ||
]=] | ]=] | ||
Zeile 6: | Zeile 6: | ||
-- local globals | -- local globals | ||
local Sick = "Category:Wikipedia:Vorlagenfehler/Vorlage:Phab" | |||
local Site = "https://phabricator.wikimedia.org/" | local Site = "https://phabricator.wikimedia.org/" | ||
Zeile 289: | Zeile 290: | ||
r = "{| class='wikitable sortable'\n" .. | r = "{| class='wikitable sortable'\n" .. | ||
"|- class='hintergrundfarbe6'\n" .. | "|- class='hintergrundfarbe6'\n" .. | ||
"! Callsign !! | "! Callsign !! ''repository'' !!class='unsortable'| Infos\n" | ||
for k, v in pairs( connect ) do | for k, v in pairs( connect ) do | ||
if k:find( "/", 3, true ) then | if k:find( "/", 3, true ) then | ||
Zeile 318: | Zeile 319: | ||
sign = order[ i ] | sign = order[ i ] | ||
show = callsigns[ sign ] | show = callsigns[ sign ] | ||
r = string.format( "%s|-\n|[%s%s%s %s]||%s\n", | r = string.format( "%s|- id='%s'\n|[%s%s%s %s]||%s\n", | ||
r, Site, sub, sign, sign, show ) | r, sign, Site, sub, sign, sign, show ) | ||
pages = { } | pages = { } | ||
details = connect[ sign ] | details = connect[ sign ] | ||
Zeile 563: | Zeile 564: | ||
if show then | if show then | ||
show = "r" .. show | show = "r" .. show | ||
else | else | ||
show = "GIT:" | show = "GIT:" | ||
Zeile 580: | Zeile 580: | ||
r = string.format( "[%s %s]", r, show ) | r = string.format( "[%s %s]", r, show ) | ||
if lapsus then | if lapsus then | ||
r = | r = string.format( "%s[[%s/Diffusion]]", | ||
r, Sick ) | |||
end | end | ||
return r | return r | ||
Zeile 840: | 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>[[%s]]", | |||
r = string.format( "<span class=\"error\">%s</span>%s", | r, Sick ) | ||
r, | |||
end | end | ||
return r | return r |