Difference between revisions of "Template:Extract-Server"
Jump to navigation
Jump to search
Maczkopeti (talk | contribs) m |
Maczkopeti (talk | contribs) m |
||
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.|}} |
− | | | + | | 4shared.com = 4shared |
− | | | + | | darkygallery.fr = Darky Gallery |
| dl.dropboxusercontent.com | | dl.dropboxusercontent.com | ||
− | | | + | | dropbox.com = Dropbox |
| docs.google.com | | docs.google.com | ||
| drive.google.com = Google Drive | | drive.google.com = Google Drive | ||
− | | | + | | mediafire.com = MediaFire |
| mega.co.nz = MEGA | | mega.co.nz = MEGA | ||
| puu.sh = puush | | puu.sh = puush | ||
| download.remakekart12.com = Remake Kart 12 | | download.remakekart12.com = Remake Kart 12 | ||
− | | | + | | sendspace.com = SendSpace |
− | | | + | | youtube.com = YouTube |
− | | #default = {{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}} | + | | #default = {{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://www.|}} |
}}</includeonly><noinclude>Extract the server name of a url. | }}</includeonly><noinclude>Extract the server name of a url. | ||
Revision as of 14:28, 16 May 2015
Extract the server name of a url.
Example: {{Extract-Server|http://wit.wiimm.de/wit}}
Result: http://wit.wiimm.de