Template:URL: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Pigsonthewing
add class for use in microformats/ infoboxes
meta>Plastikspork
per discussion on talk page, will replace existing 12 transclusions to minimize breakage.
Line 1: Line 1:
<span class="url">[http://{{{1|wikipedia.org}}}/{{{2|}}} {{{3|http://{{{1|wikipedia.org}}}/{{{2|}}}}}}]</span><noinclude>{{documentation}}</noinclude>
{{#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>

Revision as of 23:57, 9 June 2010

{{url|example.com}}