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:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}|https://|}}
+
<includeonly>{{#switch:{{#replace:{{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}|https://|}}|www.|}}
  | www.4shared.com           = 4shared
+
  | 4shared.com               = 4shared
  | www.darkygallery.fr       = Darky Gallery
+
  | darkygallery.fr           = Darky Gallery
 
  | dl.dropboxusercontent.com
 
  | dl.dropboxusercontent.com
  | www.dropbox.com           = Dropbox
+
  | dropbox.com               = Dropbox
 
  | docs.google.com
 
  | docs.google.com
 
  | drive.google.com          = Google Drive
 
  | drive.google.com          = Google Drive
  | www.mediafire.com         = MediaFire
+
  | mediafire.com             = MediaFire
 
  | mega.co.nz                = MEGA
 
  | mega.co.nz                = MEGA
 
  | puu.sh                    = puush
 
  | puu.sh                    = puush
 
  | download.remakekart12.com = Remake Kart 12
 
  | download.remakekart12.com = Remake Kart 12
  | www.sendspace.com         = SendSpace
+
  | sendspace.com             = SendSpace
  | www.vgmp3.org            = vgmp3.org
+
  | youtube.com              = YouTube
  | #default                  = {{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}
+
  | #default                  = {{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://www.|}}
 
}}</includeonly><noinclude>Extract the server name of a url.
 
}}</includeonly><noinclude>Extract the server name of a url.
  

Revision as of 14:28, 16 May 2015

Extract the server name of a url.

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

Result: http://wit.wiimm.de