Difference between revisions of "Template:Extract-Server"

From Custom Mario Kart
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>{{#switch:{{#replace:{{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}|https://|}}|www.|}}
+
<includeonly>{{#switch:{{#replace:{{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|www.|}}|http://|}}|https://|}}
 
  | 4shared.com              = 4shared
 
  | 4shared.com              = 4shared
 
  | darkygallery.fr          = Darky Gallery
 
  | darkygallery.fr          = Darky Gallery

Revision as of 14:29, 16 May 2015

Extract the server name of a url.

Example: {{Extract-Server|http://wit.wiimm.de/wit}}

Result: http://wit.wiimm.de