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

From Self-sufficiency
Jump to: navigation, search
(Add am)
(Add some debugging)
Line 1: Line 1:
 
{{#switch:{{#titleparts:{{{1|}}}|2}}
 
{{#switch:{{#titleparts:{{{1|}}}|2}}
 
  |Http:/|Https:/|Ftp:/ = [{{{1}}} {{{2}}}]
 
  |Http:/|Https:/|Ftp:/ = [{{{1}}} {{{2}}}]
  |<!--if empty-->|None = {{{2}}}
+
  x|<!--if empty-->|None = {{{2}}}
  x|#default            = [[:{{{1}}}|{{{2}}}]]
+
  y|#default            = [[:{{{1}}}|{{{2}}}]]
}}<noinclude>
+
z}}<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 21:37, 31 July 2009

{{{2}}}

y