https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Wikipedia%3ALua%2FModul%2FCoordParse%2Fen
Wikipedia:Lua/Modul/CoordParse/en - Versionsgeschichte
2025-05-04T08:12:25Z
Versionsgeschichte dieser Seite in Wikipedia
MediaWiki 1.44.0-wmf.27
https://de.wikipedia.org/w/index.php?title=Wikipedia:Lua/Modul/CoordParse/en&diff=226133406&oldid=prev
PerfektesChaos: Setup
2022-09-13T14:36:39Z
<p>Setup</p>
<p><b>Neue Seite</b></p><div>{{LuaModuleDoc}}<br />
<onlyinclude>'''<code>PageTree</code>''' – Module for parsing and validation of (geo) coordinates.<br />
<br />
== {{Anker|template}} Functions for templates ==<br />
<br />
; feed {{Anker|feed}}<br />
: Parse single string<br />
:* '''1''' – coordinate value, to be parsed<br />
:* '''latitude''' – <code>1</code> = latitude, else longitude<br />
:* parameters for [[#compass|direction configuration]]<br />
:* parameters for [[#errorMgmt|error management]]<br />
; fragments {{Anker|fragments}}<br />
: Process four components<br />
:* '''1''' – degree<br />
:* '''2''' – ''(optional)'' minutes<br />
:* '''3''' – ''(optional)'' seconds<br />
:* '''4''' – ''(optional)'' direction (<code>N</code>, <code>E</code>, <code>S</code>, <code>W</code> usw.)<br />
:* '''latitude''' – <code>1</code> = Breitenkoordinate, sonst Länge<br />
:* parameters for [[#compass|direction configuration]]<br />
:* parameters for [[#errorMgmt|error management]]<br />
; failsafe {{Anker|failsafe}}<br />
: Version management<br />
{{Wikipedia:Lua/Modul-Failsafe/en|Modul=CoordParse}}<br />
</onlyinclude><br />
== {{Anker|Lua}} Functions for Lua modules (API) ==<br />
Some functions described above can be used by other modules:<br />
<syntaxhighlight lang="lua"><br />
local lucky, CoordParse = pcall( require, "Module:CoordParse" )<br />
if type( CoordParse ) == "table" then<br />
CoordParse = CoordParse()<br />
else<br />
-- failure; CoordParse is the error message<br />
return "<span class='error'>" .. CoordParse .. "</span>"<br />
end<br />
</syntaxhighlight><br />
<br />
; Expr.[[#failsafe|failsafe]]( atleast )<br />
: ''(see above)''<br />
<br />
== Usage ==<br />
General library; no limitations.<br />
<br />
== Dependencies ==<br />
* [{{canonicalurl:Special:MyLanguage/Wikipedia:Lua/Modul/Expr}} Expr]<br />
<br />
[[Kategorie:Wikipedia:Lua/Modul/Dokumentation|CoordParse/en]]</div>
PerfektesChaos