Jump to content

Template talk:ClickableButton: Difference between revisions

From KDE Community Wiki
Create talk page about ClickableButton
 
m Only internal links for now
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
To create a button you can copy-paste the following and then edit the placeholder text:
To create a button you can copy-paste the following and then edit the placeholder text:


<nowiki>{{ClickableButton|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:
[[The page where the button will be linked to|{{ClickableButton|The text that will be shown in the button.}}]]
</nowiki>


<nowiki>{{ClickableButton|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 only be an internal wiki link.


[[The page where the button will be linked to|{{ClickableButton|The text that will be shown in the button.}}]]
{{ClickableButton|The text that will be shown in the button.|The link for the page where the button will lead you to.}}


This is based on the [https://www.mediawiki.org/wiki/Template:Clickable_button MediaWiki ClickableButton].
Alternatively, you might be interested in using a [[Template:CenteredButton]], which is centered instead of left-aligned. See the [[Template_talk:CenteredButton]] page to know how to use it.
 
This template is based on the [https://www.mediawiki.org/wiki/Template:Clickable_button MediaWiki ClickableButton].

Latest revision as of 17:28, 17 August 2023

How to use this template

To create a button you can copy-paste the following and then edit the placeholder text:

{{ClickableButton|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:

{{ClickableButton|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 only be an internal wiki link.

Alternatively, you might be interested in using a Template:CenteredButton, which is centered instead of left-aligned. See the Template_talk:CenteredButton page to know how to use it.

This template is based on the MediaWiki ClickableButton.