टेम्पलेट:URL: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
छो simplify tests for presence of parameter 2, and of the titleparts limitation and its work-round ; additional fix for "ftp://" URLs
छो another pathological case solved
लाइन 2:
--><span class="url"><!--
-->{{#ifeq:{{#titleparts:{{{1|}}}|1|1}}|{{{1|}}}|<!-- work-around when titleparts doesn't accept the URL and returns the full string instead: don't attempt to transform the displayed URL
-->[{{#if:1|{{{1|}}}}} {{#if:{{{2|}}}|{{#if:1|{{{2|}}}}}|{{#if:1|{{{1|}}}}}}}]<!-- ThisThese "#if:1" allowspseudo-tests (always true) allow trimming leading spaces in thetheir fulltext URL: {{{1|}}}parameter
-->|<!--
-->{{#switch:{{lc:{{#titleparts:{{{1|}}}|2}}}}<!--
लाइन 36:
-->]<!--
-->}}<!--
-->}}<!--
--></span><!--
-->|{{tlx|URL|example.com}}<!--