Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Plainlinks: Difference between revisions

Template page
m -link
Replaced page with '<span class="plainlinks">[{{{1|}}} {{{2|{{{1|}}}}}}]</span> <noinclude> {{documentation}} </noinclude>'
Line 1: Line 1:
<span class="plainlinks">[{{{1|}}} {{{2|{{{1|}}}}}}]</span><noinclude>
<span class="plainlinks">[{{{1|}}} {{{2|{{{1|}}}}}}]</span>


 
<noinclude>
----
{{documentation}}
This template will create a plain link ({{plainlinks|http://en.wikibooks.org|this}} instead of [http://en.wikibooks.org this]). The first parameter is the URL; the 2nd parameter is the text you want to be linked. If you do not provide the 2nd parameter it will default to the URL.
 
If the template doesn't work as expected, try defining the parameters like this: <nowiki>{{plainlinks|1=URL|2=link text}}</nowiki>
 
'''See also:''' {{tl|plainlinks2}}
 
{| class="wikitable"
! Template !! Code !! Result
|-
| (none) || <nowiki>[http://commons.wikimedia.org Commons]</nowiki> || [http://commons.wikimedia.org Commons]
|-
| {{tlf|plainlinks}} || <nowiki>{{plainlinks|http://commons.wikimedia.org|Commons}}</nowiki> || {{plainlinks|http://commons.wikimedia.org|Commons}}
|-
| {{tl|plainlinks2}} || <nowiki>{{plainlinks2|http://commons.wikimedia.org|Commons}}</nowiki> || {{plainlinks2|http://commons.wikimedia.org|Commons}}
|}
 
[[Category:External link templates]]
[[Category:Formatting templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 22:39, 14 May 2017

[ ]


Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Plainlinks/doc.

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

ParameterDescriptionDefaultStatus
urlurlThe link URL.emptyoptional
texttextThe URL text. If you do not provide this parameter, it defaults to the URL.The link URLoptional

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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.