|
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 |
In the example below we pass in a wiki page the module Reading Time through the plugin module.
So, this code:
{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:
See these pages for information that applies for all modules: