Template:Lister

Using arraymap to simplify the following {{#switch:{{{input|}}} ... {{#switch:{{{input|}}} {{#arraymap:2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25|,|x|{{!}}{{{x}}} = prev={{{{{#expr: x-1 }}|}}} {{!}} next={{{{{#expr: x+1 }}|}}} }} }}
 * {{{1}}} = prev={{!}}next={{{2|}}}
 * {{{2}}} = prev={{{1|}}}{{!}}{{{3|}}}
 * {{{3}}} = prev={{{2|}}}{{!}}{{{4|}}}
 * {{{4}}} = prev={{{3|}}}{{!}}{{{5|}}}
 * {{{5}}} = prev={{{4|}}}{{!}}{{{6|}}}
 * {{{1}}} = prev={{!}}next={{{2|}}}
 * default prev={{!}}next={{{1|}}}