Difference between revisions of "Template:Citation/make link"

From Self-sufficiency
Jump to: navigation, search
(Add some debugging)
(Omit trailing white space.)
Line 1: Line 1:
 
{{#switch:{{#titleparts:{{{1|}}}|2}}
 
{{#switch:{{#titleparts:{{{1|}}}|2}}
  |Http:/|Https:/|Ftp:/ = [{{{1}}} {{{2}}}]
+
  |Http:/|Https:/|Ftp:/ = [{{{1}}} {{{2}}}]<!--
x|<!--if empty-->|None = {{{2}}}
+
-->|<!--if empty-->|None = {{{2}}}<!--
y|#default            = [[:{{{1}}}|{{{2}}}]]
+
-->|#default            = [[:{{{1}}}|{{{2}}}]]<!--
z}}<noinclude>
+
-->}}<noinclude>
 
<!-- Code notes (here so that people /read/ it)  
 
<!-- Code notes (here so that people /read/ it)  
 
   1. Parameter #2 is always non-empty when called from {{Citation/core}}.
 
   1. Parameter #2 is always non-empty when called from {{Citation/core}}.

Revision as of 22:40, 31 July 2009

{{{2}}}