<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3AInterwiki_extra%2Fdata</id>
	<title>Module:Interwiki extra/data - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3AInterwiki_extra%2Fdata"/>
	<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Interwiki_extra/data&amp;action=history"/>
	<updated>2026-04-27T03:33:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Interwiki_extra/data&amp;diff=147957&amp;oldid=prev</id>
		<title>Indicwiki: 1 revision imported from :alpha:Module:Interwiki_extra/data</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Interwiki_extra/data&amp;diff=147957&amp;oldid=prev"/>
		<updated>2023-05-03T03:52:37Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://alpha.indicwiki.in/index.php?title=Module:Interwiki_extra/data&quot; class=&quot;extiw&quot; title=&quot;alpha:Module:Interwiki extra/data&quot;&gt;alpha:Module:Interwiki_extra/data&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:22, 3 May 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Indicwiki</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Interwiki_extra/data&amp;diff=21432&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Interwiki_extra/data&amp;diff=21432&amp;oldid=prev"/>
		<updated>2022-11-01T04:38:36Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:08, 1 November 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Interwiki_extra/data&amp;diff=147956&amp;oldid=prev</id>
		<title>alpha&gt;Sarika: Created page with &quot;-- This module processes data from mw.site.interwikiMap for use with -- Module:Interwiki extra. By loading the data with mw.loadData we ensure that -- this is only done on...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Interwiki_extra/data&amp;diff=147956&amp;oldid=prev"/>
		<updated>2022-05-23T09:40:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- This module processes data from mw.site.interwikiMap for use with -- &lt;a href=&quot;/wiki/Module:Interwiki_extra&quot; title=&quot;Module:Interwiki extra&quot;&gt;Module:Interwiki extra&lt;/a&gt;. By loading the data with mw.loadData we ensure that -- this is only done on...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:10, 23 May 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>alpha&gt;Sarika</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:Interwiki_extra/data&amp;diff=21431&amp;oldid=prev</id>
		<title>wikipedia&gt;Michael Bednarek: nit pick: use moved module name in documentation.</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:Interwiki_extra/data&amp;diff=21431&amp;oldid=prev"/>
		<updated>2020-02-21T12:15:51Z</updated>

		<summary type="html">&lt;p&gt;nit pick: use moved module name in documentation.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module processes data from mw.site.interwikiMap for use with&lt;br /&gt;
-- [[Module:Interwiki extra]]. By loading the data with mw.loadData we ensure that&lt;br /&gt;
-- this is only done once per page parse.&lt;br /&gt;
&lt;br /&gt;
local prefixes, urls, hosts = {}, {}, {}&lt;br /&gt;
&lt;br /&gt;
local function makeCountedData(t, storeKey, counterKey, itemKey, item)&lt;br /&gt;
	t = t or {}&lt;br /&gt;
	t[storeKey] = t[storeKey] or {}&lt;br /&gt;
	t[storeKey][itemKey] = item&lt;br /&gt;
	t[counterKey] = t[counterKey] and t[counterKey] + 1 or 1&lt;br /&gt;
	return t&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
for prefix, data in pairs(mw.site.interwikiMap()) do&lt;br /&gt;
	local prefixData = {}&lt;br /&gt;
	for k, v in pairs(data) do&lt;br /&gt;
		prefixData[k] = v&lt;br /&gt;
	end&lt;br /&gt;
	prefixes[prefix] = prefixData&lt;br /&gt;
&lt;br /&gt;
	local urlData = makeCountedData(&lt;br /&gt;
		urls[urlText],&lt;br /&gt;
		'prefixes',&lt;br /&gt;
		'nPrefixes',&lt;br /&gt;
		prefix,&lt;br /&gt;
		prefixData&lt;br /&gt;
	)&lt;br /&gt;
	urlData.url = prefixData.url&lt;br /&gt;
	urls[urlData.url] = urlData&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
for url, urlData in pairs(urls) do&lt;br /&gt;
	local urlObj = mw.uri.new(url) -- We can't output URI objects as they have metatables&lt;br /&gt;
	if not urlObj or not urlObj.host then&lt;br /&gt;
		error(string.format(&lt;br /&gt;
			&amp;quot;could not find a host in URL '%s'; &amp;quot; ..&lt;br /&gt;
			&amp;quot;please check your wiki's interwiki data&amp;quot;,&lt;br /&gt;
			tostring(url)&lt;br /&gt;
		))&lt;br /&gt;
	end&lt;br /&gt;
	local hostData = makeCountedData(&lt;br /&gt;
		hosts[urlObj.host],&lt;br /&gt;
		'urls',&lt;br /&gt;
		'nUrls',&lt;br /&gt;
		url,&lt;br /&gt;
		urlData&lt;br /&gt;
	)&lt;br /&gt;
	hostData.host = urlObj.host&lt;br /&gt;
	hosts[urlObj.host] = hostData&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	prefixes = prefixes,&lt;br /&gt;
	urls = urls,&lt;br /&gt;
	hosts = hosts&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Michael Bednarek</name></author>
	</entry>
</feed>