(redirected from Cookbook.BBcode)
Summary: BBcode for PmWiki
Status: Release candidate
Questions answered by this recipe
- How do I use BBcode tags in pmWiki pages?
This recipe adds BBcode formatting to the pmWiki markup. Most BBcode tags are translated to their pmWiki equivalent and than passed through the standard PmWiki engine.
The tags that seem to be shared by most forum systems are supported.
- Download the following file: bbcode.phpΔ and save in your cookbook directory.
- Add the following line into your local/config.php script:
The following BBcode tags can now be used in pmWiki pages:
||Resize text to "##" points
|Dispay text in color "ccc".
|Link to "weblink".
[[weblink | text]]
|Link "text" to "weblink".
[[mailto:address | address]]
|Link "address" to "mailto:address".
|Display the image found at "imgurl".
||Display "snippet" in a code block
||Display "Text" as a quote
||Display "Text" as a quote from "author"
The format of a quote can be altered by setting the $BbCodeQuoteFmt variable in your local/config.php.
The format of the code block can be altered by setting the $BbCodeCodeFmt variable in your local/config.php.
- If [code] tags are enclosed by pmWiki code tags ("
[@" and "
]"), they are still translated. This is because the BBCode [code] tags are processed before the PmWiki tags "
[@" and "
- Quotes can not be nested.
- Only image types supported by PmWiki will be displayed: gif, jpg, jpeg, png, bmp, ico and wbmp
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".
- March 26th 2008 - version 080326
- Added [quote] tag.
- Code between [code] tags is now displayed in a block.
- March 15th 2008 - version 080315
See discussion at Bbcode-Talk
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.