2017-98-08-Deb: 2017-05-03-11-24-57: 2011-10-02: 2011-08-27: 2011-05-30: 2011-05-28: 2011-04-16: 2011-01-22: 2010-12-03-13-04-04: 2010-09-24: 2010-01-08: 2009-11-16: 2009-09-xx: 2008-01-25: 2007-09-28: 2007-04-21: 2007-04-13: 2006-12-01: 2006-09-22: 2006-09-06: 2006-04-20: 2006-03-XX: 2006-01-XX: 2006-01-28-04-57-02: 2005-09-23: 2005-08-12: 2005-01-24: 2004-09-24: 2004-05-13: 2003-12-08: 2003-04-04: 2002-02-22: 2002-01-25:
|
PmWiki /
CustomWikiStylesadministrators (intermediate)
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 Predefined Wiki StylesThe following array-values are set by
Author-Defined Wiki Styles
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
then a markup will output Printer-Friendly StylesIf 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 } NotesTo be done:Questions: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' ; Try using $WikiStyle['vMenu']['background-color']='#ffffcc'; -- unlike background , background-color is defined in the $WikiStyleCSS array, which is checked for valid properties.
Q: How would i set an image to the left of a paragraph in a WikiStyle? I'd like to provide an icon for paragraphs that are notes, important, warnings, etc. See WikiStylesPlus and Callout .
This page may have a more recent version on pmwiki.org : PmWiki:CustomWikiStyles , and a talk page: PmWiki:CustomWikiStyles-Talk . |