Template:OS selector: Difference between revisions
Template page
More actions
more testing... Tag: Reverted |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude><languages/></noinclude>{{#if: {{yesno|{{{hideheader|}}}}} | <!-- no header --> | <h2><translate><!--T:1--> Choose your operating system</translate></h2 | <noinclude><languages/></noinclude>{{#if: {{yesno|{{{hideheader|}}}}} | <!-- no header --> | <h2><translate><!--T:1--> Choose your operating system</translate></h2> }} | ||
<span class="invert-dark no-rounded-image"> | <span class="invert-dark no-rounded-image"> | ||
{{#if: {{yesno|{{{windows| {{{w|<noinclude>1</noinclude>}}} }}} }} | {{Clickable button 2|[[File:Font Awesome 5 brands microsoft.svg|x20px|link=|alt=Windows logo]] Windows|url={{fullurl: | {{#if: {{yesno|{{{windows| {{{w|<noinclude>1</noinclude>}}} }}} }} | {{Clickable button 2|[[File:Font Awesome 5 brands microsoft.svg|x20px|link=|alt=Windows logo]] Windows|url={{fullurl:{{Lang subpage|{{NAMESPACE}}:{{ROOTPAGENAME}}/Windows|wrap=0}}}}}} }} | ||
{{#if: {{yesno|{{{linux| {{{l|<noinclude>1</noinclude>}}} }}} }} | {{Clickable button 2|[[File:Font Awesome 5 brands linux.svg |x20px|link=|alt=Linux icon]] Linux|url={{fullurl: | {{#if: {{yesno|{{{linux| {{{l|<noinclude>1</noinclude>}}} }}} }} | {{Clickable button 2|[[File:Font Awesome 5 brands linux.svg |x20px|link=|alt=Linux icon]] Linux|url={{fullurl:{{Lang subpage|{{NAMESPACE}}:{{ROOTPAGENAME}}/Linux|wrap=0}}}}}} }} | ||
{{#if: {{yesno|{{{mac| {{{m|<noinclude>1</noinclude>}}} }}} }} | {{Clickable button 2|[[File:Apple logo black.svg|x20px|link=|alt=Apple logo]] Mac|url={{fullurl: | {{#if: {{yesno|{{{mac| {{{m|<noinclude>1</noinclude>}}} }}} }} | {{Clickable button 2|[[File:Apple logo black.svg|x20px|link=|alt=Apple logo]] Mac|url={{fullurl:{{Lang subpage|{{NAMESPACE}}:{{ROOTPAGENAME}}/Mac|wrap=0}}}}}} }} | ||
</span><noinclude>{{Documentation}} | </span><noinclude>{{Documentation}} | ||
Latest revision as of 03:42, 2 August 2025
Choose your operating system
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Windows | windows w | Link to Windows subpage | Boolean | optional |
| Linux | linux l | Link to Linux subpage | Boolean | optional |
| Mac | mac m | Link to Mac subpage | Boolean | optional |
| Hide header | hideheader | Don't show the "Choose your operating system" header | Boolean | optional |