Sjabloon:CleanURL: verschil tussen versies

Regel 9: Regel 9:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{{#vardefine:varHL1|{{{URL|}}}}}{{#vardefine:varPos|{{#rpos:{{#var:varHL1}}|//}}}}{{#vardefine:varHL2|{{#ifexpr:{{#var:varPos}}>=0|{{#sub:{{#var:varHL1}}|{{#expr:{{#var:varPos}}+2}}}}|{{#var:varHL1}}}}}}{{#ifexpr:{{#rpos:{{#var:varHL2}}|www}}=0|{{#sub:{{#var:varHL2}}|4}}{{#var:varHL2}}}}
+
</noinclude><includeonly>{{#vardefine:varHL1|{{{URL|}}}}}{{#vardefine:varPos|{{#rpos:{{#var:varHL1}}|//}}}}{{#vardefine:varHL2|{{#ifexpr:{{#var:varPos}}>=0|{{#sub:{{#var:varHL1}}|{{#expr:{{#var:varPos}}+2}}}}|{{#var:varHL1}}}}}}{{#ifexpr:{{#rpos:{{#var:varHL2}}|www}}=0|{{#sub:{{#var:varHL2}}|4}}|{{#var:varHL2}}}}
 
</includeonly>
 
</includeonly>

Versie van 15 mei 2017 om 16:32

This is the "CleanURL" template. It should be called in the following format:

{{CleanURL
|URL=
}}

Edit the page to see the template text.