Very simple documentation.
[lhc/web/wiklou.git] / docs / skin.doc
1
2 SKIN.DOC
3
4 This document describes the overall architecture of Wikipedia'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
9 Unfortunately there isn't any documentation, and the code's in
10 a bit of a mess right now during the transition from the old skin
11 code to the new template-based skin code in 1.3.
12
13 The following might help a bit though.
14
15 The first file called is Skin.php, it will check various settings and create
16 a standard class.
17
18 Before version 1.3, each skin had its own php file to generate the output. The
19 files are:
20 * SkinCologneBlue.php
21 * SkinNostalgia.php
22 * SkinStandard.php
23 * SkinWikimediaWiki.php
24 If you want to changes thoses skin you have to edit the php files
25
26 Since 1.3 a new special skin file is available : SkinPHPTal.php. It makes use
27 of the PHPTal template engine and allow to easily split code and layout of the
28 pages. The default 1.3 skin is MonoBook and using the SkinPHPTAL class.
29
30 To change the layout just edit the phptal template : ./templates/xhtml_slim.pt
31 as well as the stylesheets in ./stylesheets/monobook/ .