Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying MediaWiki Skins Design
  • Table Of Contents Toc
MediaWiki Skins Design

MediaWiki Skins Design

3.7 (3)
close
close
MediaWiki Skins Design

MediaWiki Skins Design

3.7 (3)

Overview of this book

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

Chapter 5. Useful MediaWiki Functions

A MediaWiki skin template file, which is similar to JazzMeet.php, is a mixture of PHP and XHTML, with a smattering of JavaScript and inline CSS as well. There are a significant number of useful PHP-based MediaWiki functions that can be used (in some cases, re-used) to modify your wiki's skin. In this chapter, we will discuss the following:

  • The basics of how to use MediaWiki functions in your skin

  • Useful functions for your wiki's<head> section

  • Functions for your wiki's content area

  • Functions for your wiki's interface area

PHP Functions and MediaWiki Functions

PHP functions are built-in functions of the PHP language. For example, the str_replace function allows you to replace one substring with another, within a string.

MediaWiki functions extend the PHP functions in a way that is helpful for your MediaWiki wiki. Some of these are in the SkinTemplate.php file in the includes directory, and there are yet more functions in the Skins.php file in the same...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
MediaWiki Skins Design
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon