<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://fr.prole.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AReading_time</id>
	<title>Module:Reading time - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://fr.prole.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AReading_time"/>
	<link rel="alternate" type="text/html" href="https://fr.prole.wiki/w/index.php?title=Module:Reading_time&amp;action=history"/>
	<updated>2026-10-28T20:06:14Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://fr.prole.wiki/w/index.php?title=Module:Reading_time&amp;diff=5554&amp;oldid=prev</id>
		<title>CriticalResist le 15 novembre 2025 à 19:54</title>
		<link rel="alternate" type="text/html" href="https://fr.prole.wiki/w/index.php?title=Module:Reading_time&amp;diff=5554&amp;oldid=prev"/>
		<updated>2025-11-15T19:54:13Z</updated>

		<summary type="html">&lt;p&gt;&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;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 15 novembre 2025 à 19:54&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-l23&quot;&gt;Ligne 23 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 23 :&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;             -- Define the range of reading speeds&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;             -- Define the range of reading speeds&lt;/div&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;             local minSpeed = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;183&lt;/del&gt;&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;             local minSpeed = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;160&lt;/ins&gt;&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;div&gt;             local maxSpeed = 238&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 maxSpeed = 238&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;/table&gt;</summary>
		<author><name>CriticalResist</name></author>
	</entry>
	<entry>
		<id>https://fr.prole.wiki/w/index.php?title=Module:Reading_time&amp;diff=5295&amp;oldid=prev</id>
		<title>CriticalResist : Page créée avec « -- Calculate estimated reading time for any page rounded to multiple of 5. Outputs &quot;X-Y minutes&quot;. -- invoke on any page or template with {{#invoke:Reading time|estimateReadingTime|YourPageHere}} (change YourPageHere)  local p = {} local mw = require(&quot;mw&quot;)  function p.estimateReadingTime(frame)     -- Get the page title from the frame parameter     local pageTitle = frame.args[1]      -- Ensure that pageTitle is a string     if type(pageTitle) == &quot;string&quot; then... »</title>
		<link rel="alternate" type="text/html" href="https://fr.prole.wiki/w/index.php?title=Module:Reading_time&amp;diff=5295&amp;oldid=prev"/>
		<updated>2023-09-23T16:15:32Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « -- Calculate estimated reading time for any page rounded to multiple of 5. Outputs &amp;quot;X-Y minutes&amp;quot;. -- invoke on any page or template with {{#invoke:Reading time|estimateReadingTime|YourPageHere}} (change YourPageHere)  local p = {} local mw = require(&amp;quot;mw&amp;quot;)  function p.estimateReadingTime(frame)     -- Get the page title from the frame parameter     local pageTitle = frame.args[1]      -- Ensure that pageTitle is a string     if type(pageTitle) == &amp;quot;string&amp;quot; then... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Calculate estimated reading time for any page rounded to multiple of 5. Outputs &amp;quot;X-Y minutes&amp;quot;.&lt;br /&gt;
-- invoke on any page or template with {{#invoke:Reading time|estimateReadingTime|YourPageHere}} (change YourPageHere)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
local mw = require(&amp;quot;mw&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
function p.estimateReadingTime(frame)&lt;br /&gt;
    -- Get the page title from the frame parameter&lt;br /&gt;
    local pageTitle = frame.args[1]&lt;br /&gt;
&lt;br /&gt;
    -- Ensure that pageTitle is a string&lt;br /&gt;
    if type(pageTitle) == &amp;quot;string&amp;quot; then&lt;br /&gt;
        -- Use MediaWiki&amp;#039;s built-in function to get the page content&lt;br /&gt;
        local content = mw.title.new(pageTitle):getContent()&lt;br /&gt;
&lt;br /&gt;
        -- Ensure that content is a string&lt;br /&gt;
        if type(content) == &amp;quot;string&amp;quot; then&lt;br /&gt;
            -- Count words using a more robust pattern&lt;br /&gt;
            local wordCount = 0&lt;br /&gt;
            for word in content:gmatch(&amp;quot;%S+&amp;quot;) do&lt;br /&gt;
                wordCount = wordCount + 1&lt;br /&gt;
            end&lt;br /&gt;
&lt;br /&gt;
            -- Define the range of reading speeds&lt;br /&gt;
            local minSpeed = 183&lt;br /&gt;
            local maxSpeed = 238&lt;br /&gt;
&lt;br /&gt;
            -- Calculate reading times for both minimum and maximum speeds&lt;br /&gt;
            local minReadingTime = math.floor(wordCount / maxSpeed)&lt;br /&gt;
            local maxReadingTime = math.ceil(wordCount / minSpeed)&lt;br /&gt;
&lt;br /&gt;
            -- Round the reading times to the nearest multiple of 5&lt;br /&gt;
            minReadingTime = math.floor(minReadingTime / 5) * 5&lt;br /&gt;
            maxReadingTime = math.ceil(maxReadingTime / 5) * 5&lt;br /&gt;
            &lt;br /&gt;
            -- Ensure that minReadingTime is at least 1&lt;br /&gt;
            if minReadingTime == 0 then&lt;br /&gt;
               minReadingTime = 1&lt;br /&gt;
            end&lt;br /&gt;
&lt;br /&gt;
            -- Create the reading time string&lt;br /&gt;
            local readingTime = minReadingTime .. &amp;quot;-&amp;quot; .. maxReadingTime .. &amp;quot; minutes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
            return readingTime&lt;br /&gt;
        else&lt;br /&gt;
            return &amp;quot;Error: Invalid content&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
        return &amp;quot;Error: Invalid page title&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>CriticalResist</name></author>
	</entry>
</feed>