Difference between revisions of "Template:Link"

From Critiques Of Libertarianism
Jump to: navigation, search
 
Line 1: Line 1:
<includeonly>{{#dpl:title = {{{1}}}|include = {URL}.dpl2}}</includeonly><noinclude>== Usage ==
+
<includeonly>{{#dpl:title={{{1}}}|include = {URL}.dpl2|noresultsheader=[[{{{1}}}]]}}</includeonly><noinclude>== Usage ==
<nowiki>{{Link | any page title}}</nowiki>
+
<nowiki>{{Link | title}}</nowiki>
  
This is a template that uses DPL to find URL information in a transcluded file that transcludes the URL template.  It then uses Template:URL.dpl2 to create a link with the page title to the to the URL.  If there is no URL information but a valid wiki page exists, it uses Template:URL.dpl2.default to create a link to that page title.
+
This template creates a link to a title just as <nowiki>[[any page title]]</nowiki> would, except that the link can also be to an external URL.  There's not much reason to use this for links other than with an external URL.
  
See: [[Template:URL]].
+
If the titled page transcludes [[Template:URL]], [[Template:URL.dpl2]] creates a link with the page title to the to the URL.
 +
 
 +
If there is no URL information but a valid wiki page exists, [[Template:URL.dpl2.default]] creates an ordinary wiki link to that page title.
 +
 
 +
If no wiki page exists, the searched for title is returned.  That can happen with recursive transclusion.
 +
 
 +
See: [[Template:URL]], [[Template:URL.dpl2]] and [[Template:URL.dpl2.default]].
 
</noinclude>
 
</noinclude>

Latest revision as of 00:35, 19 September 2010