Προς το περιεχόμενο

Insomnia Wiki σύνταξη


Hal9000

Προτεινόμενες αναρτήσεις

Δημοσ.

.NuWiki uses vBulletin's BBCode and WYSIWYG editor for creating and editing wiki content.

 

__FORCETOC__

NuWiki extends vBulletin BBCode as follows:

 

WIKI BBCode: 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:

 

NuWiki%20-%20Shorthand%20Syntax.png

 

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:

>==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.

 

NuWiki%20-%20NOTOC.png

 

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

 

NuWiki%20-%20FORCETOC.png

 

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

 

NuWiki%20-%20TOC.png

 

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).

 

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:

>
[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:

>
[showthreads=5]236[/showthreads]

Will produce:

[showthreads=5]236[/showthreads]

 

TEMPLATE

NuWiki Templates use the following syntax:

>
[template]Template Name[/template]

More information can be found in the [wiki]NuWiki Templates[/wiki] 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 [wiki]NuWiki CSS Styles[/wiki].

 

For instance

 

[table=class:tborder]

[tr]

[td=class:alt2]first cell[/td]

[td=class:alt1]second cell[/td]

[/tr]

[/table]

 

 

Will produce:

 

[table=class:tborder]

[tr]

[td=class:alt2]first cell[/td]

[td=class:alt1]second cell[/td]

[/tr]

[/table]

 

DIV

The DIV BBCode allows greater flexibility in editing NuWiki Articles.

 

The syntax is as follows:

>
[div=css styles]content[/div]

Where css styles is a semi-colon (;) separated list of CSS Styles. Refer to the [wiki]NuWiki CSS Styles[/wiki] 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:[div=color: red; font-weight: bold; border: 2px dashed blue; background: #FFFFC0; float: right; width:50%; text-align:center]This is some text[/div]

 

 

SPAN

The SPAN BBCode complements the DIV BBcode for inline elements.

 

The syntax is as follows:

>
[span=css styles]content[/div]

Where css styles is a semi-colon (;) separated list of CSS Styles. Refer to the [wiki]NuWiki CSS Styles[/wiki] article for more information.

 

For instance:

 

[span=color: red; font-weight: bold; border: 2px dashed blue; background: #FFFFC0; text-align:center]This is some text[/span]

 

 

Will produce: [span=color: red; font-weight: bold; border: 2px dashed blue; background: #FFFFC0; text-align:center]This is some text[/span]

 

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:

 

>
#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.

Αρχειοθετημένο

Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.

  • Δημιουργία νέου...