Pokémon Omega Ruby and Alpha Sapphire are coming this November!
Check BNN and Bulbanews for up-to-date Pokémon news and discuss it on the forums or in our IRC channel.
The Bulbapedia mobile skin is currently in open alpha. If you run into any issues using the skin, please report them on the forums.

Template talk:Shortcut

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to: navigation, search

Template

Instead of requiring users of this template to specify how many shortcuts they want, why don't we just recode it with if statements to eliminate one parameter? Something like:

{| border=1 align="right" style="background: #fff; border:1px solid #000; border-collapse:collapse;"
| align="center" | '''Shortcuts'''
{{#if: {{{1|}}} | <br>[[{{{1}}}]] }}
{{#if: {{{2|}}} | <br>[[{{{2}}}]] }}
{{#if: {{{3|}}} | <br>[[{{{3}}}]] }}
{{#if: {{{4|}}} | <br>[[{{{4}}}]] }}
{{#if: {{{5|}}} | <br>[[{{{5}}}]] }}
{{#if: {{{6|}}} | <br>[[{{{6}}}]] }}
|}<noinclude>[[Category:Table templates]]</noinclude>

This makes it much easier to see what's going on, and easier to add another line too. — Laoris (Blah) 19:57, 4 December 2008 (UTC)