Template:Help button/doc
![]() | This is a documentation subpage for Template:Help button. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template uses TemplateStyles: |
Usage
[edit]This template is used to create a "help button" that links to WP:Help button. It is also used to create the buttons in WP:Help button and its subpages, including a "back" button. The template uses {{Clickable button 2}}.
As a help button
[edit]Without any parameters, the template creates a help button. This button can be placed anywhere that might be helpful, such as on a user talk page, welcome template, or other appropriate location.
Code:{{Help button}}
Result:
As a navigation button
[edit]With parameters, the template can be used to create buttons for WP:Help button and its subpages.
Format: {{Help button |[target page] |[button label] |text=[accompanying text]}}
Example: {{Help button |Main Page |Wikipedia's main page |text=Click this button to go to Wikipedia's main page}}
Result:
As a back button
[edit]With parameter |back=
, the template can be used to create a specially-styled "back" button. A target page must be specified.
Format: {{Help button |back |[target page]}}
Example: {{Help button |back |WP:Help button}}
Result:
Color and other styling
[edit]Default styling is contained in the {{help button}} template code, but it can be overridden. This ensures that all buttons using {{help button}} look the same throughout the WP:Help button tree of subpages, while still allowing custom styling when needed.
|class=
specifies one of three accessible colors used by {{Clickable button 2}}:
|class=neutral
creates a gray button|class=destructive
creates a red button- If no
|class=
is specified, the default is|class=progressive
, which creates a blue button
|style=
can specify a CSS style. For more information, see the documentation at {{Clickable button 2}}.