https://anthrowiki.at/index.php?title=Modul:Vorlage:Internetquelle&feed=atom&action=historyModul:Vorlage:Internetquelle - Versionsgeschichte2024-03-28T16:22:06ZVersionsgeschichte dieser Seite in AnthroWikiMediaWiki 1.40.0https://anthrowiki.at/index.php?title=Modul:Vorlage:Internetquelle&diff=297024&oldid=previmported>Odyssee: Die Seite wurde neu angelegt: „local Serial = "LEGACY 2019-01-22" --[=[ Unterstützung für {{Internetquelle}} *** Vorabversion: LEGACY/Vorlagenprogrammierung Altbestand ]=] local p = { }…“2020-12-05T06:48:40Z<p>Die Seite wurde neu angelegt: „local Serial = "LEGACY 2019-01-22" --[=[ Unterstützung für {{Internetquelle}} *** Vorabversion: LEGACY/Vorlagenprogrammierung Altbestand ]=] local p = { }…“</p>
<p><b>Neue Seite</b></p><div>local Serial = "LEGACY 2019-01-22"<br />
--[=[<br />
Unterstützung für {{Internetquelle}} *** Vorabversion: LEGACY/Vorlagenprogrammierung Altbestand<br />
]=]<br />
local p = { }<br />
<br />
<br />
p.archivBot = function ( frame )<br />
-- Parmeter archiv-bot analysieren<br />
local s = frame.args.stamp<br />
local r<br />
if s and s ~= "" and s ~= "0" then<br />
if s == "1" or<br />
s:match( "^20[12]%d%-[0-1]%d%-[0-3]%d" ) then<br />
r = frame.args.text<br />
else<br />
local e = mw.html.create( "span" )<br />
:attr( "class", "error" )<br />
s = "Internetquelle: archiv-bot ungültig"<br />
r = tostring( e:wikitext( s ) )<br />
end<br />
end<br />
return r or ""<br />
end -- p.archivBot<br />
<br />
<br />
<br />
p.archivURL = function ( frame )<br />
-- Parmeter archiv-url verwerten<br />
local s = frame.args[ 1 ]<br />
local start = s:match( "^https?://(%S+)$" )<br />
local r<br />
if start then<br />
if start:sub( 1, 11 ) == "archive.is/" then<br />
r = string.format( "https://archive.today/%s",<br />
start:sub( 12 ) )<br />
else <br />
r = s<br />
end <br />
else<br />
local e = mw.html.create( "span" )<br />
:attr( "class", "error" )<br />
s = "Internetquelle: archiv-url ungültig"<br />
r = tostring( e:wikitext( s ) )<br />
end<br />
return r<br />
end -- p.archivURL<br />
<br />
<br />
<br />
p.Endpunkt = function ( frame )<br />
-- LEGACY für Vorlage:Internetquelle<br />
local r = ""<br />
local s = frame.args.titel<br />
if s then<br />
local Text = require( "Module:Text" )<br />
Text = Text.Text()<br />
if Text.sentenceTerminated( s ) then<br />
r = ""<br />
else<br />
r = "."<br />
end<br />
end<br />
return r<br />
end -- p.Endpunkt<br />
<br />
<br />
<br />
p.TitelFormat = function ( frame )<br />
-- LEGACY für Vorlage:Internetquelle<br />
local r = ""<br />
local s = frame.args.titel<br />
if s then<br />
local Text = require( "Module:Text" )<br />
Text = Text.Text()<br />
if Text.sentenceTerminated( s ) then<br />
r = s<br />
else<br />
r = s .. "."<br />
end<br />
r = string.format( "<i>%s</i>", r )<br />
end<br />
return r<br />
end -- p.TitelFormat<br />
<br />
function p.failsafe()<br />
return Serial<br />
end<br />
<br />
return p</div>imported>Odyssee