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) (=&amp;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) (=&amp;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;">&amp;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] = &quot;Light List, Volume I, Atlantic&amp;nbsp;Coast, St.&amp;nbsp;Croix&amp;nbsp;River, Maine to Shrewsbury&amp;nbsp;River, New&amp;nbsp;Jersey&quot;,<br /> [2] = &quot;Light List, Volume II, Atlantic&amp;nbsp;Coast, Shrewsbury&amp;nbsp;River, New&amp;nbsp;Jersey to Little&amp;nbsp;River, South&amp;nbsp;Carolina&quot;,<br /> [3] = &quot;Light List, Volume III, Atlantic&amp;nbsp;Coast, Little&amp;nbsp;River, South&amp;nbsp;Carolina to Econfina&amp;nbsp;River, Florida&quot;,<br /> [4] = &quot;Light List, Volume IV, Gulf of Mexico&quot;,<br /> [5] = &quot;Light List, Volume V, Mississippi River System&quot;,<br /> [6] = &quot;Light List, Volume VI, Pacific&amp;nbsp;Coast and Pacific&amp;nbsp;Islands&quot;,<br /> [7] = &quot;Light List, Volume VII, Great Lakes&quot;<br /> }<br /> local uscgde = {<br /> [1] = &quot;US-Leuchtfeuerliste, Band I, Atlantikküste, St.&amp;nbsp;Croix&amp;nbsp;River, Maine bis Shrewsbury&amp;nbsp;River, New&amp;nbsp;Jersey&quot;,<br /> [2] = &quot;US-Leuchtfeuerliste, Band II, Atlantikküste, Shrewsbury&amp;nbsp;River, New&amp;nbsp;Jersey bis Little&amp;nbsp;River, South&amp;nbsp;Carolina&quot;,<br /> [3] = &quot;US-Leuchtfeuerliste, Band III, Atlantikküste, Little&amp;nbsp;River, South&amp;nbsp;Carolina bis Econfina&amp;nbsp;River, Florida&quot;,<br /> [4] = &quot;US-Leuchtfeuerliste, Band IV, Golf von Mexiko&quot;,<br /> [5] = &quot;US-Leuchtfeuerliste, Band V, Mississippi-Fluss-System&quot;,<br /> [6] = &quot;US-Leuchtfeuerliste, Band VI, Pazifikküste und Pazifikinseln&quot;,<br /> [7] = &quot;US-Leuchtfeuerliste, Band VII, Große Seen&quot;<br /> }<br /> -- https://www.navcen.uscg.gov/pdf/lightLists/LightList%20V5.pdf#page=<br /> local url1 = &quot;[https://www.navcen.uscg.gov/pdf/lightLists/LightList%20V&quot;<br /> local url2 = &quot;.pdf#page=&quot;<br /> local url3de = &quot;]&#039;&#039; (PDF) [[United States Coast Guard|USCG]] (englisch)&quot;<br /> local url3 = &quot;]&#039;&#039; (PDF) (= &#039;&#039;[[:en:List of Lights|List of Lights]]&#039;&#039;) [[United States Coast Guard]] &quot;<br /> <br /> local function toroman(nr) -- wandelt arabische in römische Ziffern<br /> local ret = &quot;&quot;<br /> nr = tonumber(nr)<br /> if nr == 1 then<br /> ret = &quot;I-&quot;<br /> elseif nr == 2 then<br /> ret = &quot;II–&quot;<br /> elseif nr == 3 then<br /> ret = &quot;III–&quot;<br /> elseif nr == 4 then<br /> ret = &quot;IV–&quot;<br /> elseif nr == 5 then<br /> ret = &quot;V–&quot;<br /> elseif nr == 6 then<br /> ret = &quot;VI–&quot;<br /> else<br /> ret = &quot;&quot;<br /> end<br /> return ret<br /> end<br /> <br /> local function tu(a, z) -- wandelt &#039;a&#039; in Versialen und gibt &#039;z&#039; Anfangsbuchstabe/n zurück<br /> return string.sub(string.upper(a or &quot;&quot;), 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 &quot;&quot;<br /> local a, c<br /> local b = 0<br /> if #s &gt; 1 then<br /> a, b = string.match(s .. &quot;?&quot;, &quot;([1-7IV]+)[%s%D]*([%s%.%d]*)&quot;)<br /> if a == &quot;I&quot; then<br /> a = 1<br /> elseif a == &quot;II&quot; then<br /> a = 2<br /> elseif a == &quot;III&quot; then<br /> a = 3<br /> elseif a == &quot;IV&quot; then<br /> a = 4<br /> elseif a == &quot;V&quot; then<br /> a = 5<br /> elseif a == &quot;VI&quot; then<br /> a = 6<br /> elseif a == &quot;VII&quot; 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 = &quot;DE&quot; -- for Germaan version only!<br /> local page, year, OK = 1, 1, 1<br /> local USCGlabel, USCGnr, VOLnr<br /> local titel = &quot;&quot;<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 == &quot;1&quot; or key == &quot;V&quot; 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 &lt; 1 then<br /> USCGnr = nil<br /> end<br /> elseif key == &quot;2&quot; or key == &quot;Y&quot; or key == &quot;J&quot; then<br /> year = tonumber(val) or 0<br /> elseif key == &quot;3&quot; or key == &quot;P&quot; or key == &quot;S&quot; then<br /> page = tonumber(val) or 1<br /> elseif key == &quot;U&quot; or key == &quot;N&quot; then -- USCG-Nummmer<br /> USCGnr = tonumber(val)<br /> elseif key == &quot;L&quot; then -- Nummer mit Label<br /> USCGlabel = &quot;USCG:&amp;nbsp;&quot;<br /> elseif key == &quot;I&quot; then -- Internationale Version<br /> lang = tu(val, 1)<br /> elseif key == &quot;P&quot; 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 &quot;&quot;)<br /> else<br /> USCGlabel = toroman(VOLnr) .. (USCGnr or &quot;&quot;)<br /> end<br /> ----<br /> if USCGnr or direct then<br /> return &quot;[https://www.navcen.uscg.gov/pdf/lightLists/LightList%20V&quot; ..<br /> (VOLnr or 0) .. &quot;.pdf#page=&quot; .. (page or 0) .. &quot; &quot; .. (USCGlabel or &quot;?&quot;) .. &quot;]&quot;<br /> end<br /> ----<br /> if year &lt; 2022 and year &gt; 2002 then -- geht nicht vor Gründung und nicht für Zukunft<br /> year = &quot;, &quot; .. year<br /> else<br /> year = &quot; &quot;<br /> end -- if year<br /> ----<br /> if lang == &quot;DE&quot; then<br /> if tonumber(page) &gt; 0 then<br /> pagenr = &quot; S. &quot; .. page .. &quot; &quot;<br /> end -- gibt S. 123<br /> USCGtitel = uscgde<br /> url3 = url3de<br /> else<br /> USCGtitel = uscgen<br /> end -- if lang == &quot;DE&quot;<br /> -- allgemeiner Link auf Auswahlseite<br /> if not VOLnr or tonumber(VOLnr) &lt; 1 or tonumber(VOLnr) &gt; 7 then<br /> if USCGlabel then<br /> return &quot;&#039;&#039;[https://www.navcen.uscg.gov/?pageName=lightLists Light&amp;nbsp;List (Annual&amp;nbsp;Publication)]&#039;&#039; (PDF) [[United States Coast Guard|USCG]] (englisch)&quot;<br /> else<br /> return &quot;&#039;&#039;[https://www.navcen.uscg.gov/?pageName=lightLists Light&amp;nbsp;List (Annual&amp;nbsp;Publication)]&#039;&#039; [[United States Coast Guard|USCG]]&quot;<br /> end<br /> else<br /> titel = USCGtitel[VOLnr]<br /> end -- if not VOLnr<br /> -- Reste raus und FINITO!<br /> return &quot;&#039;&#039;&quot; .. url1 .. VOLnr .. url2 .. page .. &quot; &quot; .. titel .. url3 .. year .. (pagenr or &quot;&quot;) .. (USCGnr or &quot;&quot;)<br /> end -- function p.uscg(frame)<br /> return p</div> Kpfiwa