Go Back   NuHIT - SEO, Wiki, Forums > Documentation > NuWiki Documentation
 
 
Article Tools
  #1  

NuWiki Syntax

« Previous Chapter   NuWiki Manual
  Next Chapter »

NuWiki extends vBulletin's "BBCode", input via the WYSIWYG editor, for creating and editing wiki content.

NuWiki adds some new tags to the standard vB BBCode to support the features of the wiki. The NuWiki BBCode tags work as follows:

 

NuWiki Manual - Contents

Creating links to NuWiki Articles


You can create links to NuWiki Articles through the use of the WIKI bbcode. The following example will create a link to a NuWiki Article named 'NuWiki FAQ'.
[wiki]NuWiki FAQ[/wiki]

If the article to which the link points does not exist, the link is shown in red color.

In addition there is a 'short-hand' notation that can be used to create wiki links:



Adding Headlines

You can add headlines (headers) to a wiki article by using the following NuWiki BBCodes:


[h1]headline text[/h1]
[h2]headline text[/h2]
[h3]headline text[/h3]
[h4]headline text[/h4]
[h5]headline text[/h5]
[h6]headline text[/h6]
[h7]headline text[/h7]
Alternatively, you can enclose headline text with "=" sign for headlines; incrementing amount of the sings will give you sub-headline:
Code:
==headline==
===sub-headline===

Table of Content

If an article has 4 or more headlines, a table of content with links to the different sections is added at the top of the article.

Controlling the Table of Content location and visibility

NuWiki will add a Table of Content to an article whenever there are at least 4 headlines present. However, there are a couple of 'magic words' that can alter this default behavior:

The following magic word will hide the Table of Content regardless of the number of headlines present in the article.



The following magic word will instruct NuWiki to show the Table of Content if at least there is one headline in the article.



If you want to change the default location of the Table of Content, use the following magic word to indicate its new location.



AUTOLINK

Similarly to the WIKI BBCode, the AUTOLINK BBCode can be used to create links to existing or yet to be created NuWiki Articles. The difference is that the AUTOLINK BBCode produces a NuWiki Auto-Link with all the corresponding functionality (e.g. NuWiki Auto-Link Previews, with "read more" links, etc).

use NOPARSE to control AUTOLINK

AUTOLINK will skip over anything inside "NOPARSE" bbcode tags.

It may be useful to have autolink skip over a matching word or phrase; for example, to preserve the visual formatting in an article title or section heading. For example:
Code:
Use [noparse]around a phrase[/noparse] to hide it from AUTOLINK.

BOOK

The BOOK BBCode creates a link to a NuWiki Book. If the book doesn't exist, a link to the 'All Books' page is created.

The syntax for BOOK is as follows:


[book]book title[/book]


SHOWTHREADS

Using the SHOWTHREADS BBCode will add a list of the latest thread from a forum into a NuWiki Article.

The syntax for SHOWTHREADS is as follows:
PHP Code:
[showthreads=count]forumid[/showthreads
Where:
  • count is the number of threads to list, if not specified, 10 threads are shown.
  • forumid is the forum id from where to list threads, if not specified, the latest thread in the forum are shown.
Here is an example:
PHP Code:
[showthreads=5]236[/showthreads
Will produce:
 
  Thread / Thread Starter Last Post Replies Views
 
dwessell
10-09-2008 07:37 PM
by pegasus Go to last post
12 436
 
Alfa1
08-16-2008 12:25 PM
by Alfa1 Go to last post
0 206
 
m-hoefti
07-10-2008 10:54 AM
by m-hoefti Go to last post
5 243
 
assar
06-25-2008 12:11 AM
by pegasus Go to last post
43 1,752
 
EricDesMontagnes
03-26-2008 09:34 AM
by Alfa1 Go to last post
8 563


TEMPLATE

NuWiki Templates use the following syntax:
PHP Code:
[template]Template Name[/template
More information can be found in the NuWiki Templates Article.

TABLE

The TABLE BBCode enables the creation of style rich tables in your NuWiki Articles.

The syntax is as follows:

[table]
[tr]
[td]first cell[/td]
[td]second cell[/td]
[/tr]
[/table]


Each of the opening elements can have a combination of standard NuWiki CSS Styles.

For instance

[table=class:tborder]
[tr]
[td=class:alt2]first cell[/td]
[td=class:alt1]second cell[/td]
[/tr]
[/table]


Will produce:

first cellsecond cell

DIV

The DIV BBCode allows greater flexibility in editing NuWiki Articles.

The syntax is as follows:
PHP Code:
[div=css styles]content[/div
Where css styles is a semi-colon ( separated list of CSS Styles. Refer to the NuWiki CSS Styles article for more information.

For instance:

[div=color: red; font-weight: bold; border: 2px dashed blue; background: #FFFFC0; float: right; width:50%; text-align:center]This is some text[/div]


Will produce: 
This is some text


SPAN

The SPAN BBCode complements the DIV BBcode for inline elements.

The syntax is as follows:
PHP Code:
[span=css styles]content[/div]
[/
span

[span=color: red; font-weight: bold; border: 2px dashed blue; background: #FFFFC0; text-align:center]This is some text[span=css styles]Where [b][i]css styles[/i][/b] is a semi-colon (;) separated list of CSS Styles. Refer to the [wiki]NuWiki CSS Styles[/wiki] article for more information.

For instance:
[/span]


Will produce: This is some text

FOOTNOTE

The FOOTNOTE BBCode is used to add footnotes to a NuWiki Article. Whenever a FOOTNOTE BBCode is found, it is replaced by a footnote index enclosed in square brackets (e.g. [3]), which links to the corresponding footnote that is listed at the end of the article.

The Syntax for the FOOTNOTE BBCode is:


[footnote]footnote text[/footnote]


KEYWORDS

The KEYWORDS BBCode can be used to specify extra keywords related to a NuWiki Article. These keywords are displayed in a smaller font, and somewhat grayed out. You can customize the look of keywords by changing the CSS styles for the class .nuwiki_keywords


[keywords]keyword list[/keywords]


#REDIRECT


NuWiki supports the concept of Article Redirects. Having an article which contains a #REDIRECT followed with a wiki link, will instruct NuWiki to redirect to the viewer to the new article.

The syntax is as follows:

PHP Code:
#REDIRECT [wiki]article title[/wiki] 

FIELD

The FIELD BBCode allows the use of custom thread fields within the text of a NuWiki Article. Only the fields specified in the NuWiki's Admin CP Setting named 'NuWiki Custom Fields Map' can be used.

The syntax for the FIELD BBCode is:


[field]field friendly name[/field]


Notice that the setting 'NuWiki Custom Fields Map' contains a mapping between database field names, and the friendly names that are used with the FIELD BBCode.

« Previous Chapter   NuWiki Manual
  Next Chapter »

Contributors: XXP, ElfMage, aSceT, kafi
Created by ElfMage, 04-20-2007 at 11:07 AM
Last edited by XXP, 12-24-2007 at 12:25 AM
2 Comments , 6756 Views
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Tools

Posting Rules
You may not create new articles
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
vBulletin & MW user group mapping syntax guvner vbWiki Pro - Pre-sales and feedback 9 10-27-2006 06:28 PM


All times are GMT -4. The time now is 10:02 AM.