QuoteBlock

Summary:Allow a small measure of nested 'wikistyles'.
Version: 0.1 -- Tue, 11 Apr 2006 19:05:16 PST
Prerequisites: Tested/developed with PmWiki 2.1.3, fwiw (=
Status: Working (=
Maintainer: Feral
Categories: Layout? (Not sure)
NOTE: This has been superceded by PITS:00887 which is superior in every way.

Questions answered by this recipe

This is meant to allow you to 'nest' wikistyles. It is not truly nesting wikistyles but similar results can be achieved, such as

This is red text on a black background.

This is a different style of text', "overlaid" onto the other wiki style.

This is back to the red text on a black background which is what the quote block style is all about;

Note that the ...
>>bgcolor=black color=red<<
This is red text on a black background.
>> bgcolor=blue color=yellow<<
This is a different style of text', "overlaid" onto the other wiki style.
>>bgcolor=black color=red<<
This is back to the red text on a black background which is what the quote block style is all about;
>><<
...base wiki style works just fine, until you start dealing with colorful pages including other colorful pages as the included page tends to break the colors on the page it is included in.

This is meant to solve (sort of as a hack albeit) this dilemma.

So, something like ...
>>bgcolor=black color=red<<
This is red text on a black background.
(:quoteblock style=post:)
This text is using our div.post style which you can see in the attached quoteblock.php.
(:quotend:)
This is back to the red text on a black background, which is what the quote block style is all about;
>><<
... will basically look like the first example.

Description

This is little more than a little script to implement a markup to allow a small measure of nested 'wikistyles', similar to how a sourceblock will not murder your existing wikistyle; This is the same idea.

USAGE
(:quoteblock style=STYLE :) ... (:quotend:) where STYLE is one of the below, such as:
(:quoteblock style=quote:)
(:quotend:)

(:quoteblock style=post:)
(:quotend:)

(:quoteblock style=email:)
(:quotend:)

Included in the attached file are the styles:

  • quote
  • email
  • post
  • storecomment

But you will likely want to modify/add your own.

Notes

It should work just fine, quite similar to how Cookbook:SourceBlock works as far as it's base interaction with wikistyles. (The idea of using a <div> tag should be credited to SourceBlock, not I (= )

The file has more information/commentary.

Release Notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

  • 0.1 -- Tue, 11 Apr 2006 19:05:16 PST
    • Initial, it works for me...

Comments

See Also

  • I found a need for this while developing Cookbook:FeralBlog? as the PageLists were colorful and I was including pages which had various color markup. This has solved the abrupt termination of colors in this instance.

Contributors

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