<?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%2FCabayi</id>
	<title>Module:Sandbox/Cabayi - 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%2FCabayi"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Cabayi&amp;action=history"/>
	<updated>2026-06-19T06:18:13Z</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/Cabayi&amp;diff=145246&amp;oldid=prev</id>
		<title>imported&gt;Cabayi: Cabayi moved page Module:Sandbox/For (;;) to Module:Sandbox/Cabayi without leaving a redirect: name change</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Cabayi&amp;diff=145246&amp;oldid=prev"/>
		<updated>2016-08-16T14:24:38Z</updated>

		<summary type="html">&lt;p&gt;Cabayi moved page &lt;a href=&quot;/index.php?title=Module:Sandbox/For_(;;)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Sandbox/For (;;) (page does not exist)&quot;&gt;Module:Sandbox/For (;;)&lt;/a&gt; to &lt;a href=&quot;/research/Module:Sandbox/Cabayi&quot; title=&quot;Module:Sandbox/Cabayi&quot;&gt;Module:Sandbox/Cabayi&lt;/a&gt; without leaving a redirect: name change&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
p.hansard = function(frame)&lt;br /&gt;
	-- get from wikidata&lt;br /&gt;
	local entity = mw.wikibase.getEntityObject()&lt;br /&gt;
	local rettxt = &amp;quot;&amp;quot;&lt;br /&gt;
--	local hansardcurr = 4068   -- use Harrington for now...&lt;br /&gt;
	local hansardcurr = 2631   -- no, use Clegg for now...&lt;br /&gt;
&lt;br /&gt;
-- Parliaments prior to 2005, millbanksystems.com&lt;br /&gt;
	if entity[&amp;#039;claims&amp;#039;][&amp;quot;P2170&amp;quot;] then&lt;br /&gt;
		rettxt = rettxt .. &amp;quot;2005 &amp;amp; prev\n&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	for i = 1, 3 do			-- at most 3 parliaments to date (2016)&lt;br /&gt;
		if entity[&amp;#039;claims&amp;#039;][&amp;quot;P463&amp;quot;][i] == nil then&lt;br /&gt;
			break			-- no parliament found&lt;br /&gt;
		end&lt;br /&gt;
		local parlid = entity[&amp;#039;claims&amp;#039;][&amp;quot;P463&amp;quot;][i][&amp;quot;mainsnak&amp;quot;][&amp;quot;datavalue&amp;quot;][&amp;quot;value&amp;quot;][&amp;quot;numeric-id&amp;quot;] &lt;br /&gt;
		-- |P463|1|mainsnak|datavalue|value|numeric-id&lt;br /&gt;
		if parlid == nil then&lt;br /&gt;
			break			-- no parliament found&lt;br /&gt;
		elseif parlid == 21084471 then&lt;br /&gt;
			-- Parliament 2006 - 2010, parliament.uk&lt;br /&gt;
			rettxt = rettxt .. &amp;quot;\n* Contributions in [[List of MPs elected in the United Kingdom general election, 2005|the 2005–10 Parliament]] at &amp;#039;&amp;#039;[[Hansard]]&amp;#039;&amp;#039; {{*}} [http://www.publications.parliament.uk/pa/cm200607/cmhansrd/cmallfiles/mps/commons_hansard_&amp;quot; .. hansardcurr .. &amp;quot;_od.html 06-07] {{*}} [http://www.publications.parliament.uk/pa/cm200708/cmhansrd/cmallfiles/mps/commons_hansard_&amp;quot; .. hansardcurr .. &amp;quot;_od.html 07-08] {{*}} [http://www.publications.parliament.uk/pa/cm200809/cmhansrd/cmallfiles/mps/commons_hansard_&amp;quot; .. hansardcurr .. &amp;quot;_od.html 08-09] {{*}} [http://www.publications.parliament.uk/pa/cm200910/cmhansrd/cmallfiles/mps/commons_hansard_&amp;quot; .. hansardcurr ..&amp;quot;_od.html 09-10]&amp;quot;&lt;br /&gt;
		elseif parlid == 21084472 or parlid == 21084473 then&lt;br /&gt;
			-- Parliament 2010 - present, digiminster.com using the number from P1996&lt;br /&gt;
			rettxt = rettxt .. &amp;quot;\n* Contributions in [[List of MPs elected in the United Kingdom general election, 2010|the 2010–15 Parliament]] at &amp;#039;&amp;#039;[[Hansard]]&amp;#039;&amp;#039; {{*}} [http://www.publications.parliament.uk/pa/cm201011/cmhansrd/cmallfiles/mps/commons_hansard_&amp;quot; .. hansardcurr .. &amp;quot;_od.html 10-12(1)] {{*}} [http://www.publications.parliament.uk/pa/cm201212/cmhansrd/cmallfiles/mps/commons_hansard_&amp;quot; .. hansardcurr .. &amp;quot;_od.html 10-12(2)] {{*}} [http://www.publications.parliament.uk/pa/cm201213/cmhansrd/cmallfiles/mps/commons_hansard_&amp;quot; .. hansardcurr .. &amp;quot;_od.html 12-13] {{*}} [http://www.publications.parliament.uk/pa/cm201314/cmhansrd/cmallfiles/mps/commons_hansard_&amp;quot; .. hansardcurr .. &amp;quot;_od.html 13-14] {{*}} [http://www.publications.parliament.uk/pa/cm201415/cmhansrd/cmallfiles/mps/commons_hansard_&amp;quot; .. hansardcurr .. &amp;quot;_od.html 14-15]&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			-- meh&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return rettxt ..&amp;quot;\n&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Cabayi</name></author>
	</entry>
</feed>