Difference between revisions of "Template:URL"
Jump to navigation
Jump to search
imported>Pigsonthewing (add class for use in microformats/ infoboxes) |
imported>Plastikspork (per discussion on talk page, will replace existing 12 transclusions to minimize breakage.) |
||
Line 1: | Line 1: | ||
− | <span class="url">[http://{{{1| | + | {{#if:{{{1|}}} |
+ | |<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> |