|
Cookbook /
QuoteBlockSummary: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.
File: QuoteBlock.phpΔ
Questions answered by this recipeThis 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; >>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. DescriptionThis 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.
(:quoteblock style=quote:) (:quotend:) (:quoteblock style=post:) (:quotend:) (:quoteblock style=email:) (:quotend:) Included in the attached file are the styles:
But you will likely want to modify/add your own. NotesIt 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
CommentsSee Also
Contributors |