We covered the basics of the<head>
element in your MediaWiki skin template in the previous chapter, but we can still make some changes in the head of the wiki template.
<?php $this->html('headlinks') ?>
retrieves links to favicons for use with MediaWiki (as specified by the $wgFavicon
variable in the LocalSettings.php
file), and also provides a reference to your wiki's Open Search Description. It thus produces XHTML code similar to the following:
<link rel="shortcut icon" href="/favicon.ico" /> <link rel="search" type="application/opensearchdescription+xml" href="/richard.carter/book/v1/opensearch_desc.php" title="JazzMeet (English)" />
This function also inserts related keywords in the<head>
of the page, based on the title of the page, and the internal links within the page's content.