Vorlage:Template shortcut/Doku: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
imported>Davidgothberg
(Added the name of the template in the first sentence, like we do in articles. Also shows how one can show the {{name}} of the template, thus not needing a shortcut box if there is only one name.)
imported>Davidgothberg
(Oops, most of the examples were using the /sandbox version.)
Zeile 30: Zeile 30:
"float=left" makes this template flow to the left of the page instead:
"float=left" makes this template flow to the left of the page instead:


{{template shortcut/sandbox | float=left | uw-v1 }}
{{template shortcut | float=left | uw-v1 }}
<code><nowiki>{{template shortcut/sandbox | float=left | uw-v1 }}</nowiki></code>
<code><nowiki>{{template shortcut | float=left | uw-v1 }}</nowiki></code>
{{clear}}
{{clear}}


"pre=something", "pre1=something" and "pre2=something" feeds some text to show before the shortcut links but within the braces. This is mostly used to indicate that the template should be used with substitution. Then you can do like this:
"pre=something", "pre1=something" and "pre2=something" feeds some text to show before the shortcut links but within the braces. This is mostly used to indicate that the template should be used with substitution. Then you can do like this:


{{template shortcut/sandbox | pre=subst: | uw-v1 | uw-vand1 }}
{{template shortcut | pre=subst: | uw-v1 | uw-vand1 }}
<code><nowiki>{{template shortcut/sandbox | pre=subst: | uw-v1 | uw-vand1 }}</nowiki></code>
<code><nowiki>{{template shortcut | pre=subst: | uw-v1 | uw-vand1 }}</nowiki></code>
{{clear}}
{{clear}}


{{template shortcut/sandbox | uw-v1 | pre2=subst: | uw-vand1 | pre3=subst: | uw-vandal1 }}
{{template shortcut | uw-v1 | pre2=subst: | uw-vand1 | pre3=subst: | uw-vandal1 }}
<code><nowiki>{{template shortcut/sandbox | uw-v1 | pre2=subst: | uw-vand1 | pre3=subst: | uw-vandal1 }}</nowiki></code>
<code><nowiki>{{template shortcut | uw-v1 | pre2=subst: | uw-vand1 | pre3=subst: | uw-vandal1 }}</nowiki></code>
{{clear}}
{{clear}}



Version vom 28. April 2008, 21:30 Uhr

This is the {{template shortcut}} template.

It can be used to show the names of shortcuts to a template.

It can take up to three shortcuts as parameters.

Usage

If you want to indicate that {{uw-vandalism1}} has shortcuts named {{uw-v1}}, {{uw-vandal1}}, and {{uw-vand1}}, then you could use one of:

{{template shortcut|uw-v1}}

{{template shortcut|uw-v1|uw-vand1}}

{{template shortcut|uw-v1|uw-vand1|uw-vandal1}}

Additional parameters

This template has some additional parameters.

"float=left" makes this template flow to the left of the page instead:

{{template shortcut | float=left | uw-v1 }}

"pre=something", "pre1=something" and "pre2=something" feeds some text to show before the shortcut links but within the braces. This is mostly used to indicate that the template should be used with substitution. Then you can do like this:

{{template shortcut | pre=subst: | uw-v1 | uw-vand1 }}

{{template shortcut | uw-v1 | pre2=subst: | uw-vand1 | pre3=subst: | uw-vandal1 }}

See also