MediaWiki file: | Skin.php|
---|---|
Location: | includes/skins/ |
Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
Classes: | Skin |
Details
Encapsulates a "look and feel" for the wiki. All of the functions that render HTML or make choices on how to render HTML are here. They are called from various other places when needed.
The skin being used can be extracted from the nearest RequestContext. Before 1.18 $wgUser
was used to get the skin object. ->getSkin()
Modern skins extend the SkinTemplate
class, which in turn extends the Skin class.Functions
- function outputPage called from function output in OutputPage.php . It calls function out in OutputPage.php a number of times, to send the HTML to the user: $mBodytext and HTML before and after it.
- function generateUserJs called from RawPage.php to generate the user specific JavaScript.
- function generateUserStylesheet called from RawPage.php to generate the user specific stylesheet.
See also
- Manual:Skins
- Manual:Skin configuration
- Manual:How to make a MediaWiki skin
- Category:MediaWiki hooks included in Skin.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.