Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:User Windows Server/doc

From Wikipedia, the free encyclopedia

Userbox Code

[edit]
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 > $cleanDocs don't @ me

Sample usage

[edit]

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
This user contributes using
Windows Server
{{User Windows Server}}
Regular Options
This user contributes using
Hyper-V Server
{{User Windows Server|Hyper-V}}
This user contributes using
Windows Server 2000
{{User Windows Server|2000}}
This user contributes using
Windows Server 2003
{{User Windows Server|2003}}
This user contributes using
Windows Server 2008
{{User Windows Server|2008}}
This user contributes using
Windows Server 2008 R2
{{User Windows Server|2008R2}}
This user contributes using
Windows Server 2012
{{User Windows Server|2012}}
This user contributes using
Windows Server 2012 R2
{{User Windows Server|2012R2}}
This user contributes using
Windows Server 2016
{{User Windows Server|2016}}
This user contributes using
Windows Server 2019
{{User Windows Server|2019}}
This user contributes using
Windows Server 2022
{{User Windows Server|2022}}
This user contributes using
Windows Server 2025
{{User Windows Server|2025}}
Alternate Options — 2022/2025 + Blue W11 Flag
This user contributes using
Windows Server 2022
{{User Windows Server|2022A}}
This user contributes using
Windows Server 2025
{{User Windows Server|2025A}}
Extra Options — Change color/flag without denoting version
This user contributes using
Windows Server
{{User Windows Server|3x}}
This user contributes using
Windows Server
{{User Windows Server|9x}}
This user contributes using
Windows Server
{{User Windows Server|XP}}
This user contributes using
Windows Server
{{User Windows Server|8}}
This user contributes using
Windows Server
{{User Windows Server|11}}
This user contributes using
Windows Server
{{User Windows Server|Black}}