User:Buggie111/Adopt/Wikicode

In Wikipedia, not all text is WYSIWYG (What you see is what you get). Most of the special mark up, (i.e. bolding, italics, etc.) are written via wikicode. More complicated stuff is also via wikicode, but we'll cover the easy stuff first.

Sections and Spacing
To write anything comprehensible, you have to divide your writing into sections. This is easily done in Wikipedia by putting = around both sides of your section. Usually, you put at least two = at each end of the section title. 1 "equals" is rarely used. Do not skip levels (from 2 to 4), it messes up the code. To create a horizontal line, use. To put in a line break, use

Table of contents
By default, pages generate table of contents when they have at least 4 sections. To add one when you have three sections or less, put in. Likewise, to remove one, put in.

Center text
Template center uses the same markup. To center a table, see Help:Table.

Subscripts and superscripts

 * The Manual of Style prefers the x1 format.
 * The latter methods of sub/superscripting cannot be used in the most general context, as they rely on Unicode support which may not be present on all users' machines. For the 1-2-3 superscripts, it is nevertheless preferred when possible (as with units of measurement) because most browsers have an easier time formatting lines with it.

Mathematical characters

 * See also WikiProject Mathematics and TeX.

Mathematical formulae

 * Formulae that include mathematical letters, like $x$, and operators like  should not use the plain letter  . See math font formatting. For a comprehensive set of symbols, and comparison between  tags and the math template see section TeX vs HTML.


 * The tag typesets using LaTeX markup, which may render as an image or as HTML, depending on environmental settings. The   tag is best for the complex formula on its own line in an image format. If you use this tag to put a formula in the line with text, put it in the nowrap template.


 * The math template uses HTML, and will size-match a serif font, and will also prevent line-wrap. All templates are sensitive to the  sign, so remember to replace   with = in template input. Use wikimarkup   and   inside the math template, as well other HTML entities. The math template is best for typeset formulas in line with the text.

Spacing in simple math formulae

 * Using   to prevent linebreak is not needed; the  template will prevent line breaks anyway; you can use   if you need an explicit line break inside a formula.

Complicated formulae

 * See Help:Displaying a formula for how to use &lt;math>.
 * A formula displayed on a line by itself should probably be indented by using the colon character.

Links
Linking between Wikipedia articles is simple. Just add and  to either end of the article's title. To customize the title, add | in between the title and the ]], then add your custom title. Links outside of Wikipedia are created by adding a single bracket to either side. To add a custom title to these links, space between the end of the url and the end bracket, then add your text. Links with incorrect titles will become red.

Link to a section of a page

 * The part after the number sign (#) must match a section heading on the page. Matches must be exact in terms of spelling, case, and punctuation. Links to non-existent sections are not broken; they are treated as links to the top of the page.
 * Include "| link title" to create a stylish (piped) link title.
 * If sections have the same title, add a number to link to any but the first. goes to the third section named "Example section". You can use the pipe and retype the section title to display the text without the # symbol.

Create page link

 * To create a new page:
 * Create a link to it on some other (related) page.
 * Save that page.
 * Click on the link you just made. The new page will open for editing.
 * For more information, see starting an article and check out Wikipedia's naming conventions.
 * Please do not create a new article without linking to it from at least one other article.

Redirects

 * Redirect one article title to another by placing a directive like the one shown to the right on the first line of the article (such as at a page titled "USA").
 * It is possible to redirect to a section. For example, a redirect to United States will redirect to the History section of the United States page, if it exists.

Link to the same article in another language (interlanguage links)
"NOTE: To create an inline link (a clickable link within the text) to any foreign language article, see Inline interlanguage links and consider the usage notes."
 * To link to a corresponding page in another language, use the form: language code:Foreign Title.
 * It is recommended interlanguage links be placed at the very end of the article.
 * Interlanguage links are not visible within the formatted article, but instead appear as language links on the sidebar (to the left) under the menu section "languages".
 * For further help, please see Interlanguage links and the Complete list of language wikis available.

Interwiki link

 * Link to any page on other Wikimedia wikis.
 * Note that interwiki links use the internal link style.
 * See Interwiki_map for the list of shortcuts; if the site you want to link to is not on the list, use an external link (see below)
 * See also Wikimedia sister projects.

Categories

 * To put an article in a category, place a link like the one to the right anywhere in the article. As with interlanguage links, placing these links at the end of the edit box is recommended.
 * To link to a category page without putting the article into the category, use a colon prefix (":Category") in the link.

Images
Only images that have been uploaded to Wikipedia can be used. To upload images, use the upload page. You can find the uploaded image on the image list.

See the Wikipedia's image use policy as a guideline used on Wikipedia.

For further help on images, including some more versatile abilities, see the picture tutorial.

Tables
There are two ways to build tables:
 * In special wiki-markup (see Table).
 * Using HTML elements: &lt;table&gt;, &lt;tr&gt;, &lt;td&gt; or &lt;th&gt;.

See also When tables are appropriate.

References and citing sources
Making a reference citing a printed or online source can be accomplished by using the ref tag. Inside the reference tag details about the reference are added. You can add additional attributes to add detail about the source and reference, a pipe precedes each reference, each attribute goes inside the cite portion of the tag.

Linking to old revisions of pages, diffs, and specific history pages

 * External link function is used for these.
 * Open an old revision or diff and copy the URL from the address bar, pasting it where you want it.

Nowiki
In some instances, we don't want our markup to be parsed as markup, so we enclose it in  tags. is a parser tag that causes the included content to not be parsed as wikimarkup, except for HTML entities. It is useful in documentation to display markup.

A singular can be used to break wikimarkup.

Variables
Some "Magic Words" can be used to add in information like the date, month, etc. They are as follows:

Assignment
Replace "USER" with your username.