Vorlage:Template shortcut: Unterschied zwischen den Versionen

Permanently protected template
ZIM HilfeWiki - das Wiki
K (Schützte „Vorlage:Template shortcut“ ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt)))
imported>Oetterer
K (Schützte „Vorlage:Template shortcut“: Automatic protection of selected project pages ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt)))
 
(kein Unterschied)

Aktuelle Version vom 7. Oktober 2022, 16:56 Uhr

Documentation icon Template documentation


This template shows shortcuts (= redirects) to a template, like the box appearing at the right.

Usage[Quelltext bearbeiten]

Which to show?[Quelltext bearbeiten]

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 the "aliases" section of the 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.

Place this template at the top of the template documentation page.

Optional parameters[Quelltext bearbeiten]

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".
  • clear – if set to "right" (and float = right) the box will be pushed to the right margin of the page, and prevent it from nest to the left of other right floating elements. Similarly, if set to "left" (and float = left) the box will be pushed to the left margin of the page.
  • 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.
  • top – to change the padding above the box (e.g. |top=0 for no padding, |top=0.2em, |top=4 / |top=4px, etc).

Examples[Quelltext bearbeiten]

Basic[Quelltext bearbeiten]

For one template shortcut named {{nbsp}}:

{{template shortcut|nbsp}}

To indicate that {{Collapse bottom}} has two shortcuts named: {{Vorlage:Collapse bottom}} and {{Vorlage:Collapse bottom}}; then the following code may be used:

{{template shortcut|Cb|Cob}}

With additional parameters[Quelltext bearbeiten]

Using |float=left makes this template flow to the left of the page:

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

Using |pre2=subst: will show "subst:" before the shortcut link, but within the braces. For example:

{{template shortcut|Cb|pre2=subst:|Cob}}

Cookies helfen uns bei der Bereitstellung des ZIM HilfeWikis. Bei der Nutzung vom ZIM HilfeWiki werden die in der Datenschutzerklärung beschriebenen Cookies gespeichert.