Ero sivun ”Malline:Form/Years” versioiden välillä
Järvi-meriwikistä
Rivi 1: | Rivi 1: | ||
<includeonly>{{#arraydefine:years|1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030}} | <includeonly>{{#arraydefine:years|1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030}} | ||
{{#ifexpr: {{{start|1990}}} > {{{end|2030}}} | {{#ifexpr: {{{start|1990}}} > {{{end|2030}}} | ||
− | |reverse | + | |{{#arraysort:years|reverse}}{{#arrayslice:output|years|{{#expr: 2030-{{{start|2030}}} }}|{{#expr: {{#expr: {{{start|2030}}}-{{{end|1990}}} }} + 1 }} }} |
− | | | + | |{{#arraysort:years}}{{#arrayslice:output|years|{{#expr: {{{start|1990}}}-1990 }}|{{#expr: {{#expr: {{{end|2030}}}-{{{start|1990}}} }} + 1 }} }} |
}} | }} | ||
{{#arrayprint:output}}</includeonly> | {{#arrayprint:output}}</includeonly> |