WikiIndex:Basic Wiki Formatting: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(cats)
(duplicate page, redirecting)
 
Line 1: Line 1:
Simple editing is one of the major benefits of using a wiki.  Users can edit pages without knowing HTML, and still use many of the formatting features of HTML.  Please feel free to experiment in the [[Sandbox]].
#REDIRECT [[Help:Editing]]
 
===Basic Text===
Most text does not require any special changes for wiki form.  A few basic rules are:
 
* Do not indent paragraphs.
* Leave a single blank line between paragraphs.
* To create a horizontal line, type 4 or more minus/dash/hyphen (-) characters.
* There is no need to encode HTML characters like <, >, or &.
 
===Bold, Italic and Fixed-width Text===
To mark text as <b>bold</b>, <i>italic</i> or <code>fixed-width</code>, you can use the HTML <nowiki><b></nowiki>, <nowiki><i></nowiki> and code tags. For example:
 
<nowiki><b> bold </b></nowiki>,
<nowiki><i> italic </i></nowiki>,
<nowiki><b> <i> bold+italic </i> </b></nowiki>.
 
Note that MediaWiki (like most Wikis) processes pages line-by-line, so if you want three bold lines of text, you will need to use three separate <nowiki><b>...</b></nowiki> tags.  Also note that unclosed or unmatched tags are not removed from the page.
 
MediaWiki also implements the old "quote style" of text formatting, which is used on several wikis.  Briefly:
 
<pre>
''Two single quotes are italics'',
'''three single quotes are bold''',
'''''five single quotes are bold and italic.'''''
</pre>
 
looks like:
 
''Two single quotes are italics'',
'''three single quotes are bold''',
'''''five single quotes are bold and italic.'''''
 
===Headings===
Headings are delimited by 1-6 equal signs (=). They basically correspond to HTML's &lt;h1> through &lt;h6> tags.
<pre>= Headline size 1 =
== Headline size 2 ==
=== Headline size 3 ===
==== Headline size 4 ====
===== Headline size 5 =====
====== Headline size 6 ======</pre>
 
===Lists===
Simple lists:
<pre>
* Text for a bulleted list item.
** Text for second-level list.
*** Text for third level, etc.
</pre>
 
...which looks like:
* Text for a bulleted list item.
** Text for second-level list.
*** Text for third level, etc.
 
Numbered lists:
<pre>
# Text for a numbered list item.
## Text for second-level list.
### Text for third level, etc.
## Another Text for the second level.
</pre>
 
...which looks like:
# Text for a numbered list item.
## Text for second-level list.
### Text for third level, etc.
## Another Text for the second level.
 
===Indented Text===
Simple indented text:
<pre>
: Text to be indented (quote-block)
:: Text indented more
::: Text indented to third level
</pre>
 
...which looks like:
: Text to be indented (quote-block)
:: Text indented more
::: Text indented to third level
 
===Preformatted Text===
Individual lines can be displayed as preformatted (fixed-width or "typewriter"-font) text by placing one or more spaces at the start of the line.  Other wiki formatting (like links) will be applied to this kind of preformatted text.
 
<nowiki>Additionally, multi-line sections can be marked as pre-formatted text using lines starting with <pre> (to start pre-formatted text), and </pre> (to end preformatted text).  The <pre> and </pre> tags are not displayed.  Wiki links and other formatting is not done within a preformatted section.  (If you want wiki formatting, use spaces at the start of the line instead of the <pre> and </pre> tags.)</nowiki>
 
For instance:
<pre>
Pre-formatted section here.  No other link
  or format processing
is done on pre-formatted sections.
For instance, [[Gazelle]] is not a link here.
</pre>
 
and:
  This is the starting-spaces version of
  preformatted text.  Note that links like
  [[Gazelle]] still work.
 
 
[[category:Help]]
[[category:WikiIndex]]
[[category:FAQ]]

Latest revision as of 21:37, 27 October 2006

Redirect to: