Difference between revisions of "Test"

From Sega Retro

 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
*'''{{{1}}}:''' {{#fornumargs:number
+
<includeonly>{{#vardefine:t|{{#replace:{{{1|}}}|https|http}}}}{{#vardefine:i|1}}{{#while:
|value
+
| {{#vardefine:x|{{#explode:{{#var:t}}|http:|{{#var:i}}}}}}{{#var:x}}
|{{#ifeq:{{#var:number}}|1||{{#var:value}}{{#ifeq:{{#sub:{{#var:value}}|0|2}}|((| DEFINED - {{#vardefine:{{#sub:{{#var:value}}|2|{{#expr:{{#len:{{#var:value}}}}-2}}}}_{{{1}}}|}}}},&nbsp;<br/>}}
+
| {{incvar|i}}&#32;
{{#var:value}} : {{#expr:{{#len:{{#var:value}}}}-2}}<br/>
+
* [http://web.archive.org/save/http:{{#var:x}} http:{{#var:x}}]
{{#sub:{{#var:value}}|2|{{#expr:{{#len:{{#var:value}}}}-2}}}}_{{{1}}}<br/>
+
}}</includeonly><noinclude>I'm using this to generate web archive links from lists of urls.
}}
+
 
 +
{{test|1=}}
 +
 
 +
[[Category:Experimental templates]]</noinclude>

Latest revision as of 10:34, 30 June 2019

I'm using this to generate web archive links from lists of urls.