Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:OS selector/doc: Difference between revisions

Template page
(TemplateData)
(add hideheader param)
 
Line 30: Line 30:
"label": "Mac",
"label": "Mac",
"description": "Link to Mac subpage",
"description": "Link to Mac subpage",
"type": "boolean"
},
"hideheader": {
"label": "Hide header",
"description": "Don't show the \"Choose your operating system\" header",
"type": "boolean"
"type": "boolean"
}
}
Line 37: Line 42:
"windows",
"windows",
"linux",
"linux",
"mac"
"mac",
"hideheader"
]
]
}
}
</templatedata>
</templatedata>

Latest revision as of 23:50, 18 December 2023

Shows a set of buttons to allow the user to choose their operating system. It links to a subpage.

Set the parameters |windows=1, |linux=1, or |mac=1. Shortened aliases are available: |w=1, |l=1, |m=1

TemplateData

Link to per-OS subpages

Template parameters

ParameterDescriptionTypeStatus
Windowswindows w

Link to Windows subpage

Booleanoptional
Linuxlinux l

Link to Linux subpage

Booleanoptional
Macmac m

Link to Mac subpage

Booleanoptional
Hide headerhideheader

Don't show the "Choose your operating system" header

Booleanoptional