BBCode Plugin

bbcode plugin by Gina Häußge, Michael Klier
Makes the use of BBcode syntax possible. (previous authors: Esther Brunner)

Last updated on 2008-02-11. Provides Syntax.
Compatible with DokuWiki >= 2006-11-06.

Tagged with bbcode, color, formatting, list, quote, size.

Download plugin-bbcode.tgz

Description

This plugin provides support for BBCode syntax within DokuWiki. BBCode is popular among discussion forums like phpBB or vBulletin. The BBCode plugin supports almost all of the phpBB implementation of BBCode.

Of course, DokuWiki's syntax is much more powerful and is more intuitive to read and write, but nevertheless, you might want to switch content from a forum to your wiki or make it easy for users coming from forums to start contributing.

Syntax

Basic Formatting:

[b]bold text[/b]
[i]italic text[/i]
[u]underline[/u]

Code and Quoting:

[code]<?php echo $text;[/code]
[quote="Esther"]DokuWiki is great![/quote]

Links and Images:

[url=http://www.kaffeehaus.ch]Esthers Kaffeehaus Blog[/url]
[email]esther@kaffeehaus.ch[/email]
[img]http://www.dokuwiki.org/lib/exe/fetch.php?w=&h=&cache=cache&media=wiki%3Adokuwiki-128.png[/img]

Lists:

[list][*]item 1[*]item 2[*]item 3[/list]
[list=1][*]item 1[*]item 2[*]item 3[/list]  attribute: 1, a, A, i or I

Textsize and Color:

[size=90%]smaller text[/size]               attribute: numeric value (px, em, %, ...) or keywords like small
[color=red]colored text[/color]             attribute: color name, #fff[fff] or rgb(255,255,255)

Known Issues

  • Images within a link aren't supported. Use DokuWiki's syntax [[http://www.some.url|{{http://www.some.url/logo.png}}]].

Further Resources

Discussion

This code doesn't work at all =/

Works for me, do you have a link were I can have a look at it? — Michael Klier 2008/05/11 21:55
Works for me also. This plugin is great! 2008-06-06 Juice

Could you please add support for ODT plugin? Now all code inside e.g. [color=red][/color] is just get missed in generated ODT document :-(

Will do, just put it on my ToDo list. — Michael Klier 2008/10/31 12:30

Great plugin. Can you add support for other syntax, such as strike-through and monospace like the DokuWiki forum has? (ie.: [s] → [/s] and [m] → [/m]). Thanks! — 'Ryan Chappelle' 2008/12/08 16:50

 
plugin/bbcode.txt · Last modified: 2009/01/03 01:44 by 70.103.232.219
 

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported

Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsDarcsXRefTranslate