Forum:Autodiscovery of search plugins
Wikia - creating communities
I finally got my OpenSearch search plugin online. Now I would like to add AutoDiscovery. According to the page Autodiscovery of search plugins, I need to add a line to <head> tag of all w:c:ChristianMusic: pages. The line is "<link rel="search" type="application/opensearchdescription+xml" title="Christian Music Wiki" href="http://mycroft.mozdev.org/updateos.php/id0/christian_music_wiki.xml"> (unless I misread the instructions).
How do I add the tag? Will (Talk - contribs) 07:07, 17 March 2007 (UTC)
- That's something that has to be done by the tech team. Perhaps you could ask Angela. Though unless there's another reason for it, since this requires technical intervention anyways, perhaps the search plugin xml file should also be located here. Wikia gets a lot of traffic and we don't want to kill mozdev do we. ~Dantman(talk) 07:22, 17 March 2007 (UTC)
As I told Sannse by IRC, "I think that the server has 90% of the information needed to automatically generate the plugins and autodiscovery. All it needs is a short and long descriptions." That would apply to all wikis. The wiki's administrator (or whoever is the primary moderator) would set those fields via the mediawiki namespace. Will (Talk - contribs) 07:30, 17 March 2007 (UTC)
- Yes, that's a possibility. Settings could potentially be done at MediaWiki:OpenSearch-name, MediaWiki:OpenSearch-description, and an image could be set at Image:OpenSearch.png. After that it would be a simple matter of whether to use a Specialpage to allow an admin to regenerate the file, or generate the page strait from MediaWiki and reference that page instead of a separate file. I could do something like that myself. But first an ok by the tech team would be good. ~Dantman(talk) 08:31, 17 March 2007 (UTC)
Well, for the icon, I would suggest using Image:Favicon.ico. However, auto-generation of the ICO from a PNG would be a good idea. But I doubt that a special image would be required. Also, I would suggest auto-generation of Open Search, Sherlock, and Google. Will (Talk - contribs) 09:13, 17 March 2007 (UTC)
- If that's the case then yes, use Favicon to represent the wiki. And since you're talking about multiple types of search engines, then a specialpage would be best. It would be a unlisted specialpage. /index.php?title=Special:Searchplugin&action=raw&ctype=text/xml&search=google would be a probable link to the Google form of the plugin. Quite easier that way because the engine plugins use most of the same code, changing search parameter only modifies a little bit. ~Dantman(talk) 09:37, 17 March 2007 (UTC)
- Wikipedia is just making this easy:
<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Wikipedia (English)</ShortName>
<Description>Wikipedia (English)</Description>
<Image height="16" width="16" type="image/x-icon">http://en.wikipedia.org/favicon.ico</Image>
<Url type="text/html" method="get" template="http://en.wikipedia.org/w/index.php?title=Special:Search&search={searchTerms}"/>
<Url type="application/x-suggestions+json" method="GET" template="http://en.wikipedia.org/w/api.php?action=opensearch&search={searchTerms}"/>
</OpenSearchDescription>