<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bharatpedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AProfessional_wrestling_results_table</id>
	<title>Module:Professional wrestling results table - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.bharatpedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AProfessional_wrestling_results_table"/>
	<link rel="alternate" type="text/html" href="https://en.bharatpedia.org/w/index.php?title=Module:Professional_wrestling_results_table&amp;action=history"/>
	<updated>2026-09-07T21:45:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://en.bharatpedia.org/w/index.php?title=Module:Professional_wrestling_results_table&amp;diff=556135&amp;oldid=prev</id>
		<title>WikiDwarf at 05:13, 23 November 2023</title>
		<link rel="alternate" type="text/html" href="https://en.bharatpedia.org/w/index.php?title=Module:Professional_wrestling_results_table&amp;diff=556135&amp;oldid=prev"/>
		<updated>2023-11-23T05:13:30Z</updated>

		<summary type="html">&lt;p&gt;&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;
function p.main(frame)&lt;br /&gt;
	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame, {wrappers = &amp;#039;Template:Professional wrestling results table&amp;#039;})&lt;br /&gt;
	local warnings = {}&lt;br /&gt;
&lt;br /&gt;
	-- Preprocessing&lt;br /&gt;
	local live = &amp;#039;broadcast prior to the pay-per-view on &amp;#039;&lt;br /&gt;
	local taped = &amp;#039;taped for a future broadcast of &amp;#039;&lt;br /&gt;
	local notes = {&lt;br /&gt;
		dark		= {  &amp;#039;D&amp;#039;,			&amp;#039;a [[dark match]]&amp;#039;										},&lt;br /&gt;
		pre			= {  &amp;#039;P&amp;#039;,			&amp;#039;broadcast on the pre-show&amp;#039;								},&lt;br /&gt;
		aewd		= { &amp;#039;AD&amp;#039;,	taped ..&amp;#039;&amp;lt;i&amp;gt;[[AEW Dark|Dark]]&amp;lt;/i&amp;gt;&amp;#039;								},&lt;br /&gt;
		aewde		= { &amp;#039;DE&amp;#039;,	taped ..&amp;#039;&amp;lt;i&amp;gt;[[AEW Dark: Elevation|Dark: Elevation]]&amp;lt;/i&amp;gt;&amp;#039;		},&lt;br /&gt;
		bti	        = {  &amp;#039;B&amp;#039;,	taped ..&amp;#039;&amp;lt;i&amp;gt;[[Before the Impact]]&amp;lt;/i&amp;gt;&amp;#039;				         	},&lt;br /&gt;
		ffa			= {  &amp;#039;F&amp;#039;,	 live ..&amp;#039;&amp;lt;i&amp;gt;[[WWE Free for All|Free for All]]&amp;lt;/i&amp;gt;&amp;#039;				},&lt;br /&gt;
		fusion		= { &amp;#039;FT&amp;#039;,	taped ..&amp;#039;&amp;lt;i&amp;gt;[[MLW Fusion|Fusion]]&amp;lt;/i&amp;gt;&amp;#039;							},&lt;br /&gt;
		fusionlive	= {  &amp;#039;F&amp;#039;,	 live ..&amp;#039;&amp;lt;i&amp;gt;[[MLW Fusion|Fusion]]&amp;lt;/i&amp;gt;&amp;#039;							},&lt;br /&gt;
		heat		= {  &amp;#039;H&amp;#039;,	 live ..&amp;#039;&amp;lt;i&amp;gt;[[WWE Heat|Sunday Night Heat]]&amp;lt;/i&amp;gt;&amp;#039;					},&lt;br /&gt;
		mem 		= {&amp;#039;MEM&amp;#039;,   taped ..&amp;#039;&amp;lt;i&amp;gt;Main Event Mondays&amp;lt;/i&amp;gt;&amp;#039;                             },&lt;br /&gt;
		regnxt		= {  &amp;#039;N&amp;#039;,	taped ..&amp;#039;&amp;lt;i&amp;gt;[[WWE NXT|NXT]]&amp;lt;/i&amp;gt;&amp;#039;								},&lt;br /&gt;
		regnxtuk	= { &amp;#039;UK&amp;#039;,	taped ..&amp;#039;&amp;lt;i&amp;gt;[[WWE NXT UK|NXT UK]]&amp;lt;/i&amp;gt;&amp;#039;							},&lt;br /&gt;
		slam		= {  &amp;#039;S&amp;#039;,	 live ..&amp;#039;&amp;lt;i&amp;gt;[[WWF Sunday Night Slam|Sunday Night Slam]]&amp;lt;/i&amp;gt;&amp;#039;	},&lt;br /&gt;
		wcwme		= { &amp;#039;ME&amp;#039;,	 live ..&amp;#039;&amp;lt;i&amp;gt;[[WCW Main Event|Main Event]]&amp;lt;/i&amp;gt;&amp;#039;					},&lt;br /&gt;
		wcwsn		= { &amp;#039;SN&amp;#039;,	 live ..&amp;#039;&amp;lt;i&amp;gt;[[WCW Saturday Night|Saturday Night]]&amp;lt;/i&amp;gt;&amp;#039;			},&lt;br /&gt;
		xplosion	= {  &amp;#039;X&amp;#039;,	taped ..&amp;#039;&amp;lt;i&amp;gt;[[Impact! Xplosion|Xplosion]]&amp;lt;/i&amp;gt;&amp;#039;					}&lt;br /&gt;
	}&lt;br /&gt;
	local matches, notes_key, notes_key_filter = {}, {}, {}&lt;br /&gt;
	local future_match, times_active, champions_active&lt;br /&gt;
	local row_num = 1&lt;br /&gt;
&lt;br /&gt;
	while args[&amp;#039;match&amp;#039;.. row_num] do&lt;br /&gt;
		-- Validate match status and order&lt;br /&gt;
		local row_match = args[&amp;#039;match&amp;#039;.. row_num]&lt;br /&gt;
		if not (row_match:match(&amp;#039; defeated &amp;#039;) or row_match:match(&amp;#039; ended &amp;#039;) or row_match:match(&amp;#039;[ -]won&amp;#039;) or row_match:match(&amp;#039; lost&amp;#039;)) then&lt;br /&gt;
			future_match = true&lt;br /&gt;
		elseif future_match then&lt;br /&gt;
			table.insert(warnings, &amp;#039;&amp;lt;b&amp;gt;match&amp;#039;.. row_num-1 ..&amp;#039;&amp;lt;/b&amp;gt; (future match in wrong order OR not properly marked as complete—&amp;quot;defeated&amp;quot;, &amp;quot;ended&amp;quot;, &amp;quot;won&amp;quot; or &amp;quot;lost&amp;quot; expected)&amp;#039;)&lt;br /&gt;
			future_match = false&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Validate note&lt;br /&gt;
		-- Add note to Key (maintain order, avoid duplicates)&lt;br /&gt;
		-- Create sub-note if discrepancy in match status&lt;br /&gt;
		local row_note = args[&amp;#039;note&amp;#039;.. row_num]&lt;br /&gt;
		if row_note then&lt;br /&gt;
			if notes[row_note] then&lt;br /&gt;
				local suffix = future_match and &amp;#039;F&amp;#039; or &amp;#039;&amp;#039;&lt;br /&gt;
				local row_note_symbol = notes[row_note][1] .. (future_match and notes_key_filter[row_note] and &amp;#039;F&amp;#039; or &amp;#039;&amp;#039;)&lt;br /&gt;
				if not notes_key_filter[row_note .. suffix] then&lt;br /&gt;
					table.insert(notes_key, {&lt;br /&gt;
						row_note_symbol,&lt;br /&gt;
						(row_note == &amp;#039;dark&amp;#039; and &amp;#039;this&amp;#039; or &amp;#039;the match&amp;#039;) .. (future_match and &amp;#039; will be &amp;#039; or &amp;#039; was &amp;#039;) .. notes[row_note][2]&lt;br /&gt;
					})&lt;br /&gt;
					notes_key_filter[row_note .. suffix] = true&lt;br /&gt;
				end&lt;br /&gt;
				row_note = row_note_symbol&lt;br /&gt;
			else&lt;br /&gt;
				table.insert(warnings, &amp;#039;&amp;lt;b&amp;gt;note&amp;#039;.. row_num ..&amp;#039;&amp;lt;/b&amp;gt; (see [[Template:Professional wrestling results table#note list|note list]])&amp;#039;)&lt;br /&gt;
				row_note = nil&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Validate stipulation&lt;br /&gt;
		if mw.text.killMarkers(args[&amp;#039;stip&amp;#039;.. row_num] or &amp;#039;&amp;#039;) == &amp;#039;&amp;#039; then&lt;br /&gt;
			table.insert(warnings, &amp;#039;&amp;lt;b&amp;gt;stip&amp;#039;.. row_num ..&amp;#039;&amp;lt;/b&amp;gt; (stipulation should not be blank)&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Validate time (M:SS minimum)&lt;br /&gt;
		local row_time = args[&amp;#039;time&amp;#039;.. row_num]&lt;br /&gt;
		if row_time then&lt;br /&gt;
			if row_time:match(&amp;#039;[0-9]:[0-5][0-9]&amp;#039;) then&lt;br /&gt;
				times_active = true&lt;br /&gt;
			else&lt;br /&gt;
				table.insert(warnings, &amp;#039;&amp;lt;b&amp;gt;time&amp;#039;.. row_num ..&amp;#039;&amp;lt;/b&amp;gt; (M:SS expected)&amp;#039;)&lt;br /&gt;
				row_time = nil&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Detect champions for Key&lt;br /&gt;
		if not champions_active and row_match:match(&amp;#039;%(c%)&amp;#039;) then&lt;br /&gt;
			champions_active = true&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		table.insert(matches, {row_note, row_match, args[&amp;#039;stip&amp;#039;.. row_num], row_time})&lt;br /&gt;
		row_num = row_num+1&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local notes_active = #notes_key &amp;gt; 0 and true or false&lt;br /&gt;
&lt;br /&gt;
	-- Validate extra parameters&lt;br /&gt;
	if args[&amp;#039;align&amp;#039;] and args[&amp;#039;align&amp;#039;] ~= &amp;#039;center&amp;#039; then&lt;br /&gt;
		table.insert(warnings, &amp;#039;&amp;lt;b&amp;gt;align&amp;lt;/b&amp;gt; (&amp;quot;center&amp;quot; expected)&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Table start&lt;br /&gt;
	local root = mw.html.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;wikitable&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;margin&amp;#039;, args[&amp;#039;align&amp;#039;] == &amp;#039;center&amp;#039; and &amp;#039;1em auto !important&amp;#039; or nil) -- Optional center align&lt;br /&gt;
&lt;br /&gt;
	if args[&amp;#039;caption&amp;#039;] then&lt;br /&gt;
		root&lt;br /&gt;
		:tag(&amp;#039;caption&amp;#039;)&lt;br /&gt;
			:wikitext(args[&amp;#039;caption&amp;#039;])&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Header&lt;br /&gt;
	local header = root:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	header&lt;br /&gt;
	:tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
		:attr(&amp;#039;scope&amp;#039;, &amp;#039;col&amp;#039;)&lt;br /&gt;
		:tag(&amp;#039;abbr&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;title&amp;#039;, &amp;#039;Number&amp;#039;.. (notes_active and &amp;#039; and note&amp;#039; or &amp;#039;&amp;#039;))&lt;br /&gt;
			:wikitext(&amp;#039;No.&amp;#039;)&lt;br /&gt;
			:done()&lt;br /&gt;
		:done()&lt;br /&gt;
	:tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
		:attr(&amp;#039;scope&amp;#039;, &amp;#039;col&amp;#039;)&lt;br /&gt;
		:wikitext((future_match and &amp;#039;Matches*&amp;#039; or &amp;#039;Results&amp;#039;) .. (args[&amp;#039;results&amp;#039;] or &amp;#039;&amp;#039;)) -- Optional reference&lt;br /&gt;
		:done()&lt;br /&gt;
	:tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
		:attr(&amp;#039;scope&amp;#039;, &amp;#039;col&amp;#039;)&lt;br /&gt;
		:wikitext(&amp;#039;Stipulations&amp;#039;)&lt;br /&gt;
	if times_active then&lt;br /&gt;
		header&lt;br /&gt;
		:tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;scope&amp;#039;, &amp;#039;col&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;Times&amp;#039;.. (args[&amp;#039;times&amp;#039;] or &amp;#039;&amp;#039;)) -- Optional reference&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Matches&lt;br /&gt;
	for num, v in ipairs(matches) do&lt;br /&gt;
		local row = root:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
		row&lt;br /&gt;
		-- Number&lt;br /&gt;
		:tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;scope&amp;#039;, &amp;#039;row&amp;#039;)&lt;br /&gt;
			:wikitext(num)&lt;br /&gt;
		-- Note&lt;br /&gt;
			:tag(&amp;#039;sup&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
				:wikitext(v[1])&lt;br /&gt;
				:done()&lt;br /&gt;
			:done()&lt;br /&gt;
		-- Match&lt;br /&gt;
		:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:wikitext(v[2])&lt;br /&gt;
			:done()&lt;br /&gt;
		-- Stipulation&lt;br /&gt;
		:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:wikitext(v[3])&lt;br /&gt;
		-- Time&lt;br /&gt;
		if v[4] then&lt;br /&gt;
			row&lt;br /&gt;
			:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:wikitext(v[4])&lt;br /&gt;
		elseif times_active then&lt;br /&gt;
			-- mirror Template:N/a&lt;br /&gt;
			row&lt;br /&gt;
			:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;table-na&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;background-color&amp;#039;, &amp;#039;#ececec&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;color&amp;#039;, &amp;#039;#2C2C2C&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;—&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Key&lt;br /&gt;
	if champions_active or notes_active or future_match then&lt;br /&gt;
		local key = root:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
				:attr(&amp;#039;scope&amp;#039;, &amp;#039;row&amp;#039;)&lt;br /&gt;
				:attr(&amp;#039;colspan&amp;#039;, times_active and &amp;#039;4&amp;#039; or &amp;#039;3&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;border-top&amp;#039;, &amp;#039;solid 2px #aaa&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;font-weight&amp;#039;, &amp;#039;normal&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;left&amp;#039;)&lt;br /&gt;
				:tag(&amp;#039;table&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;margin&amp;#039;, &amp;#039;0 auto !important&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;padding&amp;#039;, &amp;#039;0&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;border-spacing&amp;#039;, &amp;#039;0&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;line-height&amp;#039;, &amp;#039;1.45em&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
		if champions_active then&lt;br /&gt;
			key&lt;br /&gt;
			:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
				:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;text-align&amp;#039;, &amp;#039;right&amp;#039;)&lt;br /&gt;
					:wikitext(&amp;#039;(c)&amp;#039;)&lt;br /&gt;
					:done()&lt;br /&gt;
				:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;nbsp;– the champion(s) heading into the match&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		for _, v in ipairs(notes_key) do&lt;br /&gt;
			key&lt;br /&gt;
			:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
				:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;text-align&amp;#039;, &amp;#039;right&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;font-weight&amp;#039;, &amp;#039;bold&amp;#039;)&lt;br /&gt;
					:wikitext(v[1])&lt;br /&gt;
					:done()&lt;br /&gt;
				:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;nbsp;– &amp;#039;.. v[2])&lt;br /&gt;
		end&lt;br /&gt;
		if future_match then&lt;br /&gt;
			key&lt;br /&gt;
			:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
				:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
					:attr(&amp;#039;colspan&amp;#039;, &amp;#039;2&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;font-weight&amp;#039;, &amp;#039;bold&amp;#039;)&lt;br /&gt;
					:wikitext(&amp;#039;*Card subject to change&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Preview warnings and tracking&lt;br /&gt;
	if #warnings &amp;gt; 0 then&lt;br /&gt;
		root = require(&amp;#039;Module:If preview&amp;#039;)._warning({&amp;#039;Invalid parameter value at &amp;#039;.. table.concat(warnings, &amp;#039;; &amp;#039;) ..&amp;#039;.&amp;#039;})&lt;br /&gt;
		.. (mw.title.getCurrentTitle().namespace == 0 and &amp;#039;[[Category:Pages using professional wrestling results table with invalid parameter values]]&amp;#039; or &amp;#039;&amp;#039;)&lt;br /&gt;
		.. tostring(root)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return root&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>WikiDwarf</name></author>
	</entry>
</feed>