Template:User Windows Server/doc
Userbox Code
| Opening Tags | Userbox Location | Parameter (Optional) | Closing Tags |
|---|---|---|---|
| {{ | User Windows Server | |Version/Year | }} |
Tip: The valid versions are hard-coded; the examples are the only working options.
- If no version/year is passed to the template, it defaults to the first example.
- 2012 and 2012R2 produce different colored output
- 2012 uses the lighter blue logo
- 2012R2 uses the same colors as 2016–2022
- The 2012 flag and 2022/2025 Alt flags are technically different colors, #3b7bd2 and #3b7bd0 respectively, and the border color matches the main (or blue) flag color for all options. I split the difference and made the border #3b7bd1 for all three of them.
- Yes, I am fully aware that writing this out wastes more space than including separate cases in the switch statement.
- Nobody's color vision is that good. But now that you know, it will bother you.
$cleanCode > $cleanDocsdon't @ me
- Nobody's color vision is that good. But now that you know, it will bother you.
- Yes, I am fully aware that writing this out wastes more space than including separate cases in the switch statement.
Sample usage
If you edit the template, please add your new example to the documentation.
- There is only one, unnamed variable —
{{{1}}} - The template uses simple switch statements to change the border, logo, and linked text
- The groupings in the border and logo switch statements are commented so you don't have to figure things out.
| Output | Template Code | ||
|---|---|---|---|
| Default | |||
|
{{User Windows Server}}
| ||
| Regular Options | |||
|
{{User Windows Server|Hyper-V}}
| ||
|
{{User Windows Server|2000}}
| ||
|
{{User Windows Server|2003}}
| ||
|
{{User Windows Server|2008}}
| ||
|
{{User Windows Server|2008R2}}
| ||
|
{{User Windows Server|2012}}
| ||
|
{{User Windows Server|2012R2}}
| ||
|
{{User Windows Server|2016}}
| ||
|
{{User Windows Server|2019}}
| ||
|
{{User Windows Server|2022}}
| ||
|
{{User Windows Server|2025}}
| ||
| Alternate Options — 2022/2025 + Blue W11 Flag | |||
|
{{User Windows Server|2022A}}
| ||
|
{{User Windows Server|2025A}}
| ||
| Extra Options — Change color/flag without denoting version | |||
|
{{User Windows Server|3x}}
| ||
|
{{User Windows Server|9x}}
| ||
|
{{User Windows Server|XP}}
| ||
|
{{User Windows Server|8}}
| ||
|
{{User Windows Server|11}}
| ||
|
{{User Windows Server|Black}}
| ||
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.