Drugs-Wiki Functionality Printable Version

https://drugs-forum.com/wiki/Drugs-Wiki_Functionality
This page is a chapter in Book Faq

This page has been seen 30,098 times.

    • Created by on
      Last updated by on

About Drugs-Wiki

The Drugs-Wiki is a collection of articles about Psychoactive substances, plants, animals, and various other drug related topics like Chemistry, Organizations, and more.

Articles in the Drugs-Wiki can be edited by any member of Drugs Forum, so long as they have reached a membership level of Silver or higher. Members can work together to help fill in sections or create new articles on any article of their choice. Edits to the Drugs-Wiki are moderated in order to prevent any abuse that may occur. Even if a member does not wish to edit a Drugs-Wiki article directly then they are welcome to suggest content or improvements in the discussion thread associated with each article.

The purpose of the Drugs-Wiki is to host high quality information on drug related topics, so that members and guests may refer to it for accurate and detailed information.

Drugs-Wiki syntax

Drugs-Wiki uses BBCode and WYSIWYG editor (What You See Is What You Get editor AKA forum editing box) for creating and editing wiki content.

With editing Wiki articles the BBcode editor toggle button in your editing box is very important. This is the button that looks like a page of a document on the right top of your editing box. It looks like this:
[​IMG]

When you click the toggle button the content of your wiki is transformed back into plain text, without links or other parsed content.

For example: after the toggle button is clicked the link

Drugs Forum home page

will look like:

[URL="http://www.drugs-forum.com/"]Drugs Forum home page[/URL]

Which makes it easier to edit.

Drugs Wiki extends BBCode as follows:
You can create links to Drugs Wiki Articles through the use of the WIKI bbcode. The following example will create a link to a Drugs Wiki Article named 'Drugs Wiki FAQ':
[wiki]Drugs Wiki FAQ[/wiki]

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

Example: nonexistent article

If you click a link to an nonexistent article, then you will be taken to the page where you can create the article.

Note: In most cases these links will be created automatically. You would only need to use this particular code if the autolink was not working to point to the correct page.

Adding Headlines

You can add headlines (headers) for sections and subsubsections to a wiki article by using the following BBCodes:
[h=1]Paragraph title[/h]
[h=2]Paragraph title[/h]
[h=3]Paragraph title[/h]
[h=4]Paragraph title[/h]

h1 is one level above h2, which is one level above h3, etc. This is how you get sections, subsections, etc.

Table of Contents

The tag [toc] can customize how an article's table of contents is displayed. Normally, the table of contents will appear below the first paragraph when there are at least four (4) sections created using [h]. It takes any number of pre-defined flags as a value, separated using |. This tag cannot be used in regular posts, and will only parse in wiki articles.

Usage [toc]value[/toc]
[toc]NO[/toc] prevents the default table of contents placement from occurring
[toc]FORCE[/toc] displays the table of contents even if there are too few sections, or even if the NO flag was used
[toc]BOOK[/toc] if the article belongs to a book, merges the other chapters into the table of contents
[toc]NONUM[/toc] removes the table of contents numbering, leaving only the bullet points
[toc][/toc] places a table of contents at the current position

Adding Images

Images used in wiki articles need to first be added to the media gallery.

When you want to add specific images from the media gallery into a wiki, go to the entry of the image in the media gallery and find the Share BB [IMG] Code:

For example: In the wiki images section you will find a picture named bbcodeedit. In the Share BB [IMG] Code: field, you will find the code to use: [IMG]https://drugs-forum.com/media/bbcodeedit.58300/full[/IMG]

You can add this by ether linking it through the edit box's image function or by pasting (or manually typing) the code at the location where you want the image to appear.

DIV BB code

The [div][/div] tag allows you to wrap content in a block container and apply styles to that container. Attributes and styles are separated from the content using a pipe character |

Usage: [div]value | your text[/div]

Example Usage: [div] style="border: 1px dotted green; background: yellow; color: brown; width: 100px; padding: 5px" | This box has a green dotted border, a yellow background, and brown text. [/div]

Example Output:

This box has a green dotted border, a yellow background, and brown text.

Book BB code

This Wiki Code can be used by clicking this button in the editor. The tag [book][/book] is used to create links to articles in the namespace called "Book". If the article does not exist, the link may appear in this color, and clicking the link will allow users to create the article. You can also use an optional parameter to "name" your link.

Usage: [book]value[/book]
[book=Option]value[/book]

Example Usage: [book]FAQ[/book]
[book=FAQ]Click here to view the article![/book]

Example Output:Click here to view the article!

Footnotes and referencing

We like to see referenced claims. For this you can use the [footnote] and [reflist] bb code. Generally any claim should be supported if it is not common knowledge, and when using someone else's ideas to support a claim requires that the idea be acknowledged with a reference.

Footnotes

This Wiki Code can be used by clicking this button in the editor.

[​IMG]

The tag [footnote] inserts a footnote into wiki articles. This will leave a numerical indication at the current position. In order to display the full value of the footnote, [reflist][/reflist] must also be used. If [reflist][/reflist] was used, clicking a footnote will highlight the footnote's full text, and the browser window will jump to it.

Providing an option for the footnote gives it a name. By using matching options, users can include the same footnote more than once without re-typing the value. This BB-Code will only parse in wiki articles, and it will not parse in regular forum posts.

Usage: [footnote]value[/footnote]
or
[footnote=Option]value[/footnote]

Example Usage:

This text requires citations.[footnote]Example1[/footnote]
This text requires citations.[footnote=sample]Example2[/footnote]
This text requires citations.[footnote=sample][/footnote] (Note: This is a footnote for the same reference as the previous one, indicated by it having the same option - sample. The value is not required to be repeated after the first usage of the tag as the option will grab the information from the first usage of the tag with that option.)

Example output:

This text requires citations.[1]
This text requires citations.[2]
This text requires citations.[2]

Showing reference list with reflist code

Reference lists can be inserted into articles using this button (normally they are the last section of an article):

[​IMG]

The tag [reflist] inserts a list of footnotes into wiki articles. This prints the full text of the values of footnotes into the list. Providing a numerical value will separate the footnotes into the same number of columns. This tag cannot be used in regular posts, and will only parse in wiki articles.

Usage without value:[reflist][/reflist]
Example usage without value:[reflist][/reflist]
Output without value:

  1. ^Example1
  2. ^ a bExample2


Usage with value:[reflist]value[/reflist]
Example usage with value:[reflist]2[/reflist]
Output with value:

    1. ^Example1
    1. ^ a bExample2

Horizontal line

If you want to insert a horizontal line into the article, then you can do this with the [hr] bb code.

Usage: [hr][/hr]
Example: [hr][/hr]

Result:

Wiki categories

You can put articles in categories, simply by adding a category to the category field on the Editing a page or create a page pages. In most cases the categories have already been created. Typing a few letters of the category you wish to add the article to will prompt you to select from a list of existing categories that are consistent with what you've typed. You can check what categories already exist by navigating to the categories section from the main wiki index.

New categories can be created by clicking the +New Category button, but please check with the staff first before doing so. If the information is too spread out across different categories it will make it more difficult to find it.

A page may be assigned more than one category if it is appropriate. For example, anxiety belongs to the categories Side Effects and Mental Disorders.

Synonyms and autolinks

In many cases an article name will have a synonym. For example: cannabis, weed, marijuana, marihuana all mean the same and these words should link to the same article. Synonyms can be added to articles or sections to enable redirects and autolinks to the correct articles.

Examples: 'How to write a post' will redirect and autolink to 'Forum posting functionality'.
'tagging' will redirect and autolink to the 'How to tag a thread' section of 'Forum posting functionality'.

Synonyms for articles are added to articles from the article options menu - Manage Synonyms.

[​IMG]

Synonyms can also be created for sections and subsections of an article. To do that, click on the magnet icon for the section or subsection you wish to add the synonym for. Note: Unlike articles, autolinks are not automatically created to sections and subsections unless a synonym is added for them.

[​IMG]

Drugs-Wiki Editing

Editing the Drugs wiki can be done by silver members and up. Contributing to the drugs wiki is a very good way to gain badges and trophies and increase member status for promotions.

Creating molecular images

Some of the members in the Wiki writers group are actively rendering molecular images for the Drugs Wiki. They need to be fitted with a watermark and copyright. This is how to do so:

Download the molecules and template you will work with

First you need the correct template (with watermarks and copyright) for the set of molecular images you are going to furnish. You also need the molecules. In this example, we will use the Benzodiazepine Template and Flunitrazepam molecule. All available templates can be found in the Molecular templates discussion in the Wiki Writers group and all available molecules as well.

Open the files in an image editing program

Here is a screen shot of Ulead PhotoImpact8, the image editing program in use. The benzo template is open on the left and the molecular image is open on the right.

Note that this molecule is transparent. If it is not, you will have to make it transparent. There are tutorials available for how to do this in Photo Shop and other image editing programs.

[​IMG]

Copy and paste the molecule on top of the template

The purpose of the template is to have a standard size and orientation for the contents of a molecular image.

3a. Right click the molecule. It should be highlighted. Select copy.

[​IMG]

3b. Right click the template. Select paste. It should appear in the template positioned in the top left corner.

[​IMG]

Merge all layers

Right now you have one transparent layer on top of another. The watermark is faint, but present in the background. You need to merge all layers and make the background opaque (white).

Press ctrl + shift + m. This will merge all layers.

[​IMG]

Add the name of the molecule

Select the option to add text in your image editor. In PhotoImpact this is the 'T' in the left hand toolbar. Select the following parameters:

Font: Arial
Size: 24 point
Color: black, hex #000000

[​IMG]

Position the name

The text name of the molecule needs to be positioned, in this case, at 10,288. This is 10 pixels from the left border, and 288 pixels from the top border. These numbers will be different for other templates. Please refer to Molecular templates for correct values.

[​IMG]

Merge all, save

Merge all the layers again to snap the molecular name to the background. Save, and you're done. Upload the image to the appropriate wiki.

[​IMG]

Drugs-Wiki books

Drugs Wiki supports the organization of multi-article content into collections named Drugs Wiki Books.

A Drugs Wiki Book is a collection of Drugs Wiki Articles. When a Drugs Wiki Article is added to a Drugs Wiki Book, it becomes a Chapter in that book.

The order of the chapters can be changed by editing the corresponding Drugs Wiki Book.

Removing a chapter from a Drugs Wiki Book will not remove the article, it will just remove it from the book.

If a Drugs Wiki article is part of a Drugs Wiki Book, navigation links to previous and next chapters are added at the top and bottom of the article and a link to the main book at the top, so the visitor can go to the Book Index or to the previous or next chapter.

A Drugs Wiki article can only be part of one Drugs Wiki Book.

You can add an article to a book by using the 'Add New Chapter' button shown on the book page. This button only appears if the user has permissions to edit books.