Actions

Template

Difference between revisions of "Shortcut"

From Joomla! Documentation

m (dropped link to Shortcuts page)
m (making the shortcuts a bit smaller)
Line 1: Line 1:
<table class="noprint infobox template-shortcut"><th class="noprint">Shortcut{{#if:{{{2|}}}|s}}:<br />{{#ifexist:{{{1|}}}|[[{{{1}}}]]|{{{1|}}} }}{{#if:{{{2|}}}|<br />[[{{{2}}}]]}}{{#if:{{{3|}}}|<br />[[{{{3}}}]]}}{{#if:{{{4|}}}|<br />[[{{{4}}}]]}}{{#if:{{{5|}}}|<br />[[{{{5}}}]]}}</th></table><noinclude><br clear="all"/>
+
<table class="noprint infobox template-shortcut"><th class="noprint"><small>Shortcut{{#if:{{{2|}}}|s}}:<br />{{#ifexist:{{{1|}}}|[[{{{1}}}]]|{{{1|}}} }}{{#if:{{{2|}}}|<br />[[{{{2}}}]]}}{{#if:{{{3|}}}|<br />[[{{{3}}}]]}}{{#if:{{{4|}}}|<br />[[{{{4}}}]]}}{{#if:{{{5|}}}|<br />[[{{{5}}}]]}}</small></th></table><noinclude><br clear="all"/>
 
{{documentation}}
 
{{documentation}}
 
{{pp-template|small=yes}}
 
{{pp-template|small=yes}}
 
{{wikipedia template}}
 
{{wikipedia template}}
 
</noinclude>
 
</noinclude>

Revision as of 08:18, 2 February 2013

Shortcut:

[view] [edit] [history]

Template-info.pngTemplate documentation

Contents

This template is primarily used on the Joomla! Documentation guideline and policy pages to show the shortest alias of a given page. For example, [[JEDL]] redirects to [[Joomla! Electronic Documentation Licence]]. The point of this template is not to list every single redirect (indeed, that's what Special:Whatlinkshere is for); for any given page, it should list only one or two common and easily-remembered redirects.

Don't use this template on other templates, e.g. to state that the shortcut to [[Template:Foo]] is in fact {{Foo}}. There's no need to state the obvious like that, by default every template uses its own name as a shortcut for transclusion.

This template can take up to five shortcuts as parameters. The first parameter can be linked or unlinked; the remaining parameters must be unlinked.

Examples

Code Result
{{Shortcut|JDOC:PAG}}
Shortcut:
JDOC:PAG
{{Shortcut|JDOC:PAG|JDOC:GUIDE}}
Shortcuts:
JDOC:PAG
JDOC:GUIDE
{{Shortcut|[[JDOC:PAG]]|JDOC:GUIDE|JDOC:POLICY}}
Shortcuts:
JDOC:PAG
JDOC:GUIDE
JDOC:POLICY



Shortcut is based on: Wikipedia:Shortcut (edit|talk|history|links|watch|logs)