Template:Shortcuts
(Redirected from Template:Sc)
Jump to navigation
Jump to search
[edit] [ ] Template documentation
This documentation is transcluded from Template:Shortcuts/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
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. 😉