Difference between revisions of "Template:Find"

From Organic Design wiki
(test with normal buttons)
(back to images)
Line 4: Line 4:
 
{{#input:id=input|type=text|value=Title or DPL-query}}
 
{{#input:id=input|type=text|value=Title or DPL-query}}
 
{{#input:
 
{{#input:
type    = submit
+
type    = image
|value  = Title or DPL-query
+
|src    = /www/images/1/1b/Go-icon.png
 +
|alt    = Title or DPL-query
 
|onClick = var input = document.getElementById('input').value;
 
|onClick = var input = document.getElementById('input').value;
 
          findForm.action = '/wiki/index.php';
 
          findForm.action = '/wiki/index.php';
Line 12: Line 13:
 
}}
 
}}
 
{{#input:
 
{{#input:
type    = submit
+
type    = image
|value  = Full text search
+
|src    = /www/images/1/14/Search-icon.png
 +
|alt    = Full text search
 
|onClick = findForm.action='/Special:Search/'+document.getElementById('input').value;
 
|onClick = findForm.action='/Special:Search/'+document.getElementById('input').value;
 
}}
 
}}
 
{{#input:
 
{{#input:
type    = submit
+
type    = image
|value  = Wikipedia
+
|src    = /www/images/4/4f/Favicon_pediad.png
 +
|alt    = Wikipedia
 
|onClick = findForm.action='http'+'://en.wikipedia.org/wiki/'+document.getElementById('input').value;
 
|onClick = findForm.action='http'+'://en.wikipedia.org/wiki/'+document.getElementById('input').value;
 
}}
 
}}
 
{{#input:
 
{{#input:
type    = submit
+
type    = image
|value  = Google
+
|src    = /www/images/3/3a/Favicon_google.png
 +
|alt    = Google
 
|onClick = findForm.action='http'+'://www.google.com/search';
 
|onClick = findForm.action='http'+'://www.google.com/search';
 
          document.getElementById('q').setAttribute('value',document.getElementById('input').value);
 
          document.getElementById('q').setAttribute('value',document.getElementById('input').value);
 
}}
 
}}
 
}}
 
}}

Revision as of 06:24, 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; findForm.action = '/wiki/index.php'; 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/'+document.getElementById('input').value; }} {{#input: type = image |src = /www/images/4/4f/Favicon_pediad.png |alt = Wikipedia |onClick = findForm.action='http'+'://en.wikipedia.org/wiki/'+document.getElementById('input').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',document.getElementById('input').value); }} }}