Changes between Version 33 and Version 34 of WikiExtrasPlugin


Ignore:
Timestamp:
Jun 2, 2015, 2:37:56 PM (7 years ago)
Author:
Andras Korn
Comment:

Lift color macro docs from source into wiki page

Legend:

Unmodified
Added
Removed
Modified
  • WikiExtrasPlugin

    v33 v34  
    127127 ''Note: The priority smileys as defined above, ''`{p1}`'' etc, may __not__ work since they conflict with !InterTrac ticket report references (#1799), which are handled by the Trac core.''
    128128
     129== Color macro syntax
     130
     131Syntax:
     132
     133{{{
     134[[Color(text, fg/bg/size)]]
     135}}}
     136
     137where
     138
     139* `text` is the text to decorate. Enter a leading and/or trailing space character to surround the text with a decorated space.
     140
     141* `fg/bg/size` defines the foreground and background colors, and a font size. All parameters are optional and separated by slash character (`/`).
     142
     143Colors may be specified as an RGB triplet in hexadecimal format (a hex triplet; e.g. `#000` or `#000000` for black); they may also be specified according to their common English names (e.g. red, green, blue etc.). See [http://en.wikipedia.org/wiki/Web_colors here] for details.
     144
     145Examples:
     146
     147{{{
     148[[Color(Large red on yellow, red/yellow/150%)]]
     149[[Color(Red on yellow, red/yellow)]]
     150[[Color(Yellow background, /yellow)]]
     151[[Color(Large red, #f00/2em)]]
     152[[Color(Large on yellow, /yellow/20px)]]
     153[[Color(Text, can, have, commas, /yellow)]]
     154[[Color( Surrounding space is also decorated , white/red)]]
     155}}}
     156
     157To set the foreground color for a larger block, the processor variant can be used ''(background color and font size may not display as expected due to the mechanisms of cascading style sheets, be advised and use the ''color'' parameter only)'': 
     158 
     159{{{
     160{{{#!Color color=green
     161...
     162}}}
     163}}}
     164
    129165== Example
    130166