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:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}} | + | <includeonly>{{#switch:{{#replace:{{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}|https://|}}|www.|}} |
| 4shared.com = 4shared | | 4shared.com = 4shared | ||
| darkygallery.fr = Darky Gallery | | darkygallery.fr = Darky Gallery | ||
Line 12: | Line 12: | ||
| sendspace.com = SendSpace | | sendspace.com = SendSpace | ||
| youtube.com = YouTube | | youtube.com = YouTube | ||
− | | #default = {{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://www.|}} | + | | #default = {{#replace:{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}|http://www.|}} |
}}</includeonly><noinclude>Extract the server name of a url. | }}</includeonly><noinclude>Extract the server name of a url. | ||
Revision as of 14:31, 16 May 2015
Extract the server name of a url.
Example: {{Extract-Server|http://wit.wiimm.de/wit}}
Result: wit.wiimm.de