<?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%2Ftrappist_the_monk%2Fcount_items</id>
	<title>Module:Sandbox/trappist the monk/count items - 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%2Ftrappist_the_monk%2Fcount_items"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/trappist_the_monk/count_items&amp;action=history"/>
	<updated>2026-04-22T00:28:55Z</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/trappist_the_monk/count_items&amp;diff=146608&amp;oldid=prev</id>
		<title>imported&gt;Trappist the monk: create;</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/trappist_the_monk/count_items&amp;diff=146608&amp;oldid=prev"/>
		<updated>2018-12-02T23:05:51Z</updated>

		<summary type="html">&lt;p&gt;create;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[[--------------------------&amp;lt; C O U N T _ I T E M S &amp;gt;--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
experimental code that count the number of newline-immediately-followed-by-splat unordered-list wiki markup (this&lt;br /&gt;
because * must be at the left margin – won&amp;#039;t count a * that is the first character at the top of a page)&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Sandbox/trappist the monk/count items|count_items}}&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function count_items ()&lt;br /&gt;
	local content = mw.title.new (&amp;#039;Wikipedia:Typo_Team/Members&amp;#039;):getContent();	-- read the unparsed page source&lt;br /&gt;
	if not content then&lt;br /&gt;
		return &amp;#039;&amp;lt;span style=&amp;quot;font-size:100%;&amp;quot; class=&amp;quot;error&amp;quot;&amp;gt;error: failed to read: Wikipedia:Typo_Team/Members&amp;lt;/span&amp;gt;&amp;#039;;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local count;&lt;br /&gt;
	content, count = content:gsub (&amp;#039;[\r\n]%*&amp;#039;, &amp;#039;%1&amp;#039;);							-- count unordered list markup&lt;br /&gt;
	return count;																-- and done&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 {count_items = count_items};&lt;/div&gt;</summary>
		<author><name>imported&gt;Trappist the monk</name></author>
	</entry>
</feed>