Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Wikiportal/QOTD: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 6: Line 6:


-->|daily|#default=<!--
-->|daily|#default=<!--
-->{{{{{prefix}}}/{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}<!--
-->{{{{{prefix}}}/{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}}}<!--


-->|monthly|<!--
-->|monthly|<!--
Line 39: Line 39:


For example, if <code>prefix</code> is set to "Wikiportal:Datacron Database/QOTD", the featured articles should be named:
For example, if <code>prefix</code> is set to "Wikiportal:Datacron Database/QOTD", the featured articles should be named:
* "Template:Wikiportal:Datacron Database/QOTD/January 1" (up to "Template:Wikiportal:Datacron Database/QOTD/December 31") for the daily rotation.
* "Template:Wikiportal:Datacron Database/QOTD/January 1, {{CURRENTYEAR}}" (up to "Template:Wikiportal:Datacron Database/QOTD/December 31, {{CURRENTYEAR}}") for the daily rotation.
<code>mode</code> Determines type of rotation.
<code>mode</code> Determines type of rotation.



Latest revision as of 22:29, 19 December 2025


Template for displaying QOTD 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/QOTD
|mode         =daily
|prefix       =Wikiportal:Main/QOTD
}}

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/QOTD", the featured articles should be named:

  • "Template:Wikiportal:Datacron Database/QOTD/January 1, 2026" (up to "Template:Wikiportal:Datacron Database/QOTD/December 31, 2026") 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/QOTD
|prefix       =Wikiportal:Main/QOTD
|mode         =daily
}}

results in the following featured article to be displayed today:

Template:Wikiportal:Main/QOTD/July 5, 2026

Cookies help us deliver our services. By using our services, you agree to our use of cookies.