Grease

Grayness < Skins > Green   (talk | users | test page | RWD? | set as default | unset | validate: HTML, CSS)

Summary: Minimalistic skin inspired by the Dive Into Greasemonkey online book.
Version: 20070125
Status: Stable
Prerequisites: pmwiki-2.1
Maintainer: Dfaure
Categories: Skins
Download: grease.zip

About

This minimalistic skin is inspired from the Dive Into Greasemonkey (dead link <see talk>) online book. I found it visually so pleasant to read that I decided to give it to PmWiki (anyway, a wiki is somewhere also a kind of online book).

Installation

To use the Grease skin for your own Wiki, just download grease.zip, extract it into /path/to/pmwiki/pub/skins/ and add the following code to your local configuration file:

 # Specifies the name of the template file
 # to be used to generate pages.
 $Skin = 'grease';

Features

The skin current features are:

  • Full CSS driven (no tables),
  • Zoom support (no fixed size fonts),
  • Developed and tested under IE6/7 and Firefox.
  • Easy page header customization (see below).
Nota
This skin implements external links decoration like Monobook skin does. Please refer to it for related hint.

Header customization

All "fixed" parts of the header (title, group/name subtitle, non-contextual actions) may be customized from the configuration file via the $SkinPartFmt array variable, and with regular markup definitions. The skin defaults are:

$SkinPartFmt['wikititle'] = "$WikiTitle - {\$Titlespaced}";

$SkinPartFmt['title'] = '{$Titlespaced}';

$SkinPartFmt['subtitle']
    = '[[{$Groupspaced}]]&nbsp;&#8594;&nbsp;[[{$Namespaced}]]';

$SkinPartFmt['actions'] = ...;

$SkinPartFmt['sep'] = '&middot;';

The skin layout prevent using PageActions pages for defining something else than an action list.

As an interesting side effect, the (:title ...:) directive will therefore handle regular markup (emphasis, links, ...).

Contributor

-- Dfaure

History

2007-01-25
Fixed $EnableStopWatch handling.
2006-11-17
Added RecipeInfo data. Fixed header layout (IE7) and i18n issues.
2006-03-01
Fixed (:noright:) directive and attachment decoration behavior.
2005-09-30
Added header customization feature.
2005-09-07
Added handling of Site.PageActions (introduced with PmWiki v2.0 default skin).
2005-09-05
Fixed several visual bugs including latest SideBar styling.
2005-08-24
Minor bug fix.
2005-08-23
Initial release.

Comments

Is there a way to reduce the vertical space taken by the header block. When editing a page, it forces you to scroll down to hit the Save, Save and edit, etc. buttons.

Feel free to alter the skins files, or more easily, edit the Site.EditForm to have the buttons before the text area in the edit form. --Dfaure

User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Skins listings and will help newcomers browsing through the wiki.


 0: 00.00 00.00 config start
 1: 00.01 00.00 config end
 2: 00.06 00.05 MarkupToHTML begin
 3: 00.08 00.08 FPLTemplate: Chain begin
 4: 00.08 00.08 FPLTemplate: FPLTemplateLoad
 5: 00.08 00.08 FPLTemplate: FPLTemplateDefaults
 6: 00.08 00.08 FPLTemplate: FPLTemplatePageList
 7: 00.08 00.08 MakePageList pre
 8: 00.08 00.08 PageListSources begin
 9: 00.08 00.08 PageStore::ls begin wiki.d/{$FullName}
10: 00.13 00.12 PageStore::ls merge wiki.d/{$FullName}
11: 00.14 00.13 PageStore::ls end wiki.d/{$FullName}
12: 00.15 00.13 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
13: 00.15 00.13 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
14: 00.15 00.13 PageStore::ls end $FarmD/wikilib.d/{$FullName}
15: 00.15 00.13 PageListSources end count=108
16: 00.15 00.13 PageListSort pre ret=4 order=name
17: 00.15 00.13 MakePageList items count=108, filters=PageListTermsTargets
18: 00.42 00.40 MakePageList post count=102, readc=108
19: 00.42 00.40 PageListSort begin
20: 00.42 00.40 PageListSort sort
21: 00.42 00.40 PageListSort end
22: 00.42 00.40 MakePageList end
23: 00.42 00.40 FPLTemplate: FPLTemplateSliceList
24: 00.42 00.40 FPLTemplate: FPLTemplateFormat
25: 00.46 00.44 FPLTemplate: Chain end
26: 00.63 00.61 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
27: 00.64 00.62 ReadApprovedUrls SiteAdmin.ApprovedUrls end
28: 00.94 00.92 MarkupToHTML end
29: 00.94 00.92 MarkupToHTML begin
30: 00.94 00.92 MarkupToHTML end
31: 00.95 00.93 MarkupToHTML begin
32: 00.95 00.93 MarkupToHTML end
33: 00.95 00.93 MarkupToHTML begin
34: 00.96 00.94 MarkupToHTML end
35: 00.96 00.94 MarkupToHTML begin
36: 00.98 00.96 MarkupToHTML end
37: 00.98 00.96 MarkupToHTML begin
38: 01.09 01.07 MarkupToHTML end
39: 01.09 01.07 now