Template:S: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(Template now works for images and categories)
No edit summary
Line 5: Line 5:
For example, <code><nowiki>{{S|Special|RecentChanges}}</nowiki></code> results in {{S|Special|RecentChanges}}.
For example, <code><nowiki>{{S|Special|RecentChanges}}</nowiki></code> results in {{S|Special|RecentChanges}}.


This template can also be used for interwiki links. For example, <code><nowiki>{{S|wikipedia|Super Smash Bros. Brawl}}</nowiki></code> results in {{S|wikipedia|Super Smash Bros. Brawl}}. However, be warned that this is a coincidence and not the intended use of the template.
This template can also be used for interwiki links. For example, <code><nowiki>{{S|wikipedia|Super Smash Bros. Brawl}}</nowiki></code> results in {{S|wikipedia|Super Smash Bros. Brawl}}. However, be warned that this is a coincidence due to both types of links using the same format, and not the intended use of the template.
 
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Shortcut templates]]</noinclude>

Revision as of 09:53, May 1, 2014

[[:{{{1}}}:{{{2}}}|{{{2}}}]]

A namespace-linking simplifier. Put in {{S|X|Y}} for a shortcut of [[X:Y|Y]].

For example, {{S|Special|RecentChanges}} results in RecentChanges.

This template can also be used for interwiki links. For example, {{S|wikipedia|Super Smash Bros. Brawl}} results in Super Smash Bros. Brawl. However, be warned that this is a coincidence due to both types of links using the same format, and not the intended use of the template.