Template:Wikiportal/OTD: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 47: | Line 47: | ||
===Daily rotation (366 articles)=== | ===Daily rotation (366 articles)=== | ||
<pre> | <pre> | ||
{{Wikiportal/ | {{Wikiportal/OTD | ||
|prefix =Wikiportal:Main/OTD | |prefix =Wikiportal:Main/OTD | ||
|mode =daily | |mode =daily | ||
| Line 56: | Line 56: | ||
|- | |- | ||
| | | | ||
{{Wikiportal/ | {{Wikiportal/OTD | ||
|prefix =Wikiportal:Main/OTD | |prefix =Wikiportal:Main/OTD | ||
|mode =daily | |mode =daily | ||
Revision as of 22:23, 19 December 2025
Template for displaying OTD on portal pages.
Supports 1 method of selecting articles:
- Daily rotation: Display a rotation of 366 articles based on day of the year.
Usage
{{Wikiportal/OTD
|mode =daily
|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" (up to "Template:Wikiportal:Datacron Database/OTD/December 31") for the daily rotation.
mode Determines type of rotation.
Available options:
- daily: 366-article-rotation based on day of the year.
Examples
Daily rotation (366 articles)
{{Wikiportal/OTD
|prefix =Wikiportal:Main/OTD
|mode =daily
}}
results in the following featured article to be displayed today: