Myth-Weavers

Myth-Weavers (http://www.myth-weavers.com/forumhome.php)
-   Archive (http://www.myth-weavers.com/forumdisplay.php?f=328)
-   -   MW Wiki vBCode Reference Guide (http://www.myth-weavers.com/showthread.php?t=26635)

Kaz Dec 15 '07 3:37pm

MW Wiki vBCode Reference Guide
 
[h1] WIKI vBCode: Creating Links in the MW Wiki[/h1]
This reference guide will give all you need to know in order to link, manage, and format your own MW Wiki articles. The better formatting you can achieve, the easier for others to read, and for your to edit later on. Please note that
all but the old table vBcode
all existing vBCodes will function in the wiki articles (Even dice rollers!).

[h2] WIKI: Creating A Wiki Link[/h2]You can create links to any of the MW Wiki articles with the WIKI code. The following example will create a link to an article named MW Wiki FAQ.
Code:

[WIKI]MW Wiki FAQ[/WIKI]
Result:

[WIKI]MW Wiki FAQ[/WIKI]

If the article to which the link points does not exist, the text will be in red.

In addition, there is also another way to create a link in the MW Wiki:
Code:

[[MW Wiki FAQ]]

[h2] Adding Headlines[/h2]You can add headlines (headers) to a wiki article by using the following Wiki codes:
Code:

[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=
==subheadline==
===more subheadline===


[h2] Table of Content[/h2]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.


[h2] Controlling the Table of Content location and visibility[/h2]MW Wiki 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 behaviour:

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

http://www.nuhit.com/nh/images/nuwik...0-%20NOTOC.png

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

http://www.nuhit.com/nh/images/nuwik...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.

http://www.nuhit.com/nh/images/nuwik...%20-%20TOC.png

Please note that the NOPARSE vBCode does not function with these magic words.


[h2] BOOK[/h2]The BOOK vBCode creates a link to a MW Wiki Book. If the book doesn't exist, a link to the 'All Books' page is created.

The syntax for BOOK is as follows:
Code:

[book]book title[/book]
Books are useful ways of organising multiple articles which have a common theme. Simply click on the add to book link at the bottom of the page to add the article to a book. Some advantages of the book system
1) A book can contain both protected and unprotected pages
2) You can edit the book to re-organise the chapters
3) the table of contents for a book will automatically include all the other chapters as well.

Note for point 3: Because vbulletin caches recently crated pages for speed, it means that if an article is added to a book the full table of contents will not be generated (until the page is a week old). You can speed this proces up by editing a page, and simply adding or deleting a blank space or line. THis will cause the page to be re-parsed. Note the same goes for all the other chapters in a book, a new table of contents will not be generated for each chapter until it expires from the cache.

[h2] SHOWTHREADS[/h2]Using the SHOWTHREADS vBCode will add a list of the latest thread from a forum into a MW Wiki Article.

The syntax for SHOWTHREADS is as follows:
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:
Code:

[showthreads=5]6[/showthreads]
Will produce:
[showthreads=5]6[/showthreads]


[h2] TEMPLATE[/h2]MW Wiki Templates use the following syntax:
Code:

[template]Template Name[/template]

[h2] TABLE[/h2]The TABLE vBCode enables the creation of style rich tables in your MW Wiki Articles.

The syntax is as follows:
Code:

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

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

For instance
Code:

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

Will produce:



[h2] DIV[/h2]The DIV vBCode allows greater flexibility in editing MW Wiki Articles.

The syntax is as follows:
Code:

[div=css styles]content[/div]
Where css styles is a semi-colon ( ; ) separated list of CSS Styles.

For instance:

Code:

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


[h2] SPAN[/h2]The SPAN vBCode complements the DIV vBcode for inline elements.

The syntax is as follows:
Code:

[span=css styles]content[/span]
Where css styles is a semi-colon ( ; ) separated list of CSS Styles.

For example:

Code:

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


[h2] FOOTNOTE[/h2]The FOOTNOTE vBCode is used to add footnotes to a MW Wiki Article. Whenever a FOOTNOTE vBCode 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:
Code:

[footnote]footnote text[/footnote]

[h2] KEYWORDS[/h2]
The KEYWORDS vBCode can be used to specify extra keywords related to a MW Wiki Article. These keywords are displayed in a smaller font, and somewhat greyed out.
Code:

[keywords]keyword list[/keywords]

[h2] #REDIRECT[/h2]MW Wiki supports the concept of Article Redirects. Having an article which contains a #REDIRECT followed with a wiki link, will instruct MW Wiki to redirect to the viewer to the new article.

The syntax is as follows:
Code:

#REDIRECT [wiki]article title[/wiki]

[h2] FIELD[/h2]The FIELD vBCode allows the use of custom thread fields within the text of a MW Wiki Article.

The syntax for the FIELD BBCode is:
Code:

[field]field friendly name[/field]

Plugsy Dec 15 '07 4:09pm

Testing discussion

EDIT: confuse now for a minute

Kaz Dec 15 '07 4:12pm

It works. ;)


All times are GMT +1. The time now is 6:45am.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2014, vBulletin Solutions, Inc.