Template:Wikiportal/QOTD/doc: Difference between revisions
Template page
More actions
Created page with "<noinclude>{{Documentationpage}}</noinclude> Template for displaying QOTD 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== <pre> {{Wikiportal/Featured article |mode =month..." |
No edit summary Tag: Manual revert |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{Wikiportal/ | {{Wikiportal/QOTD | ||
|mode =monthly | |mode =monthly | ||
|articlecount =10 | |articlecount =10 | ||
| Line 41: | Line 41: | ||
===Monthly rotation (10 articles)=== | ===Monthly rotation (10 articles)=== | ||
<pre> | <pre> | ||
{{Wikiportal/ | {{Wikiportal/QOTD | ||
|prefix =Wikiportal:Datacron Database/QOTD | |prefix =Wikiportal:Datacron Database/QOTD | ||
|mode =monthly | |mode =monthly | ||
| Line 51: | Line 51: | ||
|- | |- | ||
| | | | ||
{{Wikiportal/ | {{Wikiportal/QOTD | ||
|prefix =Wikiportal:Datacron Database/QOTD | |prefix =Wikiportal:Datacron Database/QOTD | ||
|mode =monthly | |mode =monthly | ||
| Line 60: | Line 60: | ||
===Monthly rotation (31 articles)=== | ===Monthly rotation (31 articles)=== | ||
<pre> | <pre> | ||
{{Wikiportal/ | {{Wikiportal/QOTD | ||
|prefix =Wikiportal:Datacron Database/QOTD | |prefix =Wikiportal:Datacron Database/QOTD | ||
|mode =monthly | |mode =monthly | ||
| Line 69: | Line 69: | ||
|- | |- | ||
| | | | ||
{{Wikiportal/ | {{Wikiportal/QOTD | ||
|prefix =Wikiportal:Datacron Database/QOTD | |prefix =Wikiportal:Datacron Database/QOTD | ||
|mode =monthly | |mode =monthly | ||
| Line 77: | Line 77: | ||
===Full rotation (366 articles)=== | ===Full rotation (366 articles)=== | ||
<pre> | <pre> | ||
{{Wikiportal/ | {{Wikiportal/QOTD | ||
|prefix =Wikiportal:Main/QOTD | |prefix =Wikiportal:Main/QOTD | ||
|mode =full | |mode =full | ||
| Line 86: | Line 86: | ||
|- | |- | ||
| | | | ||
{{Wikiportal/ | {{Wikiportal/QOTD | ||
|prefix =Wikiportal:Main/QOTD | |prefix =Wikiportal:Main/QOTD | ||
|mode =full | |mode =full | ||
}} | }} | ||
|} | |} | ||
Latest revision as of 21:31, 22 December 2024
Template:Documentationpage Template for displaying QOTD 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/QOTD
|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/QOTD", the featured articles should be named:
- "Template:Wikiportal:Fallout/Featured article/1" (up to "Template:Wikiportal:Datacron Database/QOTD/31") for the monthly rotation and
- "Template:Wikiportal:Fallout/Featured article/1 January" (up to "Template:Wikiportal:Datacron Database/QOTD/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/QOTD
|prefix =Wikiportal:Datacron Database/QOTD
|mode =monthly
|articlecount =10
}}
results in the following featured article to be displayed today:
Monthly rotation (31 articles)
{{Wikiportal/QOTD
|prefix =Wikiportal:Datacron Database/QOTD
|mode =monthly
}}
results in the following featured article to be displayed today:
Full rotation (366 articles)
{{Wikiportal/QOTD
|prefix =Wikiportal:Main/QOTD
|mode =full
}}
results in the following featured article to be displayed today: