This user contributes using Windows Server |
Userbox Code
editOpening 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 > $cleanDocs
don'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
editIf 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}} |