Difference between revisions of "Template:Find"

From Organic Design wiki
m
m
Line 2: Line 2:
 
<h5>Find articles [[11 June 2007|(help)]]</h5>
 
<h5>Find articles [[11 June 2007|(help)]]</h5>
 
{{#input:name=content|id=query|type=hidden}}
 
{{#input:name=content|id=query|type=hidden}}
 +
{{#input:name=search|type=hidden}}
 
{{#input:name=q|id=q|type=hidden}}
 
{{#input:name=q|id=q|type=hidden}}
 
{{#input:name=pagename|type=hidden|value=Search results}}
 
{{#input:name=pagename|type=hidden|value=Search results}}
Line 7: Line 8:
 
{{#input:
 
{{#input:
 
type    = image
 
type    = image
|name    = search
 
 
|src    = /www/images/1/1b/Go-icon.png
 
|src    = /www/images/1/1b/Go-icon.png
 
|alt    = Title or DPL-query
 
|alt    = Title or DPL-query
Line 17: Line 17:
 
{{#input:
 
{{#input:
 
type    = image
 
type    = image
|name    = search
 
 
|src    = /www/images/1/14/Search-icon.png
 
|src    = /www/images/1/14/Search-icon.png
 
|alt    = Full text search
 
|alt    = Full text search

Revision as of 06:41, 12 June 2007

{{#form:name=findForm|class=find|action=/wiki/index.php|

Find articles (help)

{{#input:name=content|id=query|type=hidden}} {{#input:name=search|type=hidden}} {{#input:name=q|id=q|type=hidden}} {{#input:name=pagename|type=hidden|value=Search results}} {{#input:name=go|id=input|type=text|value={{#request:go}}}} {{#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_pedia.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); }} }}