Template:Featured year: Difference between revisions
-u ndefined- (talk | contribs) (Add template with documentation) |
-u ndefined- (talk | contribs) m (Fix) |
||
Line 1: | Line 1: | ||
<includeonly><center>{{# | <includeonly><center>{{#if: {{{1|}}} | | ||
[[List of featured games in {{#expr: {{{1 | [[List of featured games {{#ifexpr: {{{1}}} - 3 > 2019 | in {{#expr:{{{1}}} - 3}} {{!}} {{#expr:{{{1}}} - 3}} | (unknown date) {{!}} Older}}]] •}} <!-- | ||
-->{{#ifexpr: {{{1|2019}}} - 2 > 2019 | | -->{{#ifexpr: {{{1|2019}}} - 2 > 2019 | | ||
[[List of featured games in {{#expr: {{{1|2019}}} - 2}}|{{#expr: {{{1|2019}}} - 2}}]] •}} <!-- | [[List of featured games in {{#expr: {{{1|2019}}} - 2}}|{{#expr: {{{1|2019}}} - 2}}]] •}} <!-- | ||
Line 12: | Line 12: | ||
--> {{#ifexpr: {{{1|2019}}} + 3 <= {{CURRENTYEAR}} | | --> {{#ifexpr: {{{1|2019}}} + 3 <= {{CURRENTYEAR}} | | ||
• [[List of featured games in {{#expr: {{{1|2019}}} + 3}}|{{#expr: {{{1|2019}}} + 3}}]]}} | • [[List of featured games in {{#expr: {{{1|2019}}} + 3}}|{{#expr: {{{1|2019}}} + 3}}]]}} | ||
</center> | </center></includeonly><noinclude> | ||
</includeonly><noinclude> | |||
'''Featured year''' is a convenience template for linking adjacent [[list of featured games]] by year. | '''Featured year''' is a convenience template for linking adjacent [[list of featured games]] by year. | ||
It dynamically updates by current year. | It dynamically updates by current year. | ||
Line 22: | Line 20: | ||
== Example == | == Example == | ||
<pre><nowiki>{{Featured year| | <pre><nowiki>{{Featured year|2021}}</nowiki></pre> | ||
yields: | yields: | ||
{{Featured year| | {{Featured year|2021}} | ||
== Parameters == | == Parameters == |
Latest revision as of 04:44, 11 June 2025
Featured year is a convenience template for linking adjacent list of featured games by year. It dynamically updates by current year. Its range differs by at most 3 years. For games older than 2020, it is capped to games with an unknown date of feature.
Example
{{Featured year|2021}}
yields:
Parameters
Positional:
- Year: the year of the page. If unspecified, starts with list of featured games with an unknown date.