K (Fehler behoben.) |
K (Kleinere Anpassung.) |
||
Zeile 1: | Zeile 1: | ||
{{übersetzung}} |
{{übersetzung}} |
||
<noinclude>Note: This template documentation is transcluded on all [[:Category:Versionsvorlagen|version templates]]. Template:Common_version does not exist.<br/>For this documentation page, [[Template:Desktop version]] is used. However, the documentation will automatically detect the template page it is used on and adjust accordingly.</noinclude><!-- |
<noinclude>Note: This template documentation is transcluded on all [[:Category:Versionsvorlagen|version templates]]. Template:Common_version does not exist.<br/>For this documentation page, [[Template:Desktop version]] is used. However, the documentation will automatically detect the template page it is used on and adjust accordingly.</noinclude><!-- |
||
− | -->{{#vardefine:t-name|<includeonly>{{ |
+ | -->{{#vardefine:t-name|<includeonly>{{lcfirst:{{PAGENAME}}}}</includeonly><noinclude>desktop version</noinclude>}}<!-- |
-->{{#vardefine:t_icon-name|icon/{{#sub:{{#var:t-name}}||-8}}}} |
-->{{#vardefine:t_icon-name|icon/{{#sub:{{#var:t-name}}||-8}}}} |
||
Aktuelle Version vom 29. März 2020, 16:25 Uhr
Diese Seite ist nicht oder unvollständig übersetzt. | |
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung. |
Note: This template documentation is transcluded on all version templates. Template:Common_version does not exist.
For this documentation page, Template:Desktop version is used. However, the documentation will automatically detect the template page it is used on and adjust accordingly.
Displays a standardized version link with icon, shown above. To display multiple versions, use {{versions}}.
Whenever the term "Desktop version" is used in an article, it should be replaced with this template to ensure consistency.
Usage
All parameters are optional.
{{ desktop version | <display mode> | short = y | nl = y | t = <custom display text> | glue = <characters between icon and text> | small = y | size = <size in px> | width = <width in px> | height = <height in px> | scale = <scale ratio> }}
- First unnamed parameter
Display mode; set it to one of the following values:
– Display the icon only (see {{icon/desktop}}).icon
– Display the text only.text
– Display the icon and an abbreviated version name.short
- short
Display an abbreviation of the version name. Identical to setting the first unnamed parameter to
.
short
- nl
Remove the link from the icon and/or text. They are linked by default.
- t
Customize the displayed text. Overrides |short=y
and has no effect when using
as mode.
icon
- glue
Set the characters between the icon and the text. Defaults to
.
- small, size, width, height, scale
Customize the icon display, see {{icon/desktop}} for details.
Examples
Code | Result | Note |
---|---|---|
{{desktop version}} |
Desktopversion | |
{{desktop version|icon}} |
Identical to {{icon/desktop}} .
| |
{{desktop version|text}} |
Desktopversion | |
{{desktop version|short}} |
Desktop | |
{{desktop version|text|short=y}} |
Desktop | |
{{desktop version|t=sometext}} |
sometext | Custom display text. |
{{desktop version|short=y}} |
Desktop | Identical to {{desktop version|short}}
|
{{desktop version|nl=y}} |
Desktopversion | No link. |
{{desktop version|text|nl=y}} |
Desktopversion | No link. |
{{desktop version|short|nl=y}} |
Desktop | No link. |
{{desktop version|glue=-}} |
-Desktopversion | |
{{desktop version|scale=2}} |
Desktopversion | See {{icon/desktop}}. |
{{desktop version|icon|small=y}} |
See {{icon/desktop}}. |