Template:Plainlinks/doc: Difference between revisions
Template page
More actions
←Created page with ' Category:External link templates {{PAGENAME}} {{TemplateBox |1 = url |1label = url |1d-en = The link U...' |
m updating Commons link http to https |
||
| (One intermediate revision by the same user not shown) | |||
| Line 53: | Line 53: | ||
! Template !! Code !! Result | ! Template !! Code !! Result | ||
|- | |- | ||
| (none) || <nowiki>[ | | (none) || <nowiki>[https://commons.wikimedia.org Commons]</nowiki> || [https://commons.wikimedia.org Commons] | ||
|- | |- | ||
| {{tl|plainlinks}} || <nowiki>{{plainlinks| | | {{tl|plainlinks}} || <nowiki>{{plainlinks|https://commons.wikimedia.org|Commons}}</nowiki> || {{plainlinks|https://commons.wikimedia.org|Commons}} | ||
|- | |- | ||
| {{tl|plainlinks2}} || <nowiki>{{plainlinks2| | | {{tl|plainlinks2}} || <nowiki>{{plainlinks2|https://commons.wikimedia.org|Commons}}</nowiki> || {{plainlinks2|https://commons.wikimedia.org|Commons}} | ||
|} | |} | ||
Latest revision as of 15:40, 26 March 2020
This template creates a plain link (this instead of this). If the template doesn't work as expected, try defining the parameters like this: {{plainlinks|1=URL|2=link text}}
See also: {{Plainlinks2}}
Usage
{{Plainlinks |url= |text= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
url | url | The link URL. | empty | optional |
text | text | The URL text. If you do not provide this parameter, it defaults to the URL. | The link URL | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Examples
The following table illustrates three different ways to define a link.
| Template | Code | Result |
|---|---|---|
| (none) | [https://commons.wikimedia.org Commons] | Commons |
| {{Plainlinks}} | {{plainlinks|https://commons.wikimedia.org|Commons}} | Commons |
| {{Plainlinks2}} | {{plainlinks2|https://commons.wikimedia.org|Commons}} | Commons |