Site Notice |
---|
We have a limited coverage policy. Please check our coverage page to see which articles are allowed. |
Difference between revisions of "Template:YearPrevNext"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
− | {| style="{{roundy}} border:3px solid {{Site-Color|Table|3}} | + | {| style="{{roundy}} border:3px solid {{Site-Color|Table|3}}; margin:0 auto;" cellpadding="3" cellspacing="3" |
|- | |- | ||
− | | | + | | style="text-align:left;" | |
{{#if: {{{prev_10|}}} |{{!}} style="{{roundy}};" {{!}}<<-- [[:Category:{{{prev_10}}} games|{{{prev_10}}}]]|}} | {{#if: {{{prev_10|}}} |{{!}} style="{{roundy}};" {{!}}<<-- [[:Category:{{{prev_10}}} games|{{{prev_10}}}]]|}} | ||
{{#if: {{{prev|}}} |{{!}} style="{{roundy}};" {{!}}<- [[:Category:{{{prev}}} games|{{{prev}}}]]|}} | {{#if: {{{prev|}}} |{{!}} style="{{roundy}};" {{!}}<- [[:Category:{{{prev}}} games|{{{prev}}}]]|}} | ||
− | | [[:Category:Games by year|Games by year]] | + | | style="text-align:center;" | [[:Category:Games by year|Games by year]] |
− | | | + | | style="text-align:right;" | |
{{#if: {{{next|}}} |{{!}} style="{{roundy}};" {{!}}[[:Category:{{{next}}} games|{{{next}}}]] ->}} | {{#if: {{{next|}}} |{{!}} style="{{roundy}};" {{!}}[[:Category:{{{next}}} games|{{{next}}}]] ->}} | ||
{{#if: {{{next_10|}}} |{{!}} style="{{roundy}};" {{!}}[[:Category:{{{next_10}}} games|{{{next_10}}}]] -->>|}} | {{#if: {{{next_10|}}} |{{!}} style="{{roundy}};" {{!}}[[:Category:{{{next_10}}} games|{{{next_10}}}]] -->>|}} |
Latest revision as of 20:50, 14 December 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