Some English fixes, and change "Wikipedia" to "MediaWiki".
[lhc/web/wiklou.git] / docs / skin.doc
1
2 SKIN.DOC
3
4 This document describes the overall architecture of MediaWiki's
5 HTML rendering code. It is placed here rather than in comments
6 in the code itself to help reduce the code size.
7
8 Unfortunately there isn't any documentation, and the code's in
9 a bit of a mess right now during the transition from the old skin
10 code to the new template-based skin code in 1.3.
11
12 The following might help a bit though.
13
14 Firstly, there's Skin.php; this file will check various settings, and it
15 contains a base class from which new skins can be derived.
16
17 Before version 1.3, each skin had its own PHP file (with a sub-class to Skin)
18 to generate the output. The files are:
19 * SkinCologneBlue.php
20 * SkinNostalgia.php
21 * SkinStandard.php
22 * SkinWikimediaWiki.php
23 If you want to change those skins, you have to edit these PHP files.
24
25 Since 1.3 a new special skin file is available: SkinPHPTal.php. It makes use of
26 the PHPTal template engine and allows you to separate code and layout of the
27 pages. The default 1.3 skin is MonoBook and it uses the SkinPHPTAL class.
28
29 To change the layout, just edit the PHPTal template (templates/xhtml_slim.pt)
30 as well as the stylesheets (stylesheets/monobook/*).