<?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%2FB2project%2Fsub</id>
	<title>Module:Sandbox/B2project/sub - 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%2FB2project%2Fsub"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/B2project/sub&amp;action=history"/>
	<updated>2026-04-17T18:45:49Z</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/B2project/sub&amp;diff=145178&amp;oldid=prev</id>
		<title>imported&gt;B2project: ←Created page with &#039;-- Subfunctions for this module that are called from the style modules local ppp = {}  function ppp.colhead(ttt,width,text) 	-- For individual column headers 	lo...&#039;</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/B2project/sub&amp;diff=145178&amp;oldid=prev"/>
		<updated>2016-06-08T14:58:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=WP:AES&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:AES (page does not exist)&quot;&gt;←&lt;/a&gt;Created page with &amp;#039;-- Subfunctions for this module that are called from the style modules local ppp = {}  function ppp.colhead(ttt,width,text) 	-- For individual column headers 	lo...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Subfunctions for this module that are called from the style modules&lt;br /&gt;
local ppp = {}&lt;br /&gt;
&lt;br /&gt;
function ppp.colhead(ttt,width,text)&lt;br /&gt;
	-- For individual column headers&lt;br /&gt;
	local head_string&lt;br /&gt;
	if width==&amp;#039;auto&amp;#039; then&lt;br /&gt;
		head_string = &amp;#039;! scope=&amp;quot;col&amp;quot; |&amp;#039;..text..&amp;#039;\n&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		head_string = &amp;#039;! scope=&amp;quot;col&amp;quot; width=&amp;#039;..width..&amp;#039;|&amp;#039;..text..&amp;#039;\n&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	ttt.count = ttt.count+1&lt;br /&gt;
	table.insert(ttt.tab_text,head_string)&lt;br /&gt;
	&lt;br /&gt;
	return ttt&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function ppp.hth(frame,Args,full_table,hth_id_list,hth_local,notes_exist,team_list,team_code_ii,ii_start,ii_end,rand_val)&lt;br /&gt;
	-- For head-to-head notes&lt;br /&gt;
	local hth_string,hth_local_num, hth_id&lt;br /&gt;
	&lt;br /&gt;
	-- Check whether there is a head-to-head note or not, if so get text ready for it the same way as for the notes&lt;br /&gt;
	if hth_local and full_table then&lt;br /&gt;
		-- Set global check for notes to true&lt;br /&gt;
		notes_exist = true&lt;br /&gt;
		if not Args[&amp;#039;hth_&amp;#039;..hth_local] then&lt;br /&gt;
			-- Option 1&lt;br /&gt;
			-- Now define the identifier for this&lt;br /&gt;
			hth_id = &amp;#039;&amp;quot;table_hth_&amp;#039;..team_code_ii..rand_val..&amp;#039;&amp;quot;&amp;#039; -- Add random end for unique ID if more tables are present on article (which might otherwise share an ID)&lt;br /&gt;
			hth_id_list[team_code_ii] = hth_id&lt;br /&gt;
			-- Call refn template&lt;br /&gt;
			hth_string = frame:expandTemplate{ title = &amp;#039;efn&amp;#039;, args = { group=&amp;#039;Table_notes&amp;#039;,  name=hth_id, hth_local} }&lt;br /&gt;
		else &lt;br /&gt;
			-- Option 2&lt;br /&gt;
			hth_local_num = team_list[hth_local]&lt;br /&gt;
			if hth_id_list[hth_local] or ((hth_local_num &amp;gt;= ii_start) and (hth_local_num &amp;lt;= ii_end)) then&lt;br /&gt;
				-- Option 2a&lt;br /&gt;
				hth_id = &amp;#039;&amp;quot;table_hth_&amp;#039;..hth_local..rand_val..&amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
				hth_string = frame:extensionTag{ name = &amp;#039;ref&amp;#039;, args = { group = &amp;#039;lower-alpha&amp;#039;, name = hth_id} }&lt;br /&gt;
			else&lt;br /&gt;
				-- Option 2b&lt;br /&gt;
				hth_id = &amp;#039;&amp;quot;table_hth_&amp;#039;..hth_local..rand_val..&amp;#039;&amp;quot;&amp;#039; -- Add random end for unique ID&lt;br /&gt;
				hth_id_list[hth_local] = hth_id&lt;br /&gt;
				-- Call refn template&lt;br /&gt;
				hth_string = frame:expandTemplate{ title = &amp;#039;efn&amp;#039;, args = { group=&amp;#039;Table_notes&amp;#039;,  name=hth_id, Args[&amp;#039;hth_&amp;#039;..hth_local]} }&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		hth_string = &amp;#039;&amp;#039;;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return {str=hth_string, list=hth_id_list, notes_exist=notes_exist}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return ppp&lt;/div&gt;</summary>
		<author><name>imported&gt;B2project</name></author>
	</entry>
</feed>