Editing – Help

From Bohemia Interactive Community
Redirect page
Jump to navigation Jump to search

Examples

What it looks like What you type

Start your sections as follows:

New section
Subsection
Sub-subsection
  • Start with a second-level heading (==); don't use first-level headings (=).
  • If possible, place subsections in an appropriate order.
  • A table of contents will automatically be added to an article that has four or more sections.
== New section ==
=== Subsection ===
==== Sub-subsection ====

A single newline generally has no effect on the layout. These can be used to separate sentences within a paragraph. Some editors find that this aids editing and improves the function diff (used internally to compare different versions of a page).

But an empty line starts a new paragraph.

  • When used in a list, a newline does affect the layout (see below).
A single newline
generally has no effect on the layout. 
These can be used to separate
sentences within a paragraph.
Some editors find that this aids editing
and improves the function ''diff'' 
(used internally to compare
different versions of a page).

But an empty line
starts a new paragraph.
  • It's easy to create a list:
    • Start every line with a star (asterisk]]).
      • More stars means deeper levels.
        • A newline in a list

marks the end of a list item.

  • An empty line starts a new list.
* It's easy to create a list:
** Start every line with a star.
*** More stars means deeper levels.
**** A newline in a list
marks the end of a list item.

* An empty line starts a new list.
  1. Numbered lists are also good
    1. very organized
    2. easy to follow
      1. easier still
# Numbered lists are also good
## very organized
## easy to follow
### easier still
Definition list
list of definitions
item
the item's definition
another item
the other item's definition
  • Begin with a semicolon. One item per line; a newline can appear before the colon, but using a space before the colon improves parsing.
; Definition list : list of definitions
; item : the item's definition
; another item
: the other item's definition
A colon indents a line or paragraph.

A empty line starts a new paragraph.

: A colon indents a line or paragraph.

A empty line starts a new paragraph.


Links and URLs

What it looks like What you type

A link to another article on the same Wiki:

To display the content of variables, use the command format.

To display the content of variables, use the command [[format]].

To use a different caption for the link enter the url first, then a vertical bar, and then the caption:

To display the content of variables, use the format command.

To display the content of variables, use the [[format|format command]].

Single square brackets indicate an external link. Note the use of a space (not a pipe) to separate the URL from the link text in the "named" version:

Three ways to link to external (non-wiki) sources:

  1. Bare URL: http://www.armedassault.com/ (bad style)
  2. Unnamed link: -dead link- (only used within article body for footnotes)
  3. Named link: Nupedia



http://www.armedassault.com/ 
{{Link|http://www.armedassault.com/}} 
[http://www.nupedia.com Nupedia]

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.

What it looks like What you type
A picture:

Biki.png

A picture: 
[[Image:Biki.png]]
Floating to the right side of the page and with a caption:
Bohemia Interactive Community

Floating to the right side of the page
and with a caption:
[[Image:Biki.png|frame|Bohemia Interactive Community]]
  • The frame tag automatically floats the image right.
  • The caption is also used as alternate text.
Floating to the right side of the page without a caption:
Bohemia Interactive Community
Floating to the right side of the page
''without'' a caption:
[[Image:Biki.png|right|Bohemia Interactive Community]]
A picture resized to 30 pixels...

Biki.png

A picture resized to 30 pixels...
[[Image:Biki.png|30 px]]


Character formatting

What it looks like What you type

Emphasized text
Strong emphasis
Even stronger emphasis

''Emphasized text''
'''Strong emphasis'''
'''''Even stronger emphasis'''''

A typewriter font for monospace text or for computer code: int main()

  • For semantic reasons, using <code> where applicable is preferable to using <tt>.
A typewriter font for <tt>monospace text</tt>
or for computer code: <code style="display: block">int main()</code>

You can use small text for captions.

You can use <small>small text</small> for captions.

Better stay away from big text, unless it's within small text.

Better stay away from <big>big text</big>, unless
<small> it's <big>within</big> small</small> text.

You can strike out deleted material and underline new material.

You can also mark deleted material and inserted material using logical markup. For backwards compatibility better combine this potentially ignored new logical with the old physical markup.

  • When editing regular Wikipedia articles, just make your changes and do not mark them up in any special way.
  • When editing your own previous remarks in talk pages, it is sometimes appropriate to mark up deleted or inserted material.
You can <s>strike out deleted material</s>
and <u>underline new material</u>.

You can also mark <del>deleted material</del> and
<ins>inserted material</ins> using logical markup.
For backwards compatibility better combine this
potentially ignored new <del>logical</del> with
the old <s><del>physical</del></s> markup.

Suppressing interpretation of markup:
Link → (''to'') the [[Wikipedia FAQ]]

  • Used to show literal data that would otherwise have special meaning.
  • Escape all wiki markup, including that which looks like HTML tags.
  • Does not escape HTML character references.
  • To escape HTML character references such as &rarr; use &amp;rarr;


<nowiki>Link &rarr; (''to'') 
the [[Wikipedia FAQ]]</nowiki>

Commenting page source:
not shown when viewing page

  • Used to leave comments in a page for future editors.
  • Note that most comments should go on the appropriate Talk page.


<!-- comment here -->


No or limited formatting - showing exactly what is being typed

A few different kinds of formatting will tell the Wiki to display things as you typed them - what you see, is what you get!

What it looks like What you type
<nowiki> tags

The nowiki tag ignores [[Wiki]] ''markup''. It reformats text by removing newlines and multiple spaces. It still interprets special characters: →

<nowiki>
The nowiki tag ignores [[Wiki]] ''markup''.
It reformats text by removing newlines    and multiple spaces.
It still interprets special characters: &rarr;
</nowiki>
<pre> tags
The pre tag ignores [[Wiki]] ''markup''.
It also doesn't     reformat text.
It still interprets special characters: →
<pre>
The pre tag ignores [[Wiki]] ''markup''.
It also doesn't     reformat text.
It still interprets special characters: &rarr;
</pre>
Leading spaces

Leading spaces are another way to preserve formatting.

Putting a space at the beginning of each line
stops the text   from being reformatted. It still
interprets Wiki markup and special
characters: →
Leading spaces are another way to preserve formatting.

 Putting a space at the beginning of each line
 stops the text   from being reformatted. It still
 interprets [[Wiki]] ''markup'' and special
 characters: &rarr;