Difference between revisions of "Template:Extract-Server"
Jump to navigation
Jump to search
Maczkopeti (talk | contribs) m (experimenting) |
|||
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:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}|https://|}} |
+ | |#default={{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}} | ||
+ | |www.mediafire.com=MediaFire | ||
+ | }}</includeonly><noinclude>Extract the server name of a url. | ||
Example: <tt><nowiki>{{Extract-Server|http://wit.wiimm.de/wit}}</nowiki></tt> | Example: <tt><nowiki>{{Extract-Server|http://wit.wiimm.de/wit}}</nowiki></tt> |
Revision as of 18:04, 7 May 2015
Extract the server name of a url.
Example: {{Extract-Server|http://wit.wiimm.de/wit}}
Result: wit.wiimm.de