Content added Content deleted
imported>mutante mNo edit summary |
imported>mutante mNo edit summary |
||
Line 1: | Line 1: | ||
{{#form:name=findForm|class=find|action=/ |
{{#form:name=findForm|class=find|action=/wiki/| |
||
{{#input:name=content|id=query|type=hidden}} |
{{#input:name=content|id=query|type=hidden}} |
||
Line 7: | Line 7: | ||
{{#input: type = submit | value = Title or DPL-query |
{{#input: type = submit | value = Title or DPL-query |
||
| onClick = var input = document.getElementById('input').value; |
| onClick = var input = document.getElementById('input').value; |
||
findForm.action = '/ |
findForm.action = '/wiki/'; |
||
if (0>input.indexOf('=')) findForm.action = '/'+input; |
if (0>input.indexOf('=')) findForm.action = '/'+input; |
||
else document.getElementById('query').setAttribute('value','{'+'{#dpl:'+input+'}'+'}'); |
else document.getElementById('query').setAttribute('value','{'+'{#dpl:'+input+'}'+'}'); |
Revision as of 19:06, 22 August 2007
{{#form:name=findForm|class=find|action=/wiki/|
{{#input:name=content|id=query|type=hidden}} {{#input:name=q|id=q|type=hidden}} {{#input:name=go|id=input|type=text|value={{#request:go}}}}
{{#input: type = submit | value = Title or DPL-query | onClick = var input = document.getElementById('input').value; findForm.action = '/wiki/'; if (0>input.indexOf('=')) findForm.action = '/'+input; else document.getElementById('query').setAttribute('value','{'+'{#dpl:'+input+'}'+'}'); }}
{{#input: type = submit | value = Full text search | onClick = findForm.action='/Special:Search/'+document.getElementById('input').value; }}
{{#input: type = submit | value = Wikipedia | onClick = findForm.action='http'+'://en.wikipedia.org/wiki/'+document.getElementById('input').value; }}
{{#input: type = submit | value = Google | onClick = findForm.action='http'+'://www.google.com/search'; document.getElementById('q').setAttribute('value',document.getElementById('input').value); }}
}}