Template:Colorlink

Jump to navigation Jump to search

[[{{{1}}}|{{{1}}}]]

Documentation[view] [edit] [history] [refresh]

This template is used to create colored links with correct underline color (unlike [[Minecraft Wiki|<span style="color:green">Main page</span>]]).

Usage[edit source]

TemplateData[edit source]

This template is used to create colored links.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Target1

The page that the link targets to.

Example
Minecraft Wiki
Page namerequired
Text2

The link text.

Example
Main page
Contentsuggested
Colorcolor 3

The link color.

Default
The current text color.
Example
green
Stringsuggested
Externalexternal

Makes the link an external link.

Auto value
1
Booleanoptional
Classclass

The class(es) to apply to the <span> element wrapping the link.

Example
plainlinks
Stringoptional
CSScss

The CSS styles to apply to the <span> element wrapping the link.

Example
background: lime;
Stringoptional

Examples[edit source]

{{Colorlink|Minecraft Wiki|Main page|green}}

Main page

{{Colorlink|http://minecraft.net|Minecraft.net|maroon|external=1|class=plainlinks}}

Minecraft.net

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:Colorlink/doc.