Diferencia entre revisiones de «Plantilla:URL»

De Familia Sanchez Arjona
Saltar a: navegación, buscar
(add class for use in microformats/ infoboxes)
(per discussion on talk page, will replace existing 12 transclusions to minimize breakage.)
Línea 1: Línea 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>

Revisión del 01:57 10 jun 2010

{{url|example.com}}
50px Template documentation[create]