Template:URL: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Verdy p
m another pathological case solved
meta>Verdy p
m work-around test depends on the detection of capitalisation of the first letter in the returned string, if it works
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|<!--
<includeonly>{{#if:{{{1|}}}|<!--
   --><span class="url"><!--
   --><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
   -->{{#ifeq:{{#titleparts:{{lc:{{{1|}}}}}|1|1}}|{{lc:{{{1|}}}}}|<!-- work-around when titleparts doesn't accept the URL and returns the full string without a capital: don't attempt to transform the displayed URL
       -->[{{#if:1|{{{1|}}}}} {{#if:{{{2|}}}|{{#if:1|{{{2|}}}}}|{{#if:1|{{{1|}}}}}}}]<!-- These "#if:1" pseudo-tests (always true) allow trimming leading spaces in their text parameter
       -->[{{#if:1|{{{1|}}}}} {{#if:{{{2|}}}|{{#if:1|{{{2|}}}}}|{{#if:1|{{{1|}}}}}}}]<!-- These "#if:1" pseudo-tests (always true) allow trimming leading spaces in their text parameter
   -->|<!--
   -->|<!--

Revision as of 01:38, 11 October 2010