https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Modul%3AUSCGlist
Modul:USCGlist - Versionsgeschichte
2025-06-24T11:06:17Z
Versionsgeschichte dieser Seite in Wikipedia
MediaWiki 1.45.0-wmf.6
https://de.wikipedia.org/w/index.php?title=Modul:USCGlist&diff=216736967&oldid=prev
Kpfiwa: Korrektur
2021-10-27T17:25:44Z
<p>Korrektur</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 27. Oktober 2021, 19:25 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 28:</td>
<td colspan="2" class="diff-lineno">Zeile 28:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local url2 = ".pdf#page="</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local url2 = ".pdf#page="</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local url3de = "]'' (PDF) [[United States Coast Guard|USCG]] (englisch)"</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local url3de = "]'' (PDF) [[United States Coast Guard|USCG]] (englisch)"</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>local url3 = "]'' (PDF) (=&nbsp;''[<del style="font-weight: bold; text-decoration: none;">https://www.navcen.uscg.gov/?pageName=lightLists</del> Light List]'') [[United States Coast Guard]] "</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>local url3 = "]'' (PDF) (=&nbsp;''[<ins style="font-weight: bold; text-decoration: none;">[Leuchtfeuerliste</ins> <ins style="font-weight: bold; text-decoration: none;">der US-Küstenwache|</ins>Light List<ins style="font-weight: bold; text-decoration: none;">]</ins>]'') [[United States Coast Guard]] "</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local function toroman(nr) -- wandelt arabische in römische Ziffern</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local function toroman(nr) -- wandelt arabische in römische Ziffern</div></td>
</tr>
</table>
Kpfiwa
https://de.wikipedia.org/w/index.php?title=Modul:USCGlist&diff=216736933&oldid=prev
Kpfiwa: Linkkorrektur Light List
2021-10-27T17:23:49Z
<p>Linkkorrektur Light List</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 27. Oktober 2021, 19:23 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 28:</td>
<td colspan="2" class="diff-lineno">Zeile 28:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local url2 = ".pdf#page="</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local url2 = ".pdf#page="</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local url3de = "]'' (PDF) [[United States Coast Guard|USCG]] (englisch)"</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local url3de = "]'' (PDF) [[United States Coast Guard|USCG]] (englisch)"</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>local url3 = "]'' (PDF) (=<del style="font-weight: bold; text-decoration: none;"> </del>''[<del style="font-weight: bold; text-decoration: none;">[</del>:<del style="font-weight: bold; text-decoration: none;">en:List</del> <del style="font-weight: bold; text-decoration: none;">of</del> <del style="font-weight: bold; text-decoration: none;">Lights|</del>List<del style="font-weight: bold; text-decoration: none;"> of Lights]</del>]'') [[United States Coast Guard]] "</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>local url3 = "]'' (PDF) (=<ins style="font-weight: bold; text-decoration: none;">&nbsp;</ins>''[<ins style="font-weight: bold; text-decoration: none;">https</ins>:<ins style="font-weight: bold; text-decoration: none;">//www.navcen.uscg.gov/?pageName=lightLists</ins> <ins style="font-weight: bold; text-decoration: none;">Light</ins> List]'') [[United States Coast Guard]] "</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local function toroman(nr) -- wandelt arabische in römische Ziffern</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>local function toroman(nr) -- wandelt arabische in römische Ziffern</div></td>
</tr>
</table>
Kpfiwa
https://de.wikipedia.org/w/index.php?title=Modul:USCGlist&diff=216721111&oldid=prev
Kpfiwa: Band VII nachgetragen
2021-10-27T06:35:21Z
<p>Band VII nachgetragen</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 27. Oktober 2021, 08:35 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 45:</td>
<td colspan="2" class="diff-lineno">Zeile 45:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> elseif nr == 6 then</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> elseif nr == 6 then</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ret = "VI–"</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ret = "VI–"</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> elseif nr == 7 then</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> ret = "VII–"</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> else</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> else</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ret = ""</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> ret = ""</div></td>
</tr>
</table>
Kpfiwa
https://de.wikipedia.org/w/index.php?title=Modul:USCGlist&diff=216720510&oldid=prev
Kpfiwa: Neuzulassung, ausbaubar mit besserer Kombi für Handbuchnummer römisch direkt
2021-10-27T05:57:23Z
<p>Neuzulassung, ausbaubar mit besserer Kombi für Handbuchnummer römisch direkt</p>
<p><b>Neue Seite</b></p><div>--[=[ USCGlink Version 1, 2021-10-27<br />
Ausgabe einen Links, Aufruf PDF-Liste I - VII, internationalisiert<br />
--]=]<br />
<br />
p = {}<br />
<br />
local uscgen = {<br />
-- Originaltitel<br />
[1] = "Light List, Volume I, Atlantic&nbsp;Coast, St.&nbsp;Croix&nbsp;River, Maine to Shrewsbury&nbsp;River, New&nbsp;Jersey",<br />
[2] = "Light List, Volume II, Atlantic&nbsp;Coast, Shrewsbury&nbsp;River, New&nbsp;Jersey to Little&nbsp;River, South&nbsp;Carolina",<br />
[3] = "Light List, Volume III, Atlantic&nbsp;Coast, Little&nbsp;River, South&nbsp;Carolina to Econfina&nbsp;River, Florida",<br />
[4] = "Light List, Volume IV, Gulf of Mexico",<br />
[5] = "Light List, Volume V, Mississippi River System",<br />
[6] = "Light List, Volume VI, Pacific&nbsp;Coast and Pacific&nbsp;Islands",<br />
[7] = "Light List, Volume VII, Great Lakes"<br />
}<br />
local uscgde = {<br />
[1] = "US-Leuchtfeuerliste, Band I, Atlantikküste, St.&nbsp;Croix&nbsp;River, Maine bis Shrewsbury&nbsp;River, New&nbsp;Jersey",<br />
[2] = "US-Leuchtfeuerliste, Band II, Atlantikküste, Shrewsbury&nbsp;River, New&nbsp;Jersey bis Little&nbsp;River, South&nbsp;Carolina",<br />
[3] = "US-Leuchtfeuerliste, Band III, Atlantikküste, Little&nbsp;River, South&nbsp;Carolina bis Econfina&nbsp;River, Florida",<br />
[4] = "US-Leuchtfeuerliste, Band IV, Golf von Mexiko",<br />
[5] = "US-Leuchtfeuerliste, Band V, Mississippi-Fluss-System",<br />
[6] = "US-Leuchtfeuerliste, Band VI, Pazifikküste und Pazifikinseln",<br />
[7] = "US-Leuchtfeuerliste, Band VII, Große Seen"<br />
}<br />
-- https://www.navcen.uscg.gov/pdf/lightLists/LightList%20V5.pdf#page=<br />
local url1 = "[https://www.navcen.uscg.gov/pdf/lightLists/LightList%20V"<br />
local url2 = ".pdf#page="<br />
local url3de = "]'' (PDF) [[United States Coast Guard|USCG]] (englisch)"<br />
local url3 = "]'' (PDF) (= ''[[:en:List of Lights|List of Lights]]'') [[United States Coast Guard]] "<br />
<br />
local function toroman(nr) -- wandelt arabische in römische Ziffern<br />
local ret = ""<br />
nr = tonumber(nr)<br />
if nr == 1 then<br />
ret = "I-"<br />
elseif nr == 2 then<br />
ret = "II–"<br />
elseif nr == 3 then<br />
ret = "III–"<br />
elseif nr == 4 then<br />
ret = "IV–"<br />
elseif nr == 5 then<br />
ret = "V–"<br />
elseif nr == 6 then<br />
ret = "VI–"<br />
else<br />
ret = ""<br />
end<br />
return ret<br />
end<br />
<br />
local function tu(a, z) -- wandelt 'a' in Versialen und gibt 'z' Anfangsbuchstabe/n zurück<br />
return string.sub(string.upper(a or ""), 1, z or 1)<br />
end -- function tu(a, z)<br />
<br />
function split(s) -- Teilt kombinierte Nummern wie 7-34567 oder sogar IV1234 auf<br />
s = tu(s, -1) or ""<br />
local a, c<br />
local b = 0<br />
if #s > 1 then<br />
a, b = string.match(s .. "?", "([1-7IV]+)[%s%D]*([%s%.%d]*)")<br />
if a == "I" then<br />
a = 1<br />
elseif a == "II" then<br />
a = 2<br />
elseif a == "III" then<br />
a = 3<br />
elseif a == "IV" then<br />
a = 4<br />
elseif a == "V" then<br />
a = 5<br />
elseif a == "VI" then<br />
a = 6<br />
elseif a == "VII" then<br />
a = 7<br />
end -- if a ==<br />
else -- if #s<br />
a = s<br />
end -- if #s<br />
return tonumber(a) or 0, (b or 0)<br />
end -- function split(s)<br />
<br />
-- Übergeben werden 1=volume, [2|j|y=year], [3|p|s=page], [i=titel],[n=nummer],[l=USCGlabel]<br />
function p.uscg(frame)<br />
local lang = "DE" -- for Germaan version only!<br />
local page, year, OK = 1, 1, 1<br />
local USCGlabel, USCGnr, VOLnr<br />
local titel = ""<br />
-- Abfrage der Spracheintellung, falls anders als DE<br />
frame = mw.getCurrentFrame()<br />
local lang = tu(mw.getContentLanguage():getCode(), 2)<br />
local frame = frame:getParent()<br />
-- Abfrage der Prameter<br />
for key, val in pairs(frame.args) do -- Parameter sammeln und zuordnen<br />
key = tu(key)<br />
if key == "1" or key == "V" then<br />
VOLnr, listnr = split(val) -- macht Kombis wie wie 5-20985, 5/20985, V,20985 möglich<br />
USCGnr = tonumber(listnr) or 0<br />
if USCGnr < 1 then<br />
USCGnr = nil<br />
end<br />
elseif key == "2" or key == "Y" or key == "J" then<br />
year = tonumber(val) or 0<br />
elseif key == "3" or key == "P" or key == "S" then<br />
page = tonumber(val) or 1<br />
elseif key == "U" or key == "N" then -- USCG-Nummmer<br />
USCGnr = tonumber(val)<br />
elseif key == "L" then -- Nummer mit Label<br />
USCGlabel = "USCG:&nbsp;"<br />
elseif key == "I" then -- Internationale Version<br />
lang = tu(val, 1)<br />
elseif key == "P" then -- Seitennummer erforderlich<br />
page = val<br />
end -- if key 1 2 3 ...<br />
end -- for key, val<br />
--[[ Div. Fehler und Logikkontrollen. Reihenfolge wichtig <br />
Hier, da übergebene Parameter keine nachvollziehbare Reihenfolge haben --]]<br />
if USCGlabel then<br />
USCGlabel = USCGlabel .. toroman(VOLnr) .. (USCGnr or "")<br />
else<br />
USCGlabel = toroman(VOLnr) .. (USCGnr or "")<br />
end<br />
----<br />
if USCGnr or direct then<br />
return "[https://www.navcen.uscg.gov/pdf/lightLists/LightList%20V" ..<br />
(VOLnr or 0) .. ".pdf#page=" .. (page or 0) .. " " .. (USCGlabel or "?") .. "]"<br />
end<br />
----<br />
if year < 2022 and year > 2002 then -- geht nicht vor Gründung und nicht für Zukunft<br />
year = ", " .. year<br />
else<br />
year = " "<br />
end -- if year<br />
----<br />
if lang == "DE" then<br />
if tonumber(page) > 0 then<br />
pagenr = " S. " .. page .. " "<br />
end -- gibt S. 123<br />
USCGtitel = uscgde<br />
url3 = url3de<br />
else<br />
USCGtitel = uscgen<br />
end -- if lang == "DE"<br />
-- allgemeiner Link auf Auswahlseite<br />
if not VOLnr or tonumber(VOLnr) < 1 or tonumber(VOLnr) > 7 then<br />
if USCGlabel then<br />
return "''[https://www.navcen.uscg.gov/?pageName=lightLists Light&nbsp;List (Annual&nbsp;Publication)]'' (PDF) [[United States Coast Guard|USCG]] (englisch)"<br />
else<br />
return "''[https://www.navcen.uscg.gov/?pageName=lightLists Light&nbsp;List (Annual&nbsp;Publication)]'' [[United States Coast Guard|USCG]]"<br />
end<br />
else<br />
titel = USCGtitel[VOLnr]<br />
end -- if not VOLnr<br />
-- Reste raus und FINITO!<br />
return "''" .. url1 .. VOLnr .. url2 .. page .. " " .. titel .. url3 .. year .. (pagenr or "") .. (USCGnr or "")<br />
end -- function p.uscg(frame)<br />
return p</div>
Kpfiwa