Vorlage:Template shortcut/Doku: Unterschied zwischen den Versionen
K (DerFussi verschob Seite Benutzer:DerFussi/Template:Template shortcut/doc nach Vorlage:Template shortcut/Doku, ohne dabei eine Weiterleitung anzulegen) |
(erste Anpassungen/Übersetzungen) |
||
Zeile 1: | Zeile 1: | ||
{{Dokumentation Unterseite}} | {{Dokumentation Unterseite}} | ||
{{Template shortcut|Tsh}} | |||
Die Vorlage verweiste auf eine Kurzform (Shortcut) einer Vorlage, wie in der Box hier rechts dargestellt. | |||
== | == Verwendung == | ||
===Which to show?=== | ===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. | 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. | ||
Zeile 44: | Zeile 44: | ||
{{clear}} | {{clear}} | ||
== | == Individuelle Gestaltung == | ||
* {{ | Die Einbindung der Sprachvorlage lässt sich über [[:w:Cascading Style Sheets|CSS]] individuell gestalten, entweder zentral über die Systemdatei [[Mediawiki:common.css]] oder benutzerspezifische Einstellungen [[Special:MyPage/common.css|''Benutzer:<Dein Name>/common.css'']]. Für Programmierer ist es damit auch möglich an jedem Feld per [[:w:de:Javascript|Javascript]] Änderungen vorzunehmen und Werkzeuge zu programmieren. Folgende Klassen wurde verwendet: | ||
* {{ | * {{Code|.wv-shortcut-box}} | ||
* | |||
== Siehe auch == | |||
* {{Tl|Shortcut}} – Allgemeine Vorlage für Shortcuts | |||
* [[Wikivoyage:Shortcuts]] – Liste mit alle Abkürzungen, die auf Wikivoyage verfügbar sind. | |||
<includeonly> | <includeonly> |
Version vom 9. August 2016, 10:14 Uhr
Dies ist eine nachgeordnete Seite der Dokumentation von Vorlage:Template shortcut. Sie enthält Informationen zur Verwendung, Kategorisierung und zu anderem Inhalt, der nicht Bestandteil der originalen Vorlage-Seite ist. |
Die Vorlage verweiste auf eine Kurzform (Shortcut) einer Vorlage, wie in der Box hier rechts dargestellt.
Verwendung
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 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
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 {{uw-v1}}:
{{template shortcut|uw-v1}}
To indicate that {{uw-vandalism1}} has three shortcuts named: {{uw-v1}}, {{uw-vand1}}, and {{uw-vandal1}}; then the following code may be used:
{{template shortcut|uw-v1|uw-vand1|uw-vandal1}}
With additional parameters
Using |float=left
makes this template flow to the left of the page:
{{template shortcut|float=left|uw-v1}}
Using |pre2=subst:
and |pre3=subst:
will show "subst:" before the shortcut links, but within the braces. For example:
{{template shortcut|uw-v1|pre2=subst:|uw-vand1|pre3=subst:|uw-vandal1}}
Individuelle Gestaltung
Die Einbindung der Sprachvorlage lässt sich über CSS individuell gestalten, entweder zentral über die Systemdatei Mediawiki:common.css oder benutzerspezifische Einstellungen Benutzer:<Dein Name>/common.css. Für Programmierer ist es damit auch möglich an jedem Feld per Javascript Änderungen vorzunehmen und Werkzeuge zu programmieren. Folgende Klassen wurde verwendet:
.wv-shortcut-box
Siehe auch
- {{Shortcut}} – Allgemeine Vorlage für Shortcuts
- Wikivoyage:Shortcuts – Liste mit alle Abkürzungen, die auf Wikivoyage verfügbar sind.