<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2Ftrappist_the_monk%2Fwd_lat_lon</id>
	<title>Module:Sandbox/trappist the monk/wd lat lon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2Ftrappist_the_monk%2Fwd_lat_lon"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/trappist_the_monk/wd_lat_lon&amp;action=history"/>
	<updated>2026-07-29T16:01:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/trappist_the_monk/wd_lat_lon&amp;diff=146639&amp;oldid=prev</id>
		<title>imported&gt;Legoktm: Replace Module:No globals with require( &quot;strict&quot; )</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/trappist_the_monk/wd_lat_lon&amp;diff=146639&amp;oldid=prev"/>
		<updated>2022-10-23T20:59:35Z</updated>

		<summary type="html">&lt;p&gt;Replace &lt;a href=&quot;/research/Module:No_globals&quot; title=&quot;Module:No globals&quot;&gt;Module:No globals&lt;/a&gt; with require( &amp;quot;strict&amp;quot; )&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
local get_args = require (&amp;#039;Module:Arguments&amp;#039;).getArgs;&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Sandbox/trappist_the_monk/wd_lat_lon|main}}&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function wikidata_lat_lon_get()&lt;br /&gt;
	local qid = mw.wikibase.getEntityIdForCurrentPage();						-- get the qid for the current page&lt;br /&gt;
	if qid then&lt;br /&gt;
		local value_t = mw.wikibase.getBestStatements (qid, &amp;#039;P625&amp;#039;)[1].mainsnak.datavalue.value;	--point to the value table&lt;br /&gt;
		return value_t.latitude, value_t.longitude;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function main()&lt;br /&gt;
	local lat, lon = wikidata_lat_lon_get();&lt;br /&gt;
	if lat then&lt;br /&gt;
		return &amp;#039;latitude: &amp;#039; .. lat .. &amp;#039;; longitude: &amp;#039; .. lon;&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;no lat/lon&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	main = main&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>imported&gt;Legoktm</name></author>
	</entry>
</feed>