Template:WDS/doc

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  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,

Dealing with URLs with = in them
{{#ifeq:{{#explode:{{#explode:{{fullurl:h}}|://|1}}|.|0}}|dev|

Importing

 * Go to Special:Export.
 * Type  into the large field.
 * Make sure that “Include templates” is selected.
 * Click “Export” to download the XML file.
 * Go to Special:Import on your Wiki (you must be an Administrator).
 * Choose the file you just downloaded.
 * Click upload file, & then you’re done.
 * For more info, or if you are stuck, see Help:Exporting pages.

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:Wikia.css file: }}

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  :
 * Text should always be two lines below or above these templates to ensure that they do not share the same line in Mercury.
 * Always include a single space between each stacked template, if used side-by-side, to ensure that there is separating space in Mercury.
 * When centering,  Tags must be used, since other methods of centering are ignored by Mercury.
 * Exception: The  method works within Portable Infobox    Tags in Mercury. (Details)
 * Tags can be used outside of PIs if you desire this template to only be centered in desktop, but not in Mercury.
 * While doing the above should ensure 1 : 1 output in Mercury, the following should be noted :
 * The template will always adopt the blue accent-color Mercury uses.
 * Floats  are ignored.
 * Too many templates in a row can wrap onto multiple lines in Mercury, looking aesthetically displeasing. To avoid this, no more than two or three should be used in succession (depending on how much text is in each template), & should instead be dispersed to different parts of the article.
 * Exception: Mercury only works on the User blog, Category, & content (main or custom) namespaces, so there is no need to worry about Mercury display outside those namespaces (such as in the Project namespace).
 * Tip: Always preview in Mobile to make sure this template displays to your liking.

Custom styling
If desired,  is a selector that can be used to style the internal   Tags via site-wide CSS, while   can be used to style the external   Tags that surround the link itself. An example CSS snippet is below: {{#ifeq:{{#explode:{{#explode:{{fullurl:h}}|://|1}}|.|0}}|dev|