Zum Inhalt springen

Vorlage:Template shortcut/Doku: Unterschied zwischen den Versionen

add links, info, sections, grammar
imported>Ahora
(Some more usage notes.)
(add links, info, sections, grammar)
Zeile 2: Zeile 2:
{{tsh|tsh}}
{{tsh|tsh}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template shows shortcuts (= redirects) to a template, like the box appearing at the right. {{tl|tsh}} is a shortcut to {{<nowiki />template shortcut}}.
This template shows shortcuts (= redirects) to a template, like the box appearing at the right. {{tl|Tsh}} is a shortcut to {{<nowiki />template shortcut}}.


;Which to show?
== Usage ==
Although it can show up to ten aliases, editors are ''encouraged to choose well'' which to display, even if there exist many redirects; ''two or three at most'' is almost always enough, and by keeping the number small, it facilitates template users to remember, and the situation is kept well organized.  
===Which to show?===
Although the template can show up to ten aliases, editors are ''encouraged to choose well'' which ones to display. Even if many redirects exist, ''two or three at the most'' is almost always enough, and by keeping the number small, it facilitates remembering them, and the situation is kept well organized.  


List others in "aliases" section of the template documentation. Again, you don't necessarily have to list all; some shortcuts are there just for historical reasons, and others differ only in whitespaces or in capitalization. Such names are better to hide.
List others in the "aliases" section of the [[Wikipedia:Template documentation|template documentation]]. Again, not all of them need to be listed; some shortcuts are there just for historical reasons, and others differ only in whitespaces or in capitalization. Such names are usually better to hide.


=== Usage ===
Place this template at the top of the template documentation page.
Put this template at the top of the template documentation.


If you want to indicate that {{tl|uw-vandalism1}} has shortcuts named {{tl|uw-v1}}, {{tl|uw-vandal1}}, and {{tl|uw-vand1}}, then you could use one of:
===Optional parameters===
This template has several optional parameters:
* '''float''' – if set to "left", then the box will float to the left of the page, instead of the default float "right".
* '''pre, pre2, pre3 ... up to pre10''' – can be used to show some text before the shortcut links, but within the braces. This is mostly used to indicate that the template should be used with substitution.


==Examples==
===Basic===
For one template shortcut named {{tl|uw-v1}}:
{{tlc|template shortcut|uw-v1}}
{{template shortcut|uw-v1}}
{{template shortcut|uw-v1}}
{{tlc|template shortcut|uw-v1}}
{{clear}}
{{clear}}


{{template shortcut|uw-v1|uw-vand1}}
To indicate that {{tl|uw-vandalism1}} has three shortcuts named: {{tl|uw-v1}}, {{tl|uw-vand1}}, and {{tl|uw-vandal1}}; then the following code may be used:
{{tlc|template shortcut|uw-v1|uw-vand1}}
{{clear}}


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


=== Additional parameters ===
=== With additional parameters ===
 
Using {{para|float|<var>left</var>}} makes this template flow to the left of the page:
This template has some additional parameters.
 
"float=left" makes this template flow to the left of the page instead:


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


"pre=something", "pre2=something" and "pre3=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:
Using {{para|pre2|<var>subst:</var>}} and {{para|pre3|<var>subst:</var>}} will show "subst:" before the shortcut links, but within the braces. For example:
 
{{template shortcut|pre=subst:|uw-v1|uw-vand1}}
<code><nowiki>{{template shortcut|pre=subst:|uw-v1|uw-vand1}}</nowiki></code>
{{clear}}


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


=== See also ===
== See also ==
 
* {{tl|policy shortcut}} – for shortcuts to sections of policy pages
* {{tl|shortcut}} – The normal shortcut.
* {{tl|shortcut}} – the normal shortcut
* {{tl|shortcut-l}} – For left aligned normal shortcuts.
* {{tl|shortcut-l}} – for left aligned normal shortcuts
* {{tl|policy shortcut}} – For shortcuts to sections of policy pages.


<includeonly>
<includeonly>
Anonymer Benutzer