Template:Shortcuts

From Uncyclopedia, the content-free encyclopedia
(Redirected from Template:Shortcut)
Jump to navigation Jump to search
[edit] [purge] Template-info.svg Template documentation

Usage

{{sc|shortcut1}}
{{sc|shortcut1|shortcut2}}
{{sc|shortcut1|shortcut2|shortcut3}}
{{sc|shortcut1|shortcut2|shortcut3|...|shortcut20}}

Wikilinks and line breaks are no longer needed. This was a hack in the past, that interferes with the template logic.

History

{{Shortcut}} (singular) used to require {{shortcut|[[UN:SC]]<br />[[UN:Short]]}}; {{Shortcuts}} (plural) was the more powerful version. One has been redirected to the other, and with this template, {{sc|UN:SC|UN:Short}} renders the same.

Code for this template was generated quickly with this Python command:

print ''.join([" {{if|{{{%i|}}}|'''<br />[[{{{%i}}}]]'''|}}" % (i, i) for i in range(2, 1001)])

...because it would be ironic to code {{sc}} without using shortcuts. 😉

See also