(fix using 1 as value maybe?) |
(fix broken links when values were anything but 1) |
||
(3 intermediate revisions by the same user not shown) | |||
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={{#ifeq: {{{3ds|<noinclude>1</noinclude>}}} | 1 | 3DS:{{FULLPAGENAME}} | {{{3ds}}} <!-- ifeq -->}}}} <!-- if -->}} | {{#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>}}} }} | {{console selector/button|console=Wii U|page={{#ifeq: {{{wiiu|<noinclude>1</noinclude>}}} | 1 | Wii U:{{FULLPAGENAME}} | {{{wiiu}}} <!-- ifeq -->}}}} <!-- if -->}} {{#if: {{yesno|{{{switch|<noinclude>Switch:Things to do</noinclude>}}} }} | {{console selector/button|console=Nintendo Switch|page={{#ifeq: {{{switch|<noinclude>1</noinclude>}}} | 1 | Switch:{{FULLPAGENAME}} | {{{switch}}} <!-- ifeq -->}}}} <!-- if -->}} {{#if: {{yesno|{{{wii|<noinclude>Wii:Things to do</noinclude>}}} }} | {{console selector/button|console=Wii|page={{#ifeq: {{{wii|<noinclude>1</noinclude>}}} | 1 | Wii:{{FULLPAGENAME}} | {{{wii}}} <!-- ifeq -->}}}} <!-- if -->}} | ||
{{#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|{{{switch|<noinclude>Switch:Things to do</noinclude>}}} }} | {{console selector/button|console=Nintendo Switch|page={{#ifeq: {{{switch|<noinclude>1</noinclude>}}} | 1 | Switch:{{FULLPAGENAME}} | {{{switch}}} <!-- ifeq -->}}}} <!-- if -->}} | |||
{{#if: {{yesno|{{{wii|<noinclude>Wii:Things to do</noinclude>}}} }} | {{console selector/button|console=Wii|page={{#ifeq: {{{wii|<noinclude>1</noinclude>}}} | 1 | Wii:{{FULLPAGENAME}} | {{{wii}}} <!-- ifeq -->}}}} <!-- if -->}} | |||
</span><noinclude>{{Documentation}} | </span><noinclude>{{Documentation}} |
Latest revision as of 03:50, 9 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 |