Template:Plainlinks: Difference between revisions
Template page
More actions
cat |
comparison with plainlinks2 |
||
| Line 1: | Line 1: | ||
<span class="plainlinks">[{{{1|}}} {{{2|{{{1}}}}}}]</span><noinclude> | <span class="plainlinks">[{{{1|}}} {{{2|{{{1|}}}}}}]</span><noinclude> | ||
This template will create a plain link ({{plainlinks| | 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:Formatting templates|{{PAGENAME}}]] | [[Category:Formatting templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||