* Removed messages in English, they'll be inherited from the parent.
[lhc/web/wiklou.git] / docs / skin.txt
1
2 SKIN.DOC
3
4 This document describes the overall architecture of MediaWiki's HTML rendering
5 code as well as some history about the skin system. It is placed here rather
6 than in comments in the code itself to help reduce the code size.
7
8 == Version 1.4 ==
9
10 MediaWiki still use the PHPTal skin system introduced in version 1.3 but some
11 changes have been made to the file organisation.
12
13 PHP class and PHPTal templates have been moved to /skins/ (respectivly from
14 /includes/ and /templates/). This way skin designer and end user just stick to
15 one directory.
16
17 Two samples are provided to start with, one for PHPTal use (SkinPHPTal.sample)
18 and one without (Skin.sample).
19
20
21 == Version 1.3 ==
22
23 The following might help a bit though.
24
25 Firstly, there's Skin.php; this file will check various settings, and it
26 contains a base class from which new skins can be derived.
27
28 Before version 1.3, each skin had its own PHP file (with a sub-class to Skin)
29 to generate the output. The files are:
30 * SkinCologneBlue.php
31 * SkinNostalgia.php
32 * SkinStandard.php
33 * SkinWikimediaWiki.php
34 If you want to change those skins, you have to edit these PHP files.
35
36 Since 1.3 a new special skin file is available: SkinPHPTal.php. It makes use of
37 the PHPTal template engine and allows you to separate code and layout of the
38 pages. The default 1.3 skin is MonoBook and it uses the SkinPHPTAL class.
39
40 To change the layout, just edit the PHPTal template (templates/xhtml_slim.pt)
41 as well as the stylesheets (stylesheets/monobook/*).
42
43
44 == pre 1.3 version ==
45
46 Unfortunately there isn't any documentation, and the code's in a bit of a mess
47 right now during the transition from the old skin code to the new template-based
48 skin code in 1.3.