Template:Version
Appearance
[[File:{{#switch:
| win = OS_Windows_logo.svg
| macos = OS_macOS_logo.svg
| macx = OS_OSX_logo.svg
| mac9 = OS_MacClassic_logo.svg
| linux = OS_Linux_logo.svg
| unix = OS_UNIX_logo.svg
| beos = OS_BeOS_logo.svg
| #default = Icon_unknown.svg
}}|16px|link=|alt=]] [[{{{client}}}/{{{v}}}|{{{v}}}]]
Documentation
This template creates a styled link for a client version, complete with an OS icon.
Usage
{{Version
| client = Client Page Name
| v = Version Number
| os = os_code
}}
- client: The name of the main client article. The link will be created to a subpage of this article (e.g., "Hotline Client/1.2.3").
- v: The version number to display.
- os: A short code for the operating system.
OS Codes
- win - Windows
- macos - macOS (Modern)
- macx - Mac OS X
- mac9 - Mac OS Classic
- linux - Linux
- unix - UNIX
- beos - BeOS
Example
{{Version|client=Hotline Client|v=1.2.3|os=win}}
Produces: [[File:{{#switch:win
| win = OS_Windows_logo.svg | macos = OS_macOS_logo.svg | macx = OS_OSX_logo.svg | mac9 = OS_MacClassic_logo.svg | linux = OS_Linux_logo.svg | unix = OS_UNIX_logo.svg | beos = OS_BeOS_logo.svg | #default = Icon_unknown.svg }}|16px|link=|alt=win]] 1.2.3 (This example will only work if the template and icons are in place).