Loading...
 
Skip to main content

Module Reading Time

This Module displays the estimated reading time for the words on a Wiki page (inner modules are excluded). To avoid displaying empty module on non wiki page object, set the module Visibility Section to wiki.

Usage

To use module Reading Time in a wiki page:

Copy to clipboard
{module module="reading_time" wordsPerMinutes="200" minTimeThreshold="1" minTimeThresholdText="Reading time: Less than a minute" maxTimeThreshold="30" maxTimeThresholdText="Reading time: Less than a minute" timePrefixText="Approximate reading time:" timePostfixText="min." timeMinutesOnly="n"}


Where: Displays the estimated reading time for the words on a Wiki page (inner modules are excluded). To avoid displaying empty module on non wiki page object, set the module Visibility,Section to wiki.

Go to the source code
Preferences required: feature_wiki

Parameters Accepted Values Description Default Since
maxTimeThreshold int value in minutes above which it is not needed to display the time. Set to 0 for none. 30
maxTimeThresholdText text Text displayed when the reading time is above the maximum threshold value. Reading time: More than 30 minutes
minTimeThreshold int value in minutes below which it is not needed to display the time. Set to 0 for none. 1
minTimeThresholdText text Text displayed when the reading time is below the minimum threshold value. Reading time: Less than a minute
timePostfixText text Text displayed after the result (the reading time). min.
timePrefixText text Text displayed before the result (the reading time). Approximate reading time:
wordsPerMinutes int The number of words human can read per minute. 200
timeMinutesOnly (blank)
y
n
Will not displays the seconds and round up the result if the value is bigger than 30s. n


Example

In the example below we pass in a wiki page the module Reading Time through the plugin module.
So, this code:

Copy to clipboard
{module module="reading_time" wordsPerMinutes="200" minTimeThreshold="1" minTimeThresholdText="Reading time: Less than a minute" maxTimeThreshold="30" maxTimeThresholdText="Reading time: Less than a minute" timePrefixText="Approximate reading time:" timePostfixText="minutes" timeMinutesOnly="y"}


Produces on this site:

Reading Time

Reading time: Less than a minute

See these pages for information that applies for all modules: