Warning: Undefined array key "LinkedResourceExtras" in /usr/local/www/pmwiki/cookbook/sourceblock.php on line 335 Warning: Trying to access array offset on null in /usr/local/www/pmwiki/cookbook/sourceblock.php on line 335 Deprecated: Function strftime() is deprecated in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 195 Warning: Undefined array key "HTTP_REFERER" in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 394 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 394 Warning: Undefined array key 2 in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 395 Warning: Undefined array key 2 in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 397 Warning: Undefined variable $loc in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 424 Warning: Undefined variable $TotalCounterEnableGeoIP in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 437 Warning: Undefined array key "TotalCounterMaxItems" in /usr/local/www/pmwiki/cookbook/totalcounter.php on line 584
SWUSB.LBX Examples |
PmWiki /
WikiStyleExamplesSee also Wiki Styles Plus and Wiki style colors. PmWiki uses WikiStyles for styling text with color and other attributes. PmWiki 2.0 introduced the ability to control the styling further and to even place styles on blocks. ExamplesA style is specified within a pair of %-signs and styles the text that follows, as in:
There are a wide number of available style properties, borrowed primarily from HTML and CSS. In addition, an author can define a style "shortcut" by using the
Shortcuts can be combined with other styles, including other shortcuts:
So far, this is all basically the same as what was available in PmWiki 1.0. PmWiki 2.0 includes the capability to style blocks, by using the
This means it's now possible to do right-aligned and centered text:
In fact, PmWiki predefines
Authors can define their own custom styles:
Styles can be applied to almost any kind of block:
In particular, this means that outlines are now possible using the predefined
Wiki styles can be combined with CSS stylesheets to do this automatically -- see Cookbook:OutlineLists. Q & AHow do I get a block of preformatted text?Use something similar to this (assuming you want markup within the block to be interpreted as wiki markup and URIs to be recognized).
How do I get a block of preformatted text with a colored background and a border?Use something similar to this (note that wiki markup etc is not recognized within the block):
How do I get a block of text (including wiki markup) with a colored background and a border?
How do I get a block of text (including wiki markup) with a border that is indented on the left and does NOT extend all the way to right? I'm not interested in having later text to the right as would occur with lfloat...You can use the
This page may have a more recent version on pmwiki.org: PmWiki:WikiStyleExamples, and a talk page: PmWiki:WikiStyleExamples-Talk. |