Importando pagina de BBCodes do Elfmage [com autorização claro
] O artigo NAO está protegido para permitir que todos possam colaborar na tradução. Lembrando: para discutir o artigo clique no botão de DISCUSSÃO. Ainda: os links em vermelho significam que o artigo NÃO exista ainda no vB Brasil! ============================== ==================
NuWiki uses vBulletin's BBCode and WYSIWYG editor for creating and editing wiki content.
__FORCETOC__NuWiki extends vBulletin BBCode as follows:</P> </P>
[top]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'.
Código PHP:
[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:
[top]Adding Headlines
You can add headlines (headers) to a wiki article by using the following NuWiki BBCodes:
Código PHP:
[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:
Código:
==headline==
===sub-headline===
[top]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.
[top]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.
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).
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]
[top]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:
Código PHP:
[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:
Código PHP:
[showthreads=5]236[/showthreads]
Will produce:
NuWiki Templates use the following syntax:
Código PHP:
[template]Template Name[/template]
More information can be found in the
NuWiki Templates Article.
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:
The DIV BBCode allows greater flexibility in editing NuWiki Articles.
The syntax is as follows:
Código PHP:
[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
The SPAN BBCode complements the DIV BBcode for inline elements.
The syntax is as follows:
Código PHP:
[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
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]
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]
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:
Código PHP:
#REDIRECT [wiki]article title[/wiki]
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.