(Created page with "<span class="invert-dark no-rounded-image"> {{#if: {{yesno|{{{3ds|<noinclude>3DS:Things to do</noinclude>}}} }} | {{Clickable button 2|{{#ifeq: {{{3ds<noinclude>|1</noinclude>}}} | 1 | 3DS:{{FULLPAGENAME}} | {{{3ds}}} <!-- ifeq -->}}|Nintendo 3DS <!-- cb2 -->}} <!-- if -->}} {{#if: {{yesno|{{{wiiu|<noinclude>Wii U:Things to do</noinclude>}}} }} | {{Clickable button 2|{{#ifeq: {{{wiiu<noinclude>|1</noinclude>}}} | 1 | Wii U:{{FULLPAGENAME}} | {{{wiiu}}} <!-- ifeq -->}}|Wi...") |
(use Template:Console selector/button which can check if the page exists and display a second result, without code duplication) |
||
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>}}} }} | {{ | {{#if: {{yesno|{{{3ds|<noinclude>3DS:Things to do</noinclude>}}} }} | {{console selector/button|console=Nintendo 3DS|page={{#ifeq: {{{3ds<noinclude>|1</noinclude>}}} | 1 | 3DS:{{FULLPAGENAME}} | {{{3ds}}} <!-- ifeq -->}}}} <!-- if -->}} | ||
{{#if: {{yesno|{{{wiiu|<noinclude>Wii U:Things to do</noinclude>}}} }} | {{ | {{#if: {{yesno|{{{wiiu|<noinclude>Wii U:Things to do</noinclude>}}} }} | {{console selector/button|console=Wii U|page={{#ifeq: {{{wiiu<noinclude>|1</noinclude>}}} | 1 | Wii U:{{FULLPAGENAME}} | {{{wiiu}}} <!-- ifeq -->}}}} <!-- if -->}} | ||
{{#if: {{yesno|{{{ | {{#if: {{yesno|{{{3ds|<noinclude>3DS:Things to do</noinclude>}}} }} | {{console selector/button|console=Nintendo Switch|page={{#ifeq: {{{switch<noinclude>|1</noinclude>}}} | 1 | Switch:{{FULLPAGENAME}} | {{{switch}}} <!-- ifeq -->}}}} <!-- if -->}} | ||
</span> | </span><noinclude>{{Documentation}} | ||
<noinclude>{{Documentation}} |
Revision as of 05:48, 2 March 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 |