dev

Description

Use this Template to create a portable, linked WDS Button inline. Floating to the left or right is internally supported by this template, & you can also surround this template, or several copies of this template, in <center> Tags to center them as well.

The below section details usage information on the assumption that this template is already set up. If you would like to export this template to your Wiki, see the Installation section.

Syntax

{{WDS|Link|Text/Position|Text/Position|tooltip = Hover Text}}

Changing link text

{{WDS|Main Page|Cool Page}} 
{{WDS|w:Help:Contents|Cool Page}}
{{WDS|https://c.fandom.com/wiki/Help:Contents|Cool Page}} 
{{WDS|{{fullurl:Help:Contents|uselang=es}}|Cool Page}}

Change tooltip text

{{WDS|Main Page|tooltip = Very Cool Page}}

Centered

<center>{{WDS|Main Page}}</center>

Floated right

{{WDS|Main Page|r}}

Dealing with URLs with = in them

{{WDS
|1 = https://c.fandom.com/wiki/Help:Contents?diff=cur
|2 = This link has = in the URL
|3 = r
}}

Output

Changing link text

Cool Page Cool Page Cool Page Cool Page

Change tooltip text

Main Page

Centered

Main Page

Floated right

Main Page

Dealing with URLs with = in them

This link has = in the URL

Installation

Importing

Classification

After the import is done, classify this template as Design for 1:1 output in mobile (see instructions). If 1:1 output is not desired, classify this template as a Context-link instead.

CSS

Add this CSS to your Wiki’s MediaWiki:Common.css[1] file:

.custom-wds-wrapper a {
    text-decoration: none;
}

Optimal Mercury output

If classified as a Context-link, this section can be ignored.
Follow these instructions to ensure that this template displays well in the Mercury skin:
While doing the above should ensure 1:1 output in Mercury, the following should be noted:

Custom styling

If desired, .custom-wds.wds-button.wds-is-squished is a selector that can be used to style the internal <span> Tags via site-wide CSS, while .custom-wds-wrapper can be used to style the external <span> Tags that surround the link itself (<a>). An example CSS snippet is below:

.custom-wds-wrapper a {
    text-decoration: none;
}

.custom-wds.wds-is-secondary.wds-button {
    color: #F14800;
    border-color: #F14800;
}

.custom-wds.wds-is-secondary.wds-button:hover {
    color: #FF8A58;
    border-color: #FF8A58;
}

Footnotes

  1. Alternatively, MediaWiki:Common.css can be used instead (if applicable).