<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://edramatica.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARow_numbers</id>
	<title>Module:Row numbers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://edramatica.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARow_numbers"/>
	<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=Module:Row_numbers&amp;action=history"/>
	<updated>2026-05-06T02:34:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1548289&amp;oldid=prev</id>
		<title>imported&gt;MarioMario456: MarioMario456 moved page Module:Sandbox/Row numbers to Module:Row numbers without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1548289&amp;oldid=prev"/>
		<updated>2024-02-27T13:53:13Z</updated>

		<summary type="html">&lt;p&gt;MarioMario456 moved page &lt;a href=&quot;/index.php?title=Module:Sandbox/Row_numbers&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Sandbox/Row numbers (page does not exist)&quot;&gt;Module:Sandbox/Row numbers&lt;/a&gt; to &lt;a href=&quot;/Module:Row_numbers&quot; title=&quot;Module:Row numbers&quot;&gt;Module:Row numbers&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:53, 27 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key edwiki-dbw:diff:1.41:old-1405526:rev-1548289 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;MarioMario456</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1405526&amp;oldid=prev</id>
		<title>imported&gt;MarioMario456: MarioMario456 moved page Module:Sandbox/Row numbers to Module:Row numbers without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1405526&amp;oldid=prev"/>
		<updated>2024-02-27T13:53:13Z</updated>

		<summary type="html">&lt;p&gt;MarioMario456 moved page &lt;a href=&quot;/index.php?title=Module:Sandbox/Row_numbers&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Sandbox/Row numbers (page does not exist)&quot;&gt;Module:Sandbox/Row numbers&lt;/a&gt; to &lt;a href=&quot;/Module:Row_numbers&quot; title=&quot;Module:Row numbers&quot;&gt;Module:Row numbers&lt;/a&gt; without leaving a redirect&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&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 13:53, 27 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&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>imported&gt;MarioMario456</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1548297&amp;oldid=prev</id>
		<title>imported&gt;RkNAME: Bad idea to try to modify something I don&#039;t understand</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1548297&amp;oldid=prev"/>
		<updated>2024-02-24T02:46:46Z</updated>

		<summary type="html">&lt;p&gt;Bad idea to try to modify something I don&amp;#039;t understand&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:46, 24 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key edwiki-dbw:diff:1.41:old-1405531:rev-1548297 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;RkNAME</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1405531&amp;oldid=prev</id>
		<title>imported&gt;RkNAME: Bad idea to try to modify something I don&#039;t understand</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1405531&amp;oldid=prev"/>
		<updated>2024-02-24T02:46:46Z</updated>

		<summary type="html">&lt;p&gt;Bad idea to try to modify something I don&amp;#039;t understand&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:46, 24 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--https://en.wikipedia.org/wiki/Module:Row_numbers&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--https://en.wikipedia.org/wiki/Module:Row_numbers&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;require(&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;strict&lt;/del&gt;&#039;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;require(&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Module:No globals&lt;/ins&gt;&#039;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local count;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local count;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key edwiki-dbw:diff:1.41:old-1548298:rev-1405531:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;RkNAME</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1548298&amp;oldid=prev</id>
		<title>imported&gt;RkNAME: Want to see if the Row numbers module from Wikipedia works on ED</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1548298&amp;oldid=prev"/>
		<updated>2024-02-24T02:36:16Z</updated>

		<summary type="html">&lt;p&gt;Want to see if the Row numbers module from Wikipedia works on ED&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:36, 24 February 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key edwiki-dbw:diff:1.41:old-1405532:rev-1548298 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;RkNAME</name></author>
	</entry>
	<entry>
		<id>https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1405532&amp;oldid=prev</id>
		<title>imported&gt;RkNAME: Want to see if the Row numbers module from Wikipedia works on ED</title>
		<link rel="alternate" type="text/html" href="https://edramatica.com/index.php?title=Module:Row_numbers&amp;diff=1405532&amp;oldid=prev"/>
		<updated>2024-02-24T02:36:16Z</updated>

		<summary type="html">&lt;p&gt;Want to see if the Row numbers module from Wikipedia works on ED&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--Taken from Wikipedia and probably licensed under CC-BY-SA 4.0&lt;br /&gt;
--https://en.wikipedia.org/wiki/Module:Row_numbers&lt;br /&gt;
&lt;br /&gt;
require(&amp;#039;strict&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
local count;&lt;br /&gt;
local hcount;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; G E T _ C O U N T &amp;gt;------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
returns a counter value according to the keyword extracted from the table; maintains count and hcount.  Inserts&lt;br /&gt;
a space character ahead of &amp;lt;count&amp;gt; or &amp;lt;hcount&amp;gt; so that, in the case of negative indexes, the negation operator &lt;br /&gt;
is not mistaken for part of the wikitable markup.  Returns:&lt;br /&gt;
	| -&amp;lt;count&amp;gt; – a cell value&lt;br /&gt;
instead of:&lt;br /&gt;
	|-&amp;lt;count&amp;gt; – row markup with extraneous text&lt;br /&gt;
&lt;br /&gt;
The keywords have the meanings:&lt;br /&gt;
	_row_count:			use row counter value (count); the hold counter (hcount) is same as count&lt;br /&gt;
	_row_count_hold:	use the value currently assigned to hcount; bump count but do not bump hcount&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function get_count (keyword)&lt;br /&gt;
	count = count + 1;															-- always bump the count&lt;br /&gt;
	if &amp;#039;_row_count&amp;#039; == keyword then												-- bump hcount, return new count value&lt;br /&gt;
		hcount = count;&lt;br /&gt;
		return &amp;#039; &amp;#039; .. count;													-- insert a leading space ahead of count&lt;br /&gt;
	elseif &amp;#039;_row_count_hold&amp;#039; == keyword then									-- current hcount value without increment&lt;br /&gt;
		return &amp;#039; &amp;#039; .. hcount;													-- insert a leading space ahead of hcount&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; R O W _ N U M B E R S &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
replaces keywords _row_count and _row_count_hold from the table in frame.args[1]&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function row_numbers (frame)&lt;br /&gt;
	local args = frame.args[1] and frame.args or frame:getParent().args;&lt;br /&gt;
	&lt;br /&gt;
	-- Only use if |index is a number; |index= may be omitted (nil), or empty string, or non-digit&lt;br /&gt;
	-- We subtract one because the get_count function increments this before use.&lt;br /&gt;
	count = (tonumber(args.index) or 1) - 1;&lt;br /&gt;
&lt;br /&gt;
	local tbl_str;&lt;br /&gt;
	-- Find out if what we got for input has been wrapped in &amp;lt;nowiki&amp;gt;...&amp;lt;/nowiki&amp;gt; tags&lt;br /&gt;
	if args[1]:match (&amp;#039;^%s*\127[^\127]*UNIQ%-%-nowiki%-%x%x%x%x%x%x%x%x%-QINU[^\127]*\127%s*$&amp;#039;) then&lt;br /&gt;
		-- BUG. The &amp;lt;nowiki&amp;gt; trick does not work in VisualEditor, mobile app, or Special:ExpandTemplates.&lt;br /&gt;
		-- get the table from the nowiki tags passed as arguments&lt;br /&gt;
		tbl_str = mw.text.unstripNoWiki (args[1]);&lt;br /&gt;
&lt;br /&gt;
		-- undo &amp;lt;nowiki&amp;gt;&amp;#039;s escaping of the wikitext (mw.text.decode (tbl_str); is too aggressive)&lt;br /&gt;
		tbl_str = tbl_str:gsub(&amp;#039;&amp;amp;lt;&amp;#039;, &amp;#039;&amp;lt;&amp;#039;):gsub(&amp;#039;&amp;amp;gt;&amp;#039;, &amp;#039;&amp;gt;&amp;#039;);&lt;br /&gt;
	else&lt;br /&gt;
		-- No MediaWiki bugs here (hopefully), but you need to escape = signs with {{=}} like normal.&lt;br /&gt;
		-- It is not possible to circumvent this because named parameters are not passed to Lua in a&lt;br /&gt;
		-- defined order, always have whitespace trimmed, etc.&lt;br /&gt;
		local parts = {}&lt;br /&gt;
		for _, str in ipairs(args) do&lt;br /&gt;
			table.insert(parts, str)&lt;br /&gt;
		end&lt;br /&gt;
		tbl_str = table.concat(parts, &amp;#039;|&amp;#039;);&lt;br /&gt;
	end&lt;br /&gt;
	-- if there is at least one of our special reserved words, replace it with a count&lt;br /&gt;
	return frame:preprocess (tbl_str:gsub(&amp;#039;_row_count[_%w]*&amp;#039;, get_count));&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X P O R T E D   F U N C T I O N S &amp;gt;------------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	row_numbers = row_numbers&lt;br /&gt;
	}&lt;/div&gt;</summary>
		<author><name>imported&gt;RkNAME</name></author>
	</entry>
</feed>