Template:Plainlink: Difference between revisions

From LDraw.org Wiki
Jump to navigation Jump to search
(template for posting template links)
 
(→‎Documentation: more examples)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="plainlinks">[{{{1}}} {{{2}}}]</span>
<span class="plainlinks">[{{{1}}} {{{2}}}]</span><noinclude>
<noinclude>
==Documentation==
==Documentation==
Makes an external link look like an internal one.  
Makes an external link look like an internal one.  
Line 6: Line 5:
::<code><nowiki>{{plainlink|"Full URL of link"|"desired text to be displayed"}}</nowiki></code>
::<code><nowiki>{{plainlink|"Full URL of link"|"desired text to be displayed"}}</nowiki></code>
:For example
:For example
::<code><nowiki>{{plainlink|http://ldraw.org/wiki/index.php/Main_Page|LDraw wiki main page}}</nowiki></code>
::<code><nowiki>{{plainlink|http://ldraw.org/wiki/index.php/Main_Page|LDraw wiki main page}}</nowiki></code> and
::<code><nowiki>{{plainlink|1=http://brickwiki.org/w/index.php?title=Image:StopSignTrim.png&action=history|2=StopSignTrim.png file history}}</nowiki></code>
:produces
:produces
::{{plainlink|http://ldraw.org/wiki/index.php/Main_Page|LDraw wiki main page}}  
::{{plainlink|http://ldraw.org/wiki/index.php/Main_Page|LDraw wiki main page}} and
::rather than the [http://ldraw.org/wiki/index.php/Main_Page LDraw wiki main page] external form with the external link marker.  
::{{plainlink|1=http://brickwiki.org/w/index.php?title=Image:StopSignTrim.png&action=history|2=StopSignTrim.png file history}}
::rather than the [http://ldraw.org/wiki/index.php/Main_Page LDraw wiki main page] and [http://brickwiki.org/w/index.php?title=Image:StopSignTrim.png&action=history StopSignTrim.png file history] external forms with the external link marker.  
 
;Notes
*The full URL needs to use underscore connectors, not spaces. The displayed text can contain spaces though
*If the URL contains a question mark or =, use 1= and 2= on the parameters as in the second example
 


Use of this template makes it easy to find external links that might be convertible to internal ones if the interwiki map is updated.
Use of this template makes it easy to find external links that might be convertible to internal ones if the interwiki map is updated.


[[Category:External link templates|Plainlink]]
</noinclude>
</noinclude>

Latest revision as of 15:04, 23 January 2009

[{{{1}}} {{{2}}}]

Documentation

Makes an external link look like an internal one.

Usage
{{plainlink|"Full URL of link"|"desired text to be displayed"}}
For example
{{plainlink|http://ldraw.org/wiki/index.php/Main_Page|LDraw wiki main page}} and
{{plainlink|1=http://brickwiki.org/w/index.php?title=Image:StopSignTrim.png&action=history|2=StopSignTrim.png file history}}
produces
LDraw wiki main page and
StopSignTrim.png file history
rather than the LDraw wiki main page and StopSignTrim.png file history external forms with the external link marker.
Notes
  • The full URL needs to use underscore connectors, not spaces. The displayed text can contain spaces though
  • If the URL contains a question mark or =, use 1= and 2= on the parameters as in the second example


Use of this template makes it easy to find external links that might be convertible to internal ones if the interwiki map is updated.