Diferencia entre revisiones de «Plantilla:URL»
De Familia Sanchez Arjona
(Always show valid urls, per discussion) |
(Undid revision 461903668 by Fryed-peach (talk)) |
||
Línea 11: | Línea 11: | ||
-->{{#if:{{{2|}}}|{{#if:1|{{{2|}}}}}| <!-- This #if:1 allows trimming leading spaces in the specified display text : {{{2|}}} | -->{{#if:{{{2|}}}|{{#if:1|{{{2|}}}}}| <!-- This #if:1 allows trimming leading spaces in the specified display text : {{{2|}}} | ||
-->{{lc:<!-- domain name in lowercase | -->{{lc:<!-- domain name in lowercase | ||
− | -->{{#titleparts:{{{1|}}}|1|3}}<!-- | + | -->{{#ifeq:{{lc:{{padleft:|4|{{#titleparts:{{{1|}}}|1|3}}}}}}|www.<!-- |
+ | -->|{{Str right|{{#titleparts:{{{1|}}}|1|3}}|4}}<!-- | ||
+ | -->|{{#titleparts:{{{1|}}}|1|3}}<!-- | ||
+ | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{#titleparts:{{{1|}}}||4}}<!-- rest of the path | -->{{#if:{{#titleparts:{{{1|}}}||4}}<!-- rest of the path | ||
Línea 22: | Línea 25: | ||
-->{{#if:{{{2|}}}|{{#if:1|{{{2|}}}}}| <!-- This #if:1 allows trimming leading spaces in the specified display text : {{{2|}}} | -->{{#if:{{{2|}}}|{{#if:1|{{{2|}}}}}| <!-- This #if:1 allows trimming leading spaces in the specified display text : {{{2|}}} | ||
-->{{lc:<!-- domain name in lowercase | -->{{lc:<!-- domain name in lowercase | ||
− | -->{{#titleparts:{{{1|}}}|1|1}}<!-- | + | -->{{#ifeq:{{lc:{{padleft:|4|{{#titleparts:{{{1|}}}|1|1}}}}}}|www.<!-- |
+ | -->|{{Str right|{{#titleparts:{{{1|}}}|1|1}}|4}}<!-- | ||
+ | -->|{{#titleparts:{{{1|}}}|1|1}}<!-- | ||
+ | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{#titleparts:{{{1|}}}||2}}<!-- rest of the path | -->{{#if:{{#titleparts:{{{1|}}}||2}}<!-- rest of the path |
Revisión del 15:07 24 nov 2011
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |