Difference between revisions of "Template:Extract-Server"

From Custom Mario Kart
Jump to navigation Jump to search
m (Undo revision 83620 by Maczkopeti (talk))
m (Added another URL for GitHub.)
 
(72 intermediate revisions by 8 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
 +
| f005.backblazeb2.com
 +
| wiiki-content.acaruso.xyz = acaruso's Archive
 +
| anonfiles.com            = AnonFiles
 +
| avsys.xyz                = AVSYS
 +
| baoulettes.fr            = baoulettes.fr
 +
| bayfiles.com             = BayFiles
 +
| app.box.com
 +
| box.com
 +
| m.box.com                = Box
 +
| chadsoft.co.uk            = ChadSoft
 +
| 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
 +
| drive.filen.io            = Filen
 +
| files.brawlbox.co.uk      = Filebox
 +
| fynn93.ml                = fynn93.ml
 +
| fynn93.tech              = fynn93.tech
 +
| gamebanana.com            = GameBanana
 +
| dumbwebdevs.github.io
 +
| github.com
 +
| github.io               
 +
| raw.githubusercontent.com = GitHub
 +
| gofile.io                = Gofile
 +
| code.google.com          = Google Code
 
  | docs.google.com
 
  | docs.google.com
 
  | drive.google.com          = Google Drive
 
  | drive.google.com          = Google Drive
  | www.mediafire.com         = MediaFire
+
  | sites.google.com          = Google Sites
  | mega.co.nz               = MEGA
+
| 49.12.226.82              = Hetzner Cloud
 +
| spaces.hightail.com      = Hightail
 +
| icedrive.net              = Icedrive
 +
| archive.org              = Internet Archive
 +
| itch.io
 +
| scuder1asc0tti.itch.io    = itch.io
 +
| mediafire.com             = MediaFire
 +
  | mega.co.nz
 +
| mega.io
 +
| mega.nz                  = MEGA
 +
| 1drv.ms                  = OneDrive
 +
| my.pcloud.com            = pCloud
 +
| files.primm.gay          = primm.gay
 +
| drive.proton.me          = Proton Drive
 
  | puu.sh                    = puush
 
  | puu.sh                    = puush
  | www.sendspace.com        = SendSpace
+
  | remakekart12.com          = Remake Kart 12
  | #default                  = {{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}
+
| files.revok.art          = revok.art
}}</includeonly><noinclude>Extract the server name of a url.
+
| files.rz-public.xyz      = rz-public
 +
| sendspace.com             = SendSpace
 +
| ln.sync.com
 +
| ln2.sync.com              = Sync
 +
| dl1.getuploader.com
 +
| s000.tinyupload.com      = TinyUpload
 +
| tock.es                  = tock.es
 +
| ux.getuploader.com        = uploader.jp
 +
| vnight-studios.xyz        = Virtual Night Studio's
 +
| download.wiimm.de         = wiimm.de
 +
| ct.wiimm.de              = Wiimm's CT-Archive
 +
| 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.
  
 
Example: <code><nowiki>{{Extract-Server|http://wit.wiimm.de/wit}}</nowiki></code>
 
Example: <code><nowiki>{{Extract-Server|http://wit.wiimm.de/wit}}</nowiki></code>

Latest revision as of 02:59, 27 March 2024

Extract the server name of a URL.

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

Result: wit.wiimm.de