Expressions (aka "wiki syntax")

Robert Plummer edited this page Feb 16, 2015 · 17 revisions

So you want to learn the nuts and bolt behind the WYSIWYG environment? In wikiLingo, this "wiki syntax" has a name, we call it: "expressions". There are several different types of expressions.

Basic Expressions:

Basic expressions generally do somewhat basic tasks, like: links, variables, styles, etc.

Bold

__Text__

Center

::Text::

Code

-+Text+-

Code with highlighting (using CodeMirror)

-+lang
Text
+-

Code with Highlighting example for csharp

-+csharp
class MyClass
{
}
+-

Color

~~Color:Text~~

Comment

/*Text*/

FutureLink-Protocol PastLink

@FLP(clipboard-data-here)
Text
@)

Header 1

!Text

Header 2

!!Text

Header 3

!!!Text

Header 4

!!!!Text

Header 5

!!!!!Text

Header 6

!!!!!!Text

Italic

''Text''

Not Parsed

-~Text~-

Link

[Address]
[Address|Description]

Link (WikiLink)

((Wiki Page Name))

Link Type (WikiLink)

(type(Wiki Page Name))

UnLink (Unline WikiLink)

))Wiki Page Name((

Lists (Unordered)

*Item
*Item
**Item at 2 indent
******************** Item at whatever indent I want ;)
**Item

Lists (Ordered)

#Item 1.1
#Item 1.2
##Item 2.1
####################Item N.1
##Item 2.2

Pre-Formatted Text

-/Text/-

Strike

--Text--

Table

||Row 1, Column 1|Row 1, Column 2
Row 2, Column 1| Row 2, Column 2||

Title Bar

-=Text=-

Underscore

===Text===

Variable

%VarName%

Plugins

Plugins are where the real power comes through in wikiLingo, they are a playground where JavaScript, CSS, HTML, and true raw programming meet. They can be used to do simple things like style text, or complex things, like server side or client side events. Please Note: supported quotes for parameter values are

  • single quote (example: parameter='value')
  • double quote (example: parameter="value")
  • backticks (example: parameter=`value`)
  • no quotes (example: parameter=value)

Inline Plugin

{plugin parameter1="value" parameter2="value"}

Standard Plugin

{PLUGIN(parameter1="value" parameter2="value")}
  plugin body
{PLUGIN}

Plugin Example

{TABS()}
  {TAB(title="Tab 1 Title")}
    I'm the content in tab 1 ;).
  {TAB}
  {TAB(title="Tab 2 Title")}
    I'm the content in tab 2 :P.
  {TAB}
{TABS}

Html

In wikiLingo, HTML is a first class language that can exist right along side standard expressions. HTML such as applet, iframe, link, scripts, & style are turned off by default to ensure platform safety (but these can easily be turned on using events and configurations).