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}}}}|http://}}|https://}}|www.}}
 +
| 2shared.com              = 2shared
 
  | 4shared.com              = 4shared
 
  | 4shared.com              = 4shared
 +
| app.box.com
 +
| www.box.com              = Box
 
  | darkygallery.fr          = Darky Gallery
 
  | darkygallery.fr          = Darky Gallery
 
  | db.tt
 
  | db.tt

Revision as of 12:57, 13 July 2015

Extract the server name of a url.

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

Result: wit.wiimm.de