Difference between revisions of "Template:URL"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Plastikspork
m (Protected Template:Url: Highly visible template ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
m (1 revision imported)
 
(43 intermediate revisions by 23 users not shown)
Line 1: Line 1:
{{#if:{{{1|}}}
+
<includeonly>{{#invoke:URL|url}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using URL template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:URL]] with unknown parameter "_VALUE_"|ignoreblank=y | 1 | 2 }}<noinclude>{{documentation}}</noinclude>
|<span class="url">{{#if:{{{2|}}}
 
|{{#switch:{{lc:{{#titleparts:{{{1}}}|2}}}}
 
  |https:/
 
  |http:/ = [{{#if:1|{{{1}}}}} {{{2}}}]
 
  |#default = [http://{{#if:1|{{{1}}}}} {{{2}}}] }}
 
|{{#switch:{{lc:{{#titleparts:{{{1}}}|2}}}}
 
  |https:/
 
  |http:/ = [{{#if:1|{{{1}}}}} {{#ifeq:{{padleft:|4|{{lc:{{#titleparts:{{{1}}}||3}}}}}}|www.
 
  |{{str right|{{#titleparts:{{{1}}}||3}}|4}}
 
  |{{#titleparts:{{{1}}}||3}} }}]
 
  |#default = [http://{{#if:1|{{{1}}}}} {{#ifeq:{{padleft:|4|{{lc:{{{1}}}}}}}|www.
 
  |{{str right|{{{1}}}|4}}
 
  |{{{1}}} }}]
 
  }}
 
}}</span>
 
|{{tlx|url|example.com}}
 
}}<noinclude>{{documentation}}</noinclude>
 

Latest revision as of 17:55, 9 March 2020

Template documentation[create]