Book Image

MediaWiki Skins Design

Book Image

MediaWiki Skins Design

Overview of this book

Table of Contents (16 chapters)
MediaWiki Skins Design
Credits
About the Author
About the Reviewer
Preface

Functions for <head>


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.

Headlinks

<?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.

Pagetitle

The wiki's current page title can be inserted in the page using the<?php $this->text('pagetitle') ?> function. Notice...