Difference between revisions of "Template:Find"

From Organic Design wiki
m
m (google not working)
Line 1: Line 1:
 
{{#form:name=findForm|class=find|action=/wiki/index.php|
 
{{#form:name=findForm|class=find|action=/wiki/index.php|
 
{{#input:name=content|id=query|type=hidden}}
 
{{#input:name=content|id=query|type=hidden}}
{{#input:id=input|type=text|size=15|value=Title or DPL-query}}
+
{{#input:name=q|id=q|type=hidden}}
 +
{{#input:id=input|type=text|value=Title or DPL-query}}
 
{{#input:
 
{{#input:
 
type    = image
 
type    = image
Line 26: Line 27:
 
|src    = /www/images/3/3a/Favicon_google.png
 
|src    = /www/images/3/3a/Favicon_google.png
 
|alt    = Google
 
|alt    = Google
|onClick = findForm.action='http'+'://www.google.com/search?q='+findForm.findInput.value;
+
|onClick = findForm.action='http'+'://www.google.com/search';
 +
          document.getElementById('q').setAttribute('value',findForm.findInput.value);
 
}}
 
}}
<br>
 
 
}}
 
}}

Revision as of 06:01, 11 June 2007

{{#form:name=findForm|class=find|action=/wiki/index.php| {{#input:name=content|id=query|type=hidden}} {{#input:name=q|id=q|type=hidden}} {{#input:id=input|type=text|value=Title or DPL-query}} {{#input: type = image |src = /www/images/1/1b/Go-icon.png |alt = Title or DPL-query |onClick = var input = document.getElementById('input').value; if (0>input.indexOf('=')) findForm.action = '/'+input; else document.getElementById('query').setAttribute('value','{'+'{#dpl:'+input+'}'+'}'); }} {{#input: type = image |src = /www/images/1/14/Search-icon.png |alt = Full text search |onClick = findForm.action='/Special:Search?fulltext='+findForm.findInput.value; }} {{#input: type = image |src = /www/images/4/4f/Favicon_pedia.png |alt = Wikipedia |onClick = findForm.action='http'+'://en.wikipedia.org/wiki/'+findForm.findInput.value; }} {{#input: type = image |src = /www/images/3/3a/Favicon_google.png |alt = Google |onClick = findForm.action='http'+'://www.google.com/search'; document.getElementById('q').setAttribute('value',findForm.findInput.value); }} }}