PmWiki is a wiki-based system for collaborative creation and maintenance of websites.
PmWiki pages look and act like normal web pages, except they have an "Edit" link that makes it easy to modify existing pages and add new pages into the website, using basic editing rules. You do not need to know or use any HTML or CSS. Page editing can be left open to the public or restricted to small groups of authors.
PmWiki is written in PHP and distributed under the General Public License. It is designed to be simple to install, customize, and maintain for a variety of applications. This site is running pmwiki-2.2.11.
PmWiki is a registered trademark of Patrick R. Michaud.
PmWiki's home on the web is at pmwiki.org. This page describes the predefined Wiki Styles and how a Wiki Administrator can define additional Wiki Styles as a local customization for all pages (in local/config.php) or specific groups (in local/$Group.php).
All predefined Wiki Styles are setup in the global array $WikiStyle.
To define your own Wiki Styles, add the setting of the correspondent WikiStyle within the array.
The following array-values are set by scripts/wikistyles.php using the SDV()-function (so you can overwrite them by setting them prior in config.php or farmconfig.php):
| markup: | definition: |
text colors: (equiv. to %define=xxxx color=xxxx% | |
%black% | $WikiStyle['black']['color'] = 'black'; |
%white% | $WikiStyle['white']['color'] = 'white'; |
%red% | $WikiStyle['red']['color'] = 'red'; |
%yellow% | $WikiStyle['yellow']['color'] = 'yellow'; |
%blue% | $WikiStyle['blue']['color'] = 'blue'; |
%gray% | $WikiStyle['gray']['color'] = 'gray'; |
%silver% | $WikiStyle['silver']['color'] = 'silver'; |
%maroon% | $WikiStyle['maroon']['color'] = 'maroon'; |
%green% | $WikiStyle['green']['color'] = 'green'; |
%navy% | $WikiStyle['navy']['color'] = 'navy'; |
%purple% | $WikiStyle['purple']['color'] = 'purple'; |
list-styles: | |
%decimal% | $WikiStyle['decimal']['apply'] = 'list';$WikiStyle['decimal']['list-style'] = 'decimal'; |
%roman% | $WikiStyle['roman']['apply'] = 'list';$WikiStyle['roman']['list-style'] = 'lower-roman'; |
%ROMAN% | $WikiStyle['ROMAN']['apply'] = 'list';$WikiStyle['ROMAN']['list-style'] = 'upper-roman'; |
%alpha% | $WikiStyle['alpha']['apply'] = 'list';$WikiStyle['alpha']['list-style'] = 'lower-alpha'; |
%ALPHA% | $WikiStyle['ALPHA']['apply'] = 'list';$WikiStyle['ALPHA']['list-style'] = 'upper-alpha'; |
special: | |
| open links in a new browser-window: | |
%newwin% | $WikiStyle['newwin']['target'] = '_blank'; |
| Turns markup into a comment via display:none CSS | |
%comment% | $WikiStyle['comment']['display'] = 'none'; |
Sample: If you want to define a (site-wide) style the same as the page style
%define=projectentry color:red%
use
$WikiStyle['projectentry']['color'] = 'red';
The $WikiStyle['projectentry']['apply'] variable may be defined if the wikistyle concerns a particular tag. It may be 'item' (for li|dt), 'list' (for ul|ol|dl), 'div', 'pre', 'img', 'p' or the combining 'block' (for p|div|ul|ol|dl|li|dt|pre|h[1-6]). Example:
$WikiStyle['top']['apply'] = 'item';$WikiStyle['top']['class'] = 'top';
then a markup
* %top% An important list-item
will output
<li class="top">An important list-item</li>
If your custom-styles (in local/config.php) are getting very colorful it might be useful to disable them in print-view. This can be done easily by putting them into a condition.
if($action!="print") {
// your custom-styles
}
I tried this but background didn't work, thou border and float worked? /Vincent 2008-04-08
$WikiStyle['vMenu']['background']='#ffffcc' ; $WikiStyle['vMenu']['float']='left' ; $WikiStyle['vMenu']['border']='1px dotted red' ;
$WikiStyle['vMenu']['background-color']='#ffffcc'; -- unlike background, background-color is defined in the $WikiStyleCSS array, which is checked for valid properties.
PmWiki is a wiki-based system for collaborative creation and maintenance of websites.
PmWiki pages look and act like normal web pages, except they have an "Edit" link that makes it easy to modify existing pages and add new pages into the website, using basic editing rules. You do not need to know or use any HTML or CSS. Page editing can be left open to the public or restricted to small groups of authors.
PmWiki is written in PHP and distributed under the General Public License. It is designed to be simple to install, customize, and maintain for a variety of applications. This site is running pmwiki-2.2.11.
PmWiki is a registered trademark of Patrick R. Michaud.
PmWiki's home on the web is at pmwiki.org.