(fix using 1 as value maybe?) |
(try using yesno for checking truth value) |
||
Line 1: | Line 1: | ||
<span class="invert-dark no-rounded-image"> | <span class="invert-dark no-rounded-image"> | ||
{{#if: {{yesno|{{{3ds|<noinclude>3DS:Things to do</noinclude>}}} }} | {{console selector/button|console=Nintendo 3DS|page={{# | {{#if: {{yesno|{{{3ds|<noinclude>3DS:Things to do</noinclude>}}} }} | {{console selector/button|console=Nintendo 3DS|page={{#if: {{yesno|{{{3ds|<noinclude>1</noinclude>}}}}} | 3DS:{{FULLPAGENAME}} | {{{3ds}}} <!-- ifeq -->}}}} <!-- if -->}} | ||
{{#if: {{yesno|{{{wiiu|<noinclude>Wii U:Things to do</noinclude>}}} }} | {{console selector/button|console=Wii U|page={{# | {{#if: {{yesno|{{{wiiu|<noinclude>Wii U:Things to do</noinclude>}}} }} | {{console selector/button|console=Wii U|page={{#if: {{yesno|{{{wiiu|<noinclude>1</noinclude>}}}}} | Wii U:{{FULLPAGENAME}} | {{{wiiu}}} <!-- ifeq -->}}}} <!-- if -->}} | ||
{{#if: {{yesno|{{{switch|<noinclude>Switch:Things to do</noinclude>}}} }} | {{console selector/button|console=Nintendo Switch|page={{# | {{#if: {{yesno|{{{switch|<noinclude>Switch:Things to do</noinclude>}}} }} | {{console selector/button|console=Nintendo Switch|page={{#if: {{yesno|{{{switch|<noinclude>1</noinclude>}}}}} | Switch:{{FULLPAGENAME}} | {{{switch}}} <!-- ifeq -->}}}} <!-- if -->}} | ||
{{#if: {{yesno|{{{wii|<noinclude>Wii:Things to do</noinclude>}}} }} | {{console selector/button|console=Wii|page={{# | {{#if: {{yesno|{{{wii|<noinclude>Wii:Things to do</noinclude>}}} }} | {{console selector/button|console=Wii|page={{#if: {{yesno|{{{wii|<noinclude>1</noinclude>}}}}} | Wii:{{FULLPAGENAME}} | {{{wii}}} <!-- ifeq -->}}}} <!-- if -->}} | ||
</span><noinclude>{{Documentation}} | </span><noinclude>{{Documentation}} |
Revision as of 16:00, 2 November 2023
This is a button selector for disambiguation pages where each console has a different page.
This provides three arguments: |3ds=
, |wiiu=
, |switch=
, and |wii=
. Set 1
to link to the same page in the console namespace (e.g. if the page is "Cheats", |3ds=1
will link to "3DS:Cheats"). Set to a page title to link to a specific one, including namespace (e.g. |3ds=3DS:Game plugins
).
TemplateData
Link to console-specific page
Parameter | Description | Type | Status | |
---|---|---|---|---|
3DS page | 3ds | Set to 1 to link to same page in 3DS namespace, or to a specific page name to link to that | String | optional |
Wii U page | wiiu | Set to 1 to link to same page in Wii U namespace, or to a specific page name to link to that | String | optional |
Switch page | switch | Set to 1 to link to same page in Switch namespace, or to a specific page name to link to that | String | optional |
Wii page | wii | Set to 1 to link to same page in Wii namespace, or to a specific page name to link to that | String | optional |