Difference between revisions of "Template:Extract-Server"
Jump to navigation
Jump to search
Maczkopeti (talk | contribs) m |
Maczkopeti (talk | contribs) m (easier to read) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#switch:{{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}|https://|}} | + | <includeonly>{{#switch: {{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}|https://|}} |
− | + | | www.4shared.com = 4shared | |
− | |www.4shared.com=4shared | + | | dl.dropboxusercontent.com |
− | |dl.dropboxusercontent.com | + | | www.dropbox.com = Dropbox |
− | |www.dropbox.com=Dropbox | + | | docs.google.com |
− | |docs.google.com | + | | drive.google.com = Google Drive |
− | |drive.google.com=Google Drive | + | | www.mediafire.com = MediaFire |
− | |www.mediafire.com=MediaFire | + | | mega.co.nz = MEGA |
− | |mega.co.nz=MEGA | + | | puu.sh = puush |
− | |puu.sh=puush | + | | www.sendspace.com = SendSpace |
− | |www.sendspace.com=SendSpace | + | | #default = {{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}} |
}}</includeonly><noinclude>Extract the server name of a url. | }}</includeonly><noinclude>Extract the server name of a url. | ||
Line 15: | Line 15: | ||
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 18:32, 7 May 2015
Extract the server name of a url.
Example: {{Extract-Server|http://wit.wiimm.de/wit}}
Result: wit.wiimm.de