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/Featured article/doc: Difference between revisions

Template page
Created page with "<noinclude>{{Documentationpage}}</noinclude> Template for displaying featured articles 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..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Documentationpage}}</noinclude>
<noinclude>{{Documentationpage}}</noinclude>
Template for displaying [[Fallout Wiki:Featured articles|featured articles]] on [[:Category:Portals|portal pages]].
Template for displaying [[Datacron Database:Featured articles|featured articles]] on [[:Category:Portals|portal pages]].


Supports 2 methods of selecting articles:
Supports 2 methods of selecting articles:
Line 11: Line 11:
|mode        =monthly
|mode        =monthly
|articlecount =10
|articlecount =10
|prefix      =Wikiportal:Fallout 3/Featured article
|prefix      =Wikiportal:Datacron Database/Featured article
}}
}}
</pre>
</pre>
Line 21: Line 21:
Name of the template (without "Template:") which the featured articles are subpages of.
Name of the template (without "Template:") which the featured articles are subpages of.


For example, if <code>prefix</code> is set to "Wikiportal:Fallout/Featured article", the featured articles should be named:
For example, if <code>prefix</code> is set to "Wikiportal:Datacron Database/Featured article", the featured articles should be named:
* "Template:Wikiportal:Fallout/Featured article/1" (up to "Template:Wikiportal:Fallout/Featured article/31") for the monthly rotation and  
* "Template:Wikiportal:Fallout/Featured article/1" (up to "Template:Wikiportal:Datacron Database/Featured article/31") for the monthly rotation and  
* "Template:Wikiportal:Fallout/Featured article/1 January" (up to "Template:Wikiportal:Fallout/Featured article/31 December") for the full rotation.
* "Template:Wikiportal:Fallout/Featured article/1 January" (up to "Template:Wikiportal:Datacron Database/Featured article/31 December") for the full rotation.
}}
}}


Line 42: Line 42:
<pre>
<pre>
{{Wikiportal/Featured article
{{Wikiportal/Featured article
|prefix      =Wikiportal:Fallout 3/Featured article
|prefix      =Wikiportal:Datacron Database/Featured article
|mode        =monthly
|mode        =monthly
|articlecount =10
|articlecount =10
Line 52: Line 52:
|
|
{{Wikiportal/Featured article
{{Wikiportal/Featured article
|prefix      =Wikiportal:Fallout 3/Featured article
|prefix      =Wikiportal:Datacron Database/Featured article
|mode        =monthly
|mode        =monthly
|articlecount =10
|articlecount =10
Line 61: Line 61:
<pre>
<pre>
{{Wikiportal/Featured article
{{Wikiportal/Featured article
|prefix      =Wikiportal:Fallout 3/Featured article
|prefix      =Wikiportal:Datacron Database/Featured article
|mode        =monthly
|mode        =monthly
}}
}}
Line 70: Line 70:
|
|
{{Wikiportal/Featured article
{{Wikiportal/Featured article
|prefix      =Wikiportal:Fallout 3/Featured article
|prefix      =Wikiportal:Datacron Database/Featured article
|mode        =monthly
|mode        =monthly
}}
|}
===Weekly rotation (50 articles)===
<pre>
{{Wikiportal/Featured article
|prefix      =Wikiportal:Datacron Database/Featured article
|mode        =weekly
}}
</pre>
results in the following featured article to be displayed today:
{| style="background: #DDD; border: 1px solid #AAA; width: 100%;"
|-
|
{{Wikiportal/Featured article
|prefix      =Wikiportal:Datacron Database/Featured article
|mode        =weekly
}}
}}
|}
|}

Latest revision as of 17:43, 15 December 2025

Template:Documentationpage Template for displaying featured articles 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/Featured article
|mode         =monthly
|articlecount =10
|prefix       =Wikiportal:Datacron Database/Featured article
}}

The featured articles should all be subpages of a certain page (specified with prefix).

Parameters

(default: "{{PAGENAME}}")
prefix
Name of the template (without "Template:") which the featured articles are subpages of.

For example, if prefix is set to "Wikiportal:Datacron Database/Featured article", the featured articles should be named:

  • "Template:Wikiportal:Fallout/Featured article/1" (up to "Template:Wikiportal:Datacron Database/Featured article/31") for the monthly rotation and
  • "Template:Wikiportal:Fallout/Featured article/1 January" (up to "Template:Wikiportal:Datacron Database/Featured article/31 December") for the full rotation.
(default: "31")
articlecount
Number 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")
mode
Determines 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/Featured article
|prefix       =Wikiportal:Datacron Database/Featured article
|mode         =monthly
|articlecount =10
}}

results in the following featured article to be displayed today:

Template:Wikiportal:Datacron Database/Featured article/April 2026

Monthly rotation (31 articles)

{{Wikiportal/Featured article
|prefix       =Wikiportal:Datacron Database/Featured article
|mode         =monthly
}}

results in the following featured article to be displayed today:

Template:Wikiportal:Datacron Database/Featured article/April 2026

Weekly rotation (50 articles)

{{Wikiportal/Featured article
|prefix       =Wikiportal:Datacron Database/Featured article
|mode         =weekly
}}

results in the following featured article to be displayed today:

Template:Wikiportal:Datacron Database/Featured article/Week 17, 2026

Full rotation (366 articles)

{{Wikiportal/Featured article
|prefix       =Wikiportal:Main/Featured article
|mode         =full
}}

results in the following featured article to be displayed today:

Template:Wikiportal:Main/Featured article/April 2026

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