Template:Joystick diagram/Documentation
From StrategyWiki, the video game walkthrough and strategy guide wiki
This template is used to quickly build a diagram displaying the effect of an eight-direction joystick.
Usage[edit]
There are nine parameters, corresponding to joystick directions from left to right and top to bottom:
- Up-Left
- Up
- Up-Right
- Left
- Neutral
- Right
- Down-Left
- Down
- Down-Right
You can leave the fifth parameter blank (neutral) to use the image. Skip the parameter by inserting an extra pipe where the neutral effect would normally go.
There are also two, mutually exclusive optional parameters. Floating the diagram takes precedence over fullpaging.
float=<left/right>
: This will float the diagram left or right for formatting purposes.fullpage=1
: Expands the diagram to fit the entire width of the page. If float is also specified, the diagram will be floated instead of fullpaged.
Example[edit]
top | ||||
top left | top right | |||
left | middle | right | ||
bottom left | bottom right | |||
bottom |
{{joystick diagram |top left|top|top right |left|middle|right |bottom left|bottom|bottom right |float=right}}