Our 2014 Christmas Contests have begun! Check the Bulbagarden Forums to find out how you could win 1 of 30 copies of ORAS!
Please remember to follow the manual of style and code of conduct at all times.
Check BNN and Bulbanews for up-to-date Pokémon news and discuss it on the forums or in our IRC channel #bulbagarden on irc.systemnet.info.

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)