Template:Link/doc

From Valve Developer Community
< Template:Link
Revision as of 11:09, 10 October 2025 by THE OWL (talk | contribs)
Jump to navigation Jump to search
Edit-copy.png
This is a documentation subpage for Template:Link.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Creates an external link.

Usage

This template is usually written in a single line. To use it, insert {{Link}} into the desired page and specify the parameters to the right of the template name in the following format: {{Link|parameter 1=value|parameter 2=value}}.

Icon-Important.pngImportant:This template requires that parameters and values do not have spaces at the beginning or end. This is due to wiki engine limitations, user preferences, or other reasons.

Parameters and Examples

Parameter Description Example Preview
{{{1}}} or {{{2}}} Link type or link without https://.
Available link types:
  • plain - removes the external link icon.
Note.pngNote:If the link type is specified, the order changes and the link is specified in the {{{2}}} parameter.
| wikipedia.com/wiki/Main_Page
wikipedia.com/wiki/Main_Page
| 1 = wikipedia.com/wiki/Main_Page
| plain
wikipedia.com/wiki/Main_Page
| 1 = plain
{{{2}}} or {{{3}}} Text displayed instead of a link.
Note.pngNote:If the link type is specified, the order changes and the displayed text is specified in the {{{3}}} parameter.
| wikipedia.com/wiki/Main_Page | Wikipedia Main Page
Wikipedia Main Page
| 2 = Wikipedia Main Page
{{{color}}} Text color.
| color = rgb(240 180 100)
Wikipedia Main Page

See also

  • {{codelink}} - keyboard input style link.