Difference between revisions of "Template:Extract-Server"

From Custom Mario Kart
Jump to navigation Jump to search
m
m
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{#replace:{{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|www.|}}|http://|}}|https://|}}
+
<includeonly>{{#switch:{{#replace:{{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://}}|https://}}|www.}}
 +
| 2shared.com              = 2shared
 
  | 4shared.com              = 4shared
 
  | 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
 
  | darkygallery.fr          = Darky Gallery
 +
| depositfiles.com          = DepositFiles
 +
| db.tt
 
  | dl.dropboxusercontent.com
 
  | dl.dropboxusercontent.com
 
  | 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
 +
| sites.google.com          = Google Sites
 +
| spaces.hightail.com      = Hightail
 +
| icedrive.net              = Icedrive
 +
| imjiyuu.tk                = Jiyuu's Website
 +
| magentacloud.de          = MagentaCLOUD
 
  | mediafire.com            = MediaFire
 
  | mediafire.com            = MediaFire
  | mega.co.nz               = MEGA
+
  | mega.co.nz
 +
| mega.nz                  = MEGA
 +
| 1drv.ms                  = OneDrive
 +
| my.pcloud.com            = pCloud
 
  | puu.sh                    = puush
 
  | puu.sh                    = puush
  | download.remakekart12.com = Remake Kart 12
+
  | remakekart12.com         = Remake Kart 12
 
  | sendspace.com            = SendSpace
 
  | 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
 
  | youtube.com              = YouTube
  | #default                  = {{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://www.|}}
+
  | 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