Template:Control selector

From StrategyWiki, the free strategy guide and walkthrough wiki

This page has been transcluded from Template:Control selector/Documentation.


This template is used to give the user a choice of which controls to display on a page. It is used either:

  • once on a page at the top, just beneath the {{Header Nav}}, or
  • in the Table of Contents of a guide, just beneath the {{Header Nav}} and in a <includeonly> section.

Usage

The first and only parameter of this template is passed as a comma-separated list of consoles which are then listed in a drop-down box on the page. When a page is loaded or a console in the list is selected, all of the content specific to that console (hidden inside an instance of {{Control}}) becomes visible.

For example, the first console listed in this template will display all of the content in the first parameter of all the {{Control}} templates on the page; while the second console in the list will display all of the content in the second parameter of all the {{Control}} templates on the page, and so on.

Note that what is listed in the first parameter should be a list of console names (e.g. "GameCube, PlayStation 2, SNES"), rather than controllers (e.g. "GameCube controller, SNES controller, Wii remote").

Example

{{Control selector|PlayStation 2, Wii}}
This is an example bit of text where you should press {{control|{{psx|X}}|{{wii|B}}}}.

This is an example bit of text where you should press Cross button.