Template talk:CenteredButton: Difference between revisions
Thiagosueto (talk | contribs) m (Mention each button's pages) |
Thiagosueto (talk | contribs) m (Document the new link argument) |
||
Line 4: | Line 4: | ||
<nowiki> | <nowiki>{{CenteredButton|The text that will be shown in the button.|The link for the page where the button will lead you to.}}</nowiki> | ||
</nowiki> | |||
Alternatively, you may use the more verbose, but clearer version: | |||
<nowiki>{{CenteredButton|text=The text that will be shown in the button.|link=The link for the page where the button will lead you to.}}</nowiki> | |||
The link can be a local wiki link or an external link. The result should look like this: | The link can be a local wiki link or an external link. The result should look like this: | ||
{{CenteredButton|The text that will be shown in the button.|The link for the page where the button will lead you to.}} | |||
Alternatively, you might be interested in using a [[Template:ClickableButton]], which is left-aligned instead of centered. See the [[Template_talk:ClickableButton]] page to know how to use it. | Alternatively, you might be interested in using a [[Template:ClickableButton]], which is left-aligned instead of centered. See the [[Template_talk:ClickableButton]] page to know how to use it. | ||
This template is based on the [https://www.mediawiki.org/wiki/Template:Clickable_button MediaWiki ClickableButton]. | This template is based on the [https://www.mediawiki.org/wiki/Template:Clickable_button MediaWiki ClickableButton]. |
Revision as of 14:37, 17 August 2023
How to use this template
To create a button you can copy-paste the following and then edit the placeholder text:
{{CenteredButton|The text that will be shown in the button.|The link for the page where the button will lead you to.}}
Alternatively, you may use the more verbose, but clearer version:
{{CenteredButton|text=The text that will be shown in the button.|link=The link for the page where the button will lead you to.}}
The link can be a local wiki link or an external link. The result should look like this:
Alternatively, you might be interested in using a Template:ClickableButton, which is left-aligned instead of centered. See the Template_talk:ClickableButton page to know how to use it.
This template is based on the MediaWiki ClickableButton.