Loading...
 
Skip to main content

TWPCode

TWPCode - a BBCode alike use of Tiki's WikiPlugins


WikiPlugins in Tiki are extentions of the WikiSytax of the software Tiki - Wiki CMS Groupware, which can be used on every wikipage, article, blogpost, forum post, internal message ... literally throughout the whole system.

Whilst many bulletin boards and forums use the BulletinBoardCode to let provide their users with basic formatting tags similar to HTML tags, Tiki does use it's WikiSyntax for that and extends it with the socalled WikiPlugins.

WikiPlugins have an amazing vast amount of power, still being very easy to use for non-techie users of a website.
They are only lacking one point:
There are no basic formatting plugins respecting equivalents to the basic BBCode tags, whilst they would've been coded quite easily.

Creating only a few more tags for bold, underlined, italic text etc. we would combine the much more powerful WikiPlugins with the idea of the userfriendly BBCode and get a tagging system, which could be understood by everybody who knows BBCode and similar in only a few minutes:

The TWPCode.

Some example(s):

Copy to clipboard
At first mind, that where BBCode is [X]text[/X] WikiPlugin aka TWPCode would be {X()}text{X}, respectively [X=option]text[/X] would be {X(option)}text{X} (option=parameter=value)


basic tags:

bold:

Copy to clipboard
HTML: <b>bolded text</b>
Copy to clipboard
BBCode: [b]bolded tex[/b]
Copy to clipboard
TWPCode: {b()}bolded text{b} WikiSyntax: __bolded text__

Copy to clipboard
underlined: <u>underlined</u> / [u]underlined[/u] / {u()}underlined{u} / ===underlined===
Copy to clipboard
italic: <i>italic</i> / [i]italic[/i] / {i()}italic{i} / ''italic''
Copy to clipboard
strikethrough: <s>strikethrough</s> / [s] strikethrough[/s] /{s()}strikethrough{s} / --strikethrough--


more sophisticated tags:

mailto-link:

Copy to clipboard
HTML: <a href="mailto:j.doe@example.com">text</a>
Copy to clipboard
BBCode: [email=j.doe@example.com]text[/email]
Copy to clipboard
TWPCode: {email(j.doe@example.com)}text{email} WikiSyntax: [mailto:j.doe@example.com|text]


insert an image:

Copy to clipboard
HTML: <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Go-home.svg/100px-Go-home.svg.png" alt="" />
Copy to clipboard
BBCode: [img]http://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Go-home.svg/100px-Go-home.svg.png[/img]
Copy to clipboard
TWPCode=WikiSyntax: {IMG(src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Go-home.svg/100px-Go-home.svg.png")}{IMG} WikiSyntax only: {img fileId="20"} or {img src="display1"} or {img(src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Go-home.svg/100px-Go-home.svg.png")}


quotes:

Copy to clipboard
HTML: <blockquote><p>quoted text</p></blockquote>
Copy to clipboard
BBCode: [quote]quoted text[/quote]
Copy to clipboard
TWPCode: {QUOTE( )}text to be quoted{QUOTE} (Which literally again is an existing Wikiplugin and thus = WikiSyntax)


video:

Copy to clipboard
BBCode: [video=youtube;eOUq4Z6R7xI]http://www.youtube.com/watch?veOUq4Z6R7xI[/video]
Copy to clipboard
TWPCode: {YOUTUBE(movie=G1TuB5P4Ypw, width=>425,height=>350,quality=>high, allowFullScreen=y)}{YOUTUBE} other video formats: {WMV(movie=>URL to Movie, width=>xx,height=>xx,controller=>true|false,autoplay=>1|0)}{WMV} {MEDIAPLAYER(flv="http://flv-player.net/medias/KyodaiNoGilga.flv")/}


code / monospace:

Copy to clipboard
HTML: <pre>monospaced text</pre>
Copy to clipboard
BBCode: [code]monospaced text[/code]
Copy to clipboard
TWPCode: { CODE() }code text{ CODE } or {MONO()}text{MONO} (And again just existing Wikiplugin = WikiSyntax)


php highlighted text:

Copy to clipboard
BBCode: [php]php highlighted text[/php]
Copy to clipboard
TWPCode / WikiSyntax: { CODE (color=php) }php highlighted text{ CODE }


And so on


Show PHP error messages