|
Cookbook /
CalloutSummary: Present something within an iconic bubble or style.
Version: 2010-01-02
Prerequisites: pmwiki-2.1.0
Status: alpha
Maintainer: RandyB
Questions answered by this recipe
DescriptionCallouts are separately styled areas of a page, typically used to break up long text, or to visually separate elements of the page. Pm's Cookbook:WikiStylesPlus recipe provides callouts for tips, warnings, and important messages. This recipe gives you more choices. Built-in callouts: ![]() ActivationTo install the recipe
include_once("
UsageHow to put a callout on your pageOnce you've installed the recipe, you can create any of the built-in callouts with simple markup like this: >>nutshell<< This text will appear in a nutshell callout. >><< Or style it with wikistyles: >>nutshell bgcolor=pink border="1px blue"<< This will have a pink background and blue border... >><< Most callouts have left and right indentation. You can use this recipe's "fullwidth" style if you don't want indentation. Conversely, if a callout is normally full width, you can indent it with the "lrindent" style. >>nutshell fullwidth<< This callout will have no indentation... >><< Showing what callouts are availableYou can see what callouts are available on your system by using a callout named "builtincallouts". Tips and tricksIf your content doesn't quite match any of the built-in callouts, pick a name for the callout that you wish existed, define that name as the callout that currently comes closest, and include that definition in a group or site header that every page includes. On your wiki pages, use your preferred callout name. That will clarify your markup. Also, someday when a more appropriate callout is developed, you'll be able to switch to it globally simply by changing your definition line. See Cookbook.CalloutCustomization for how to define your own names and styles for callouts using wikistyles, and for examples and instructions on creating entirely new built-in callouts. NotesThis recipe is closely modeled on parts of Pm's WikiStylesPlus recipe. The images in these callouts can be found on sites like http://www.clker.com/ and http://openclipart.org. They are all believed to be in the public domain. Release notes
See alsoContributors
CommentsIssue: I'm having a bit of trouble with this recipe and I don't understand why. I've installed it and it worked fine, then re-installed on a new server and it does not work correctly. wikistyles works just fine, no problem. When i use a callout i get the image in a medium gray background with my text appearing on top of the image. The wikistyles callouts work as expected, but none of the callout boxes in this recipe work for me. i am thoroughly confused why these images and boxes behave incorrectly! Response: There are three components that have to find each other for this recipe to work: the css file, the php script, and the images. If one of those is not found, the result might appear odd. Make sure you haven't changed any references or the directory structure. If everything seems installed correctly, perhaps an outside recipe or configuration option is overriding the path sequence. You might also check your definitions, if you are overriding the built-in names. - RandyB User notes +2: 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. |