Template:Wikiportal/OTD
Template page
More actions
Template for displaying OTD on portal pages.
Supports 3 methods of selecting articles:
- Daily rotation: Display a rotation of 366 articles based on day of the year.
- Weekly rotation: Display a rotation of 12 articles based on week of the year.
- Monthly rotation: Display a rotation of 12 articles based on month of the year.
Usage
{{Wikiportal/OTD
|mode =monthly
|prefix =Wikiportal:Main/OTD
}}
The featured articles should all be subpages of a certain page (specified with prefix).
Parameters
Name 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/OTD/January 1, 2026" (up to "Template:Wikiportal:Datacron Database/OTD/December 31, 2026") for the daily rotation.
- "Template:Wikiportal:Datacron Database/OTD/Week 1, 2026" (up to "Template:Wikiportal:Datacron Database/OTD/Week 52, 2026") for the weekly rotation.
- "Template:Wikiportal:Datacron Database/OTD/January, 2026" (up to "Template:Wikiportal:Datacron Database/OTD/December 2026") for the monthly rotation.
mode Determines type of rotation.
Available options:
- monthly: 12-article-rotation based on month of the year.
- weekly: 52-article-rotation based on week of the year.
- daily: 366-article-rotation based on day of the year.
Examples
Monthly rotation (31 articles)
{{Wikiportal/OTD
|prefix =Wikiportal:Main/OTD
|mode =monthly
}}
results in the following featured article to be displayed today:
Weekly rotation (52 articles)
{{Wikiportal/OTD
|prefix =Wikiportal:Main/OTD
|mode =weekly
}}
results in the following featured article to be displayed today:
Daily rotation (366 articles)
{{Wikiportal/OTD
|prefix =Wikiportal:Main/OTD
|mode =daily
}}
results in the following featured article to be displayed today: