Template:Wikiportal/OTD/doc
Template page
More actions
Template:Documentationpage Template for displaying OTD on portal pages.
Supports 2 methods of selecting articles:
- Monthly rotation: Display a rotation of 2-31 articles based on day of the month (with less than 31 articles, articles will be repeated).
- Full rotation: Display a rotation of 366 articles based on day of the year.
Usage
{{Wikiportal/OTD
|mode =monthly
|articlecount =10
|prefix =Wikiportal:Datacron Database/QOTD
}}
The featured articles should all be subpages of a certain page (specified with prefix).
Parameters
(default: "{{PAGENAME}}")
prefixName of the template (without "Template:") which the featured articles are subpages of.
For example, if prefix is set to "Wikiportal:Datacron Database/OTD", the featured articles should be named:
- "Template:Wikiportal:Datacron Database/Featured article/1" (up to "Template:Wikiportal:Datacron Database/OTD/31") for the monthly rotation and
- "Template:Wikiportal:Datacron Database/Featured article/1 January" (up to "Template:Wikiportal:Datacron Database/OTD/31 December") for the full rotation.
(default: "31")
articlecountNumber of articles to cycle through. Only has an effect if
mode is set to "monthly", and if the number is lower than "31". When using partial rotations, the names of the featured article templates should be in ascending order and start at 1.(default: "monthly")
modeDetermines type of rotation.
Available options:
- monthly: 31-article-rotation based on day of the month.
- full: 366-article-rotation based on day and month.
Examples
Monthly rotation (10 articles)
{{Wikiportal/OTD
|prefix =Wikiportal:Datacron Database/OTD
|mode =monthly
|articlecount =10
}}
results in the following featured article to be displayed today:
Monthly rotation (31 articles)
{{Wikiportal/OTD
|prefix =Wikiportal:Datacron Database/OTD
|mode =monthly
}}
results in the following featured article to be displayed today:
Full rotation (366 articles)
{{Wikiportal/OTD
|prefix =Wikiportal:Main/OTD
|mode =full
}}
results in the following featured article to be displayed today: