Template talk:Shortcut

Add topic
Active discussions
Revision as of 19:57, 4 December 2008 by Laoris (talk | contribs) (New page: ==Template== Instead of requiring users of this template to specify how many shortcuts they want, why don't we just recode it with <code>if</code> statements to eliminate one parameter? S...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)

Return to "Shortcut" page.