Editing – Help

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<br/>" to "<br>")
Tag: New redirect
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Bohemia_Interactive_Community:Formatting]]
===Examples===
===Examples===
{| border="1" cellpadding="2" cellspacing="0"
{| border="1" cellpadding="2" cellspacing="0"
Line 27: Line 28:
|
|
<pre><nowiki>
<pre><nowiki>
==New section==
== New section ==
===Subsection===
=== Subsection ===
====Sub-subsection====
==== Sub-subsection ====
</nowiki></pre>
</nowiki></pre>
|- valign="top"
|- valign="top"
Line 123: Line 124:




===Links and URLs===
=== Links and URLs ===
{| border="1" cellpadding="2" cellspacing="0"  
{| border="1" cellpadding="2" cellspacing="0"  
|- style="width=100%"
|- style="width=100%"
Line 154: Line 155:
Three ways to link to external (non-wiki) sources:
Three ways to link to external (non-wiki) sources:
# Bare URL: http://www.armedassault.com/ (bad style)
# Bare URL: http://www.armedassault.com/ (bad style)
# Unnamed link: [http://www.armedassault.com/] (only used within article body for footnotes)
# Unnamed link: {{Link|http://www.armedassault.com/}} (only used within article body for footnotes)
# Named link: [http://www.nupedia.com Nupedia]
# Named link: [http://www.nupedia.com Nupedia]
|
|
Line 165: Line 166:
</nowiki></pre>
</nowiki></pre>
<pre><nowiki>
<pre><nowiki>
[http://www.armedassault.com/]
{{Link|http://www.armedassault.com/}}
</nowiki></pre>
</nowiki></pre>
<pre><nowiki>
<pre><nowiki>
Line 172: Line 173:
|}
|}


===Images===
=== Images ===
Only images that have been uploaded to Wikipedia can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]].
Only images that have been uploaded to Wikipedia can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]].


Line 209: Line 210:




===Character formatting===
=== Character formatting ===
{| border="1" cellpadding="2" cellspacing="0"
{| border="1" cellpadding="2" cellspacing="0"
|- valign="top"
|- valign="top"
Line 226: Line 227:
|
|
A typewriter font for <tt>monospace text</tt>
A typewriter font for <tt>monospace text</tt>
or for computer code: <code>int main()</code>
or for computer code: <code style="display: block">int main()</code>


* For semantic reasons, using <code>&lt;code&gt;</code> where applicable is preferable to using <code>&lt;tt&gt;</code>.
* For semantic reasons, using <code style="display: block">&lt;code&gt;</code> where applicable is preferable to using <code style="display: block">&lt;tt&gt;</code>.
|
|
<pre><nowiki>
<pre><nowiki>
A typewriter font for <tt>monospace text</tt>
A typewriter font for <tt>monospace text</tt>
or for computer code: <code>int main()</code>
or for computer code: <code style="display: block">int main()</code>
</nowiki></pre>
</nowiki></pre>
|- valign="top"
|- valign="top"
Line 305: Line 306:




===No or limited formatting - showing exactly what is being typed===
=== 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!
A few different kinds of formatting will tell the Wiki to display things as you typed them - what you see, is what you get!

Latest revision as of 10:51, 26 November 2023

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;