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}}</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 message "Extension:DynamicPageList (DPL), version 1.8.6 : WARNING: No results." is returned.
 +
 
 +
See: [[Template:URL]], [[Template:URL.dpl2]] and [[Template:URL.dpl2.default]].
 
</noinclude>
 
</noinclude>

Revision as of 15:22, 3 September 2010