WIKI.STYLING
Back to current versionRestore this version


In addition to the simple styles represented by the basic Wiki Markup language, This Wiki also allows you to put in your own styles, which are defined in the jspwiki.css Cascading Style Sheet file. These may vary from site to site, and it is up to the site administrator to define a style.

Basic Styling#

Following styles are supported by the standard file. The style starts with two percent signs %% and ends with two percent signs %%

Here is a comment-box

Special block markers#

These special block markers start with %%styling and end with /%

%%information

Use %%information ... %% for informational messages

%%warning

Use %%warning ... %% for warning blocks
%%error
Use %%error ... %% for error blocks or particularly important bits
%%quote
Use %%quote ... %% to quote a block of text that you want to stand out from the rest
and look very important

%%center

Use %%center ... %% to center your text

Preformatted text

If you include text within {{{ and }}} (each on its own line) the wiki engine will not apply any formatting ...
and will show the text exactly as you have typed it in a monospaced font (including line breaks)

%%prettify This will make the code within it (and within {{{ and }}}) nice-looking if it is in one of a variety of computer languages (also pre-formatted)

  IF p2k_pmgen.k_trace_level >= '8' THEN
     IF k_person_code IS NULL THEN
            p2k_ppgen.sperl(v_module_name,0,
            'Warning: You selected Exception Level '||p2k_pmgen.k_trace_level||
            ' for all employees.');
     END IF; -- k_person_code IS NULL THEN
  END IF; -- p2k_pmgen.k_trace_level > '8'

%%columns#

Columns work very well for most browsers - but not Internet Explorer.

Lorem Ipsum Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec dictum velit eget risus. Fusce ligula. Maecenas vitae velit eget odio pulvinar aliquet. Quisque ultricies mollis lorem. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent dapibus odio. Nullam sodales erat vel pede. Morbi ut turpis. Sed sed metus. Donec ut dui. Duis gravida risus non nibh.
Nullam Sodales Nullam sodales erat vel pede. Morbi ut turpis. Sed sed metus. Donec ut dui. Duis gravida risus non nibh. Aliquam erat volutpat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam dolor urna, tincidunt eget, posuere nec, suscipit quis, arcu. Proin pede risus, placerat id, tincidunt eu, consequat in, sem. Sed eu sapien. Vestibulum turpis. Sed fringilla odio vel eros. Mauris in libero sed sapien mattis pellentesque.

CSS styles#

While not in line with the keep it simple principle, CSS styles can be used inline for those special occasions when you really need to emphasize part of a page (i.e. changing fonts or font sizes, or colors, etc.), although it is not recommended.

Incuding one page on another#

[{InsertPage page='News'}]
will include the page referenced at this point.

Aliasing a Page#

Sometimes it's useful to have one page really mean some other page. For example, you might have a page called "Page Aliases", but you would also like people to have it available under "Aliases". In such a case, you can use a "page alias":

Put the following on the "PageAliases" -page:

[{SET alias='PageAlias'}]

Every time someone views the page "PageAliases", they will be automatically redirected to this page. This is very useful if you want to be able to use the irregular plural forms, for example. Normally, The WikiEngine does properly recognize English language plural forms of page names (i.e. if the page is called Concept, you can link to it as concept or concepts, but it's not smart enough to recognize certain forms, such as "aliases".

Obviously you cannot click on the "Edit this page" -link, because you are redirected every time you try to view a page. You can, however, edit the page directly by just writing Edit.jsp?page=pagename after the base URL.

Even more fancy things can be accomplished with WIKI.STYLING DYNAMICS