<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.battlestarwiki.org/Module:ReadingTime/history?feed=atom</id>
	<title>Module:ReadingTime - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.battlestarwiki.org/Module:ReadingTime/history?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://en.battlestarwiki.org/Module:ReadingTime/history"/>
	<updated>2026-05-23T03:47:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://en.battlestarwiki.org/w/index.php?title=Module:ReadingTime&amp;diff=259604&amp;oldid=prev</id>
		<title>Joe Beaudoin Jr.: Protected &quot;Module:ReadingTime&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://en.battlestarwiki.org/w/index.php?title=Module:ReadingTime&amp;diff=259604&amp;oldid=prev"/>
		<updated>2025-12-26T16:25:36Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/Module:ReadingTime&quot; title=&quot;Module:ReadingTime&quot;&gt;Module:ReadingTime&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&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 16:25, 26 December 2025&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>Joe Beaudoin Jr.</name></author>
	</entry>
	<entry>
		<id>https://en.battlestarwiki.org/w/index.php?title=Module:ReadingTime&amp;diff=259603&amp;oldid=prev</id>
		<title>Joe Beaudoin Jr.: Created page with &quot;local p = {}  function p.getReadingTime(frame)     -- Get the content of the current page     local title = mw.title.getCurrentTitle()     local content = title:getContent()          if not content then return &quot;1 min&quot; end      -- Strip out some wiki-markup to get a cleaner word count     -- This removes HTML comments, category links, and some formatting     local cleanContent = content:gsub(&quot;&lt;!%-%-.-%-%-&gt;&quot;, &quot;&quot;)                                :gsub(&quot;%[%[Category:.-%]%]&quot;,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://en.battlestarwiki.org/w/index.php?title=Module:ReadingTime&amp;diff=259603&amp;oldid=prev"/>
		<updated>2025-12-26T16:25:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.getReadingTime(frame)     -- Get the content of the current page     local title = mw.title.getCurrentTitle()     local content = title:getContent()          if not content then return &amp;quot;1 min&amp;quot; end      -- Strip out some wiki-markup to get a cleaner word count     -- This removes HTML comments, category links, and some formatting     local cleanContent = content:gsub(&amp;quot;&amp;lt;!%-%-.-%-%-&amp;gt;&amp;quot;, &amp;quot;&amp;quot;)                                :gsub(&amp;quot;%[%[Category:.-%]%]&amp;quot;,...&amp;quot;&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.getReadingTime(frame)&lt;br /&gt;
    -- Get the content of the current page&lt;br /&gt;
    local title = mw.title.getCurrentTitle()&lt;br /&gt;
    local content = title:getContent()&lt;br /&gt;
    &lt;br /&gt;
    if not content then return &amp;quot;1 min&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
    -- Strip out some wiki-markup to get a cleaner word count&lt;br /&gt;
    -- This removes HTML comments, category links, and some formatting&lt;br /&gt;
    local cleanContent = content:gsub(&amp;quot;&amp;lt;!%-%-.-%-%-&amp;gt;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
                               :gsub(&amp;quot;%[%[Category:.-%]%]&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
                               :gsub(&amp;quot;%[%[File:.-%]%]&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    -- Count words (simple whitespace split)&lt;br /&gt;
    local _, wordCount = cleanContent:gsub(&amp;quot;%S+&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
    -- Average reading speed (200-250 words per minute)&lt;br /&gt;
    local wpm = 225&lt;br /&gt;
    local minutes = math.ceil(wordCount / wpm)&lt;br /&gt;
    &lt;br /&gt;
    if minutes &amp;lt; 1 then minutes = 1 end&lt;br /&gt;
    &lt;br /&gt;
    return minutes .. &amp;quot; min read&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Joe Beaudoin Jr.</name></author>
	</entry>
</feed>