Difference between revisions of "Template:Extract-Server"

From MK8
Jump to navigation Jump to search
(Created page with "<includeonly>{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}</includeonly><noinclude>Extract the server name of a url. Example: <tt><nowiki>{{Extract-Server|htt...")
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}</includeonly><noinclude>Extract the server name of a url.
+
<includeonly>{{#switch:{{#replace:{{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://}}|https://}}|www.}}
 +
| 2shared.com              = 2shared
 +
| 4shared.com              = 4shared
 +
| app.box.com
 +
| avsys.xyz                = AVSYS
 +
| www.box.com              = Box
 +
| cdn.discordapp.com        = Discord
 +
| db.tt
 +
| dl.dropboxusercontent.com
 +
| dropbox.com              = Dropbox
 +
| files.gamebanana.com              = GameBanana
 +
| gamebanana.com              = GameBanana
 +
| gbatemp.net              = GBAtemp
 +
| github.com                = GitHub
 +
| docs.google.com
 +
| drive.google.com          = Google Drive
 +
| sites.google.com          = Google Sites
 +
| icedrive.net              = Icedrive
 +
| mediafire.com            = MediaFire
 +
| mega.co.nz
 +
| mega.nz                  = MEGA
 +
| 1drv.ms                  = OneDrive
 +
| puu.sh                    = puush
 +
| ray.syroot.com                    = ray.syroot
 +
| sendspace.com            = SendSpace
 +
| download.wiimm.de        = wiimm.de
 +
| 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: <tt><nowiki>{{Extract-Server|http://wit.wiimm.de/wit}}</nowiki></tt>
+
Example: <code><nowiki>{{Extract-Server|http://wit.wiimm.de/wit}}</nowiki></code>
  
 
Result: {{Extract-Server|http://wit.wiimm.de/wit}}
 
Result: {{Extract-Server|http://wit.wiimm.de/wit}}
[[category:Template/String Helper]]
+
 
</noinclude>
+
[[Category:Template/String Helper]]</noinclude>

Latest revision as of 13:27, 24 May 2022

Extract the server name of a url.

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

Result: wit.wiimm.de