Site Notice

We have a limited coverage policy. Please check our coverage page to see which articles are allowed.
Please no leaked content less than one year old, or videos of leaks.
Content copied verbatim from other websites or wikis will be removed.

Difference between revisions of "Template:YearPrevNext"

From NintendoWiki, your source on Nintendo information. By fans, for fans.
Jump to navigation Jump to search
m
m (Moving template:html5 from inside an HTML tag to inside a noinclude #cww)
Line 1: Line 1:
{| style="background:{{Site-Color|Table}};border:5px groove {{Site-Color|Table|2}};{{roundy}};margin:0 auto;" align="center" {{html5}} cellpadding="3" cellspacing="3"
+
{| style="background:{{Site-Color|Table}};border:5px groove {{Site-Color|Table|2}};{{roundy}};margin:0 auto;" align="center" cellpadding="3" cellspacing="3"
 
|-
 
|-
 
{{#if: {{{prev_10|}}} |{{!}} style="{{roundy}};" {{!}}<<-- [[:Category:{{{prev_10}}}  games|{{{prev_10}}}]]|}}
 
{{#if: {{{prev_10|}}} |{{!}} style="{{roundy}};" {{!}}<<-- [[:Category:{{{prev_10}}}  games|{{{prev_10}}}]]|}}
Line 9: Line 9:
 
{{#if: {{{next_10|}}} |{{!}} style="{{roundy}};" {{!}}[[:Category:{{{next_10}}}  games|{{{next_10}}}]] -->>|}}
 
{{#if: {{{next_10|}}} |{{!}} style="{{roundy}};" {{!}}[[:Category:{{{next_10}}}  games|{{{next_10}}}]] -->>|}}
 
|-
 
|-
|}<includeonly>[[Category:Games by year]]</includeonly><noinclude>{{doc}}{{auto-cat2|Game templates|Navigation templates}}</noinclude>
+
|}<includeonly>[[Category:Games by year]]</includeonly><noinclude>{{html5}}{{doc}}{{auto-cat2|Game templates|Navigation templates}}</noinclude>

Revision as of 17:48, 23 September 2023

Games by year


Purpose

The template is designed to be a way to navigate one, ten and possibly more years from the category one is looking at. To keep it simple, it uses no expressions.

Use

Example

{{YearPrevNext
|prev=2012
|prev_10=2003
|next=2014
|next_10=2023}}

Parameters

  • prev - 1 year ago
  • prev_10 - 10 years ago
  • next - 1 year into the future
  • next_10 - 10 years into the future