RecipeInfo


Recipeinfo markup:

>>recipeinfo<<
Summary: How to create a recipeinfo box like it is used in the cookbook
Version: 2007-02-26
Prerequisites: pmwiki
Status: stable
Maintainer:
Categories:
(:if exists {$Name}-Talk:)Discussion: [[{$Name}-Talk]](:if:)
>><<
Summary: How to create a recipeinfo box like it is used in the cookbook
Version: 2007-02-26
Prerequisites: pmwiki
Status: stable
Maintainer:
Categories:

Questions answered by this recipe

How do I create a recipeinfo box like it is used in the cookbook?

Description

The recipeinfo div markup you can see above

The styling of the recipeinfo box is done in the GroupHeader as a wiki style with:

%define=recipeinfo color=black background-color=#f7f7f7 border='1px solid #cccccc' padding=4px%

In addition there is special markup defined for the cookbook group:

    Markup('^Property:', 'block',
       '/^([A-Z][-\\w]+):(\\s.*)?$/',
       '<:block,0><div class=\'property-$1\'>$0</div>');

This custom markup is for all lines starting with a word that begins with a capital and ends in a colon. The markup puts each such line in a div with a class name which is generated from the starting word. Thus a line (anywhere in a Cookbook page) that starts like this:

  Fish: lemon sauce is good.

gets rendered something like

  <div class="property-Fish">Fish: lemon sauce is good.</div>

and naturally most browsers render each div starting with its own line.

Notes

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".

Comments

See Also

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.