Voltar   vBulletin Brasil » Wiki :: vB Brasil » Wiki » W: Como fazer

Notícias

W: Como fazer Conhecendo o Wiki

 
 
LinkBack Article Tools Modos de Exibição
  #1  

9b W: Como fazer

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:

Click the image to open in full size.

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

Click the image to open in full size.

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

Click the image to open in full size.

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

Click the image to open in full size.

[top]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).

[top]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]


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

[top]TEMPLATE


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

[top]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

[top]DIV


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


[top]SPAN


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

[top]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]


[top]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]


[top]#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:

Código PHP:
#REDIRECT [wiki]article title[/wiki] 

[top]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.


Contributors:
Created by beduino, 10-07-2007 at 01:42
Last edited by beduino, 10-07-2007 at 01:46
0 Comments , 776 Views

Articles in W: Como fazer
There are 3 articles in W: Como fazer.

C

P

W

 

Favoritos


Usuários ativos no Tópico: 1 (0 Membros e 1 Visitantes)
 
Article Tools
Modos de Exibição

Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não
Trackbacks are Sim
Pingbacks are Sim
Refbacks are Sim
Ir para...

Tópicos Similares
Tópico Tópico Iniciado Por Fórum Respostas Última Mensagem
Como Fazer downcool vB: Suporte em Geral 1 02-04-2008 18:31
Como fazer??? Entrancer vB: Como fazer 2 10-02-2008 09:41
como fazer? Pereba Sangrante vB: Dúvidas nas Configurações 3 07-02-2008 23:04
Como fazer? sonekas vB: Como fazer 1 18-07-2007 22:33
RSS tem como fazer ? Ganondorf vB: Como fazer 6 31-08-2006 19:43

Advertisement
Booyah
   


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107