Template:Version: Difference between revisions

From Hotline Wiki
Jump to navigationJump to search
m (Protected "Template:Version" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
No edit summary
Line 1: Line 1:
<span class="client-version-tag" style="white-space:nowrap; margin-right:5px;">[[File:{{#switch:{{{os|}}}
<span class="client-version-tag" style="white-space:nowrap; margin-right:5px;">[[File:{{#switch:{{{os|}}}
  | win = OS_Windows_logo.svg
  | win = OS_Windows_logo.png
  | macos = OS_macOS_logo.svg
  | macos = OS_macOS_logo.png
  | macx = OS_OSX_logo.svg
  | macx = OS_OSX_logo.png
  | mac9 = OS_MacClassic_logo.svg
  | mac9 = OS_MacClassic_logo.png
  | linux = OS_Linux_logo.svg
| mac68k = OS_Mac68k_logo.png
  | unix = OS_UNIX_logo.svg
| macppc = OS_MacPPC_logo.png
  | beos = OS_BeOS_logo.svg
| carbon = OS_MacCarbon_logo.png
  | linux = OS_Linux_logo.png
  | unix = OS_UNIX_logo.png
  | beos = OS_BeOS_logo.png
  | #default = Icon_unknown.svg
  | #default = Icon_unknown.svg
  }}|16px|link=|alt={{{os|}}}]]&nbsp;[[{{{client}}}/{{{v}}}|{{{v}}}]]</span><noinclude>
  }}|16px|link=|alt={{{os|}}}]]&nbsp;[[{{{client}}}/{{{v}}}|{{{v}}}]]</span><noinclude>
Line 22: Line 25:
</pre>
</pre>


* '''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").
* '''client''': The name of the main client article. The link will be created to a subpage (e.g., "Hotline Client/1.2.3").
* '''v''': The version number to display.
* '''v''': The version number to display.
* '''os''': A short code for the operating system.
* '''os''': A short code for the operating system.
Line 31: Line 34:
* '''macx''' - Mac OS X
* '''macx''' - Mac OS X
* '''mac9''' - Mac OS Classic
* '''mac9''' - Mac OS Classic
* '''mac68k''' - Mac OS 68k
* '''macppc''' - Mac OS PPC
* '''carbon''' - Mac OS Carbon
* '''linux''' - Linux
* '''linux''' - Linux
* '''unix''' - UNIX
* '''unix''' - UNIX
* '''beos''' - BeOS
* '''beos''' - BeOS
=== Example ===
<pre>
{{Version|client=Hotline Client|v=1.2.3|os=win}}
</pre>
Produces: {{Version|client=Hotline Client|v=1.2.3|os=win}} (This example will only work if the template and icons are in place).


</noinclude>
</noinclude>

Revision as of 03:52, 20 October 2025

File:Icon unknown.svg [[{{{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 (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
  • mac68k - Mac OS 68k
  • macppc - Mac OS PPC
  • carbon - Mac OS Carbon
  • linux - Linux
  • unix - UNIX
  • beos - BeOS