Template:Plainlink: Difference between revisions
Jump to navigation
Jump to search
(tweak line feeds, add cat) |
(→Documentation: more examples) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | 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 | ::{{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. |
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.