Difference between revisions of "Template:Extract-Server"
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|http...") |
m |
||
(43 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#replace:{{#sub:{{{ | + | <includeonly>{{#switch:{{#replace:{{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://}}|https://}}|www.}} |
− | <noinclude>Extract the server name of a url. | + | | 2shared.com = 2shared |
− | Example: < | + | | 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 | ||
+ | | dropbox.com = Dropbox | ||
+ | | filebin.net = Filebin | ||
+ | | gamebanana.com = GameBanana | ||
+ | | gofile.io = Gofile | ||
+ | | docs.google.com | ||
+ | | drive.google.com = Google Drive | ||
+ | | sites.google.com = Google Sites | ||
+ | | spaces.hightail.com = Hightail | ||
+ | | icedrive.net = Icedrive | ||
+ | | magentacloud.de = MagentaCLOUD | ||
+ | | mediafire.com = MediaFire | ||
+ | | mega.co.nz | ||
+ | | mega.nz = MEGA | ||
+ | | 1drv.ms = OneDrive | ||
+ | | my.pcloud.com = pCloud | ||
+ | | puu.sh = puush | ||
+ | | remakekart12.com = Remake Kart 12 | ||
+ | | sendspace.com = SendSpace | ||
+ | | ln.sync.com | ||
+ | | ln2.sync.com = Sync.com | ||
+ | | 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. | ||
+ | |||
+ | 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}} | ||
− | <noinclude> | + | |
+ | [[Category:Template/String Helper]]</noinclude> |
Revision as of 22:34, 17 October 2019
Extract the server name of a url.
Example: {{Extract-Server|http://wit.wiimm.de/wit}}
Result: wit.wiimm.de