Template talk:Shortcut
Add topicAppearance
Latest comment: 5 years ago by Pi zero in topic Add multiple shortcuts
I think it would look a lot better if we dropped the line break (<br\>) and just made the shortcut box one line, to me it would look a little nicer. --Mrmiscellanious 20:44, 25 July 2005 (UTC)
you mean like this.
Shortcut:TP:SC
--Ryan524 20:53, 25 July 2005 (UTC)
- Exactly like that, yes. --Mrmiscellanious 20:57, 25 July 2005 (UTC)
- fwiw, i like it on two lines... IlyaHaykinson 04:41, July 26, 2005 (UTC)
Plese rember to add any shortcut you create to WN:WN Bawolff 03:07, 30 August 2005 (UTC)
edit?
[edit]"Shortcut:" should probably link to [[WN:]]. 68.39.174.238 18:42, 20 April 2006 (UTC)
Add multiple shortcuts
[edit]{{editprotected}}
Old code
[edit]<div id="shortcut" style="border: 1px dashed blue; margin: 0em 1em 0em 1em; text-align: center; padding:5px; float: right; clear: right;"> '''[[WN:WN|Shortcut:]]'''<br />{{{1}}}</div>
New code
[edit]<div id="shortcut" style="border: 1px dashed blue; margin: 0em 1em 0em 1em; text-align: center; padding:5px; float: right; clear: right;"> {{#ifexist: {{{2}}}|'''[[WN:WN|Shortcut:]]'''|'''[[WN:WN|Shortcuts:]]'''}}<br />{{{1}}}{{#ifexist: {{{2}}}|<br />{{{2}}}|<!-- Blank -->}}{{#ifexist: {{{3}}}|<br />{{{3}}}|<!-- Blank -->}}{{#ifexist: {{{4}}}|<br />{{{4}}}|<!-- Blank -->}}{{#ifexist: {{{5}}}|<br />{{{5}}}|<!-- Blank -->}}</div>
Changes
[edit]- Lets you add up to 5 shortcuts
- If there are 2 or more shortcuts it changes to "Shortcuts:". PokestarFan (talk) 14:19, 14 April 2017 (UTC)
- Haven't closely studied the code. I'm thinking, tentatively, being forced to chose a single shortcut to list promotes brevity. --Pi zero (talk) 13:58, 2 August 2019 (UTC)