Template:Plain link/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>IRP
Got confused
meta>Amalthea
named parameters
Line 7: Line 7:
*<code><nowiki>{{plainlink|url=http://www.wikipedia.org}}</nowiki></code> gives {{plainlink|url=http://www.wikipedia.org}}
*<code><nowiki>{{plainlink|url=http://www.wikipedia.org}}</nowiki></code> gives {{plainlink|url=http://www.wikipedia.org}}
*<code><nowiki>{{plainlink|http://www.wikipedia.org Wikipedia}}</nowiki></code> gives {{plainlink|http://www.wikipedia.org Wikipedia}}
*<code><nowiki>{{plainlink|http://www.wikipedia.org Wikipedia}}</nowiki></code> gives {{plainlink|http://www.wikipedia.org Wikipedia}}
*<code><nowiki>{{plainlink|http://www.wikipedia.org | Wikipedia}}</nowiki></code> gives {{plainlink|http://www.wikipedia.org|Wikipedia}}
Note that if your url or link title contains an equals sign <code>=</code> you must use named parameters:
*<code><nowiki>{{ plainlink | url=http://en.wikipedia.org/w/index.php?title=Equals_sign&oldid=282228764 | name="=" }}</nowiki></code> gives {{plainlink|url=http://en.wikipedia.org/w/index.php?title=Equals_sign&oldid=282228764|name="="}}


<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude><includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude><includeonly>

Revision as of 11:26, 17 April 2009

Template:Template doc page viewed directly This template will allow you to create a local or interwiki link (such as a link to the history of a page) on a page without having the follow the link. This can be used, for example, when internal or interwiki links appear as external links. See Help:Link#External links to the same project for more information.

Examples

Note that if your url or link title contains an equals sign = you must use named parameters:

  • {{ plainlink | url=http://en.wikipedia.org/w/index.php?title=Equals_sign&oldid=282228764 | name="=" }} gives Template:Plainlink