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...") |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#replace:{{#sub:{{{ | + | <includeonly>{{#replace:{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|/|8}}}}|http://|}}</includeonly><noinclude>Extract the server name of a url. |
− | <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> | ||
+ | |||
Result: {{Extract-Server|http://wit.wiimm.de/wit}} | Result: {{Extract-Server|http://wit.wiimm.de/wit}} | ||
− | <noinclude> | + | </noinclude> |
Revision as of 15:20, 16 March 2011
Extract the server name of a url.
Example: {{Extract-Server|http://wit.wiimm.de/wit}}
Result: wit.wiimm.de