https://www.slicer.org/w/index.php?title=Template:URL&feed=atom&action=historyTemplate:URL - Revision history2024-03-29T10:33:15ZRevision history for this page on the wikiMediaWiki 1.33.0https://www.slicer.org/w/index.php?title=Template:URL&diff=22207&oldid=prevJChris.FillionR: 1 revision2011-10-23T04:56:27Z<p>1 revision</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 04:56, 23 October 2011</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>JChris.FillionRhttps://www.slicer.org/w/index.php?title=Template:URL&diff=22206&oldid=prevPlastikspork: Hopefully this fixes the bug2010-12-22T02:21:04Z<p>Hopefully this fixes the bug</p>
<p><b>New page</b></p><div><includeonly>{{#if:{{{1|}}}|<!--<br />
--><span class="url"><!--<br />
-->{{#ifeq:{{#titleparts:{{lc:x{{{1|}}}}}|1|1}}|{{lc:x{{{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<br />
-->[{{#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<br />
-->|<!--<br />
-->{{#switch:{{lc:{{#titleparts:{{{1|}}}|2}}}}<br />
|https:/<br />
|http:/<br />
|ftp:/=<!-- Matches https:/ or http:/ or ftp:/<br />
-->[{{#if:1|{{{1|}}}}} <!-- This #if:1 allows trimming leading spaces in the full URL: {{{1|}}}<br />
-->{{#if:{{{2|}}}|{{#if:1|{{{2|}}}}}| <!-- This #if:1 allows trimming leading spaces in the specified display text : {{{2|}}}<br />
-->{{lc:<!-- domain name in lowercase<br />
-->{{#ifeq:{{lc:{{padleft:|4|{{#titleparts:{{{1|}}}|1|3}}}}}}|www.<!--<br />
-->|{{Str right|{{#titleparts:{{{1|}}}|1|3}}|4}}<!--<br />
-->|{{#titleparts:{{{1|}}}|1|3}}<!--<br />
-->}}<!--<br />
-->}}<!--<br />
-->{{#if:{{#titleparts:{{{1|}}}||4}}<!-- rest of the path<br />
-->|/{{#titleparts:{{{1|}}}||4}}<!--<br />
-->}}<!--<br />
-->}}<!--<br />
-->]<!--<br />
-->|#default=<!-- Not https:/ or http:/ or ftp:/<br />
-->[http://{{#if:1|{{{1|}}}}} <!-- This #if:1 allows trimming leading spaces in the full URL: {{{1|}}}<br />
-->{{#if:{{{2|}}}|{{#if:1|{{{2|}}}}}| <!-- This #if:1 allows trimming leading spaces in the specified display text : {{{2|}}}<br />
-->{{lc:<!-- domain name in lowercase<br />
-->{{#ifeq:{{lc:{{padleft:|4|{{#titleparts:{{{1|}}}|1|1}}}}}}|www.<!--<br />
-->|{{Str right|{{#titleparts:{{{1|}}}|1|1}}|4}}<!--<br />
-->|{{#titleparts:{{{1|}}}|1|1}}<!--<br />
-->}}<!--<br />
-->}}<!--<br />
-->{{#if:{{#titleparts:{{{1|}}}||2}}<!-- rest of the path<br />
-->|/{{#titleparts:{{{1|}}}||2}}<!--<br />
-->}}<!--<br />
-->}}<!--<br />
-->]<!--<br />
-->}}<!--<br />
-->}}<!--<br />
--></span><!--<br />
-->|<!--<br />
-->{{#if:{{{2|}}}|{{{2|}}}|<!--<br />
-->{{tlx|URL|''example.com''|''optional display text''}}<!--<br />
-->}}<!--<br />
-->}}</includeonly><noinclude>{{documentation}}</noinclude></div>Plastikspork