Difference between revisions of "Template:Extract-Server"

From Custom Mario Kart
Jump to navigation Jump to search
m
m
(39 intermediate revisions by 6 users not shown)
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
+
  | 2shared.com              = 2shared
 +
| 4shared.com              = 4shared
 +
| anonfiles.com            = AnonFiles
 +
| avsys.xyz                = AVSYS
 +
| bayfiles.com              = BayFiles
 +
| app.box.com
 +
| box.com                  = Box
 +
| cdn.discordapp.com       = Discord
 +
| darkygallery.fr           = Darky Gallery
 +
| depositfiles.com          = DepositFiles
 +
| db.tt
 
  | dl.dropboxusercontent.com
 
  | dl.dropboxusercontent.com
  | www.dropbox.com           = Dropbox
+
  | dropbox.com               = Dropbox
 +
| filebin.net              = Filebin
 +
| gamebanana.com            = GameBanana
 +
| github.com                = Github
 +
| gofile.io                = Gofile
 
  | docs.google.com
 
  | docs.google.com
 
  | drive.google.com          = Google Drive
 
  | drive.google.com          = Google Drive
  | *.mediafire.com         = MediaFire
+
  | sites.google.com          = Google Sites
  | mega.co.nz               = MEGA
+
| spaces.hightail.com      = Hightail
 +
| icedrive.net              = Icedrive
 +
| imjiyuu.tk                = Jiyuu's Website
 +
| magentacloud.de          = MagentaCLOUD
 +
| mediafire.com             = MediaFire
 +
  | mega.co.nz
 +
| mega.nz                  = MEGA
 +
| 1drv.ms                  = OneDrive
 +
| my.pcloud.com            = pCloud
 
  | puu.sh                    = puush
 
  | puu.sh                    = puush
  | www.sendspace.com        = SendSpace
+
  | remakekart12.com          = Remake Kart 12
  | #default                  = {{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}
+
| sendspace.com             = SendSpace
 +
| ln.sync.com
 +
| ln2.sync.com              = Sync
 +
| dl1.getuploader.com
 +
| s000.tinyupload.com      = TinyUpload
 +
| ux.getuploader.com        = uploader.jp
 +
| download.wiimm.de         = wiimm.de
 +
| ct.wiimm.de              = Wiimms WBZ
 +
| youtube.com              = YouTube
 +
| www2.zippyshare.com      = Zippyshare
 +
  | {{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://www.}}|http://}}
 
}}</includeonly><noinclude>Extract the server name of a url.
 
}}</includeonly><noinclude>Extract the server name of a url.
  

Revision as of 19:23, 2 August 2020

Extract the server name of a url.

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

Result: wit.wiimm.de