Difference between revisions of "Formatting Text"

From the Family Tree Forum Reference Library
m
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Suggestions for Authoring Conventions'''
+
[[Category:Help|Text]]
 +
__NOEDITSECTION__
 +
[[image:style7.jpg]]
 +
__TOC__
  
Alignment: Align to left<br>
+
==Text formatting ==
 +
{| width="100%" class="wikitable"
 +
|----- valign="top"
 +
! width="50%" | What it looks like
 +
! width="50%" | What one types
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
''Italic''
  
Images: Align to right, caption below <br>
+
'''Bold'''
  
 +
'''''Italic and bold'''''
 +
| style="padding:3px;padding-left:5pxf" bgcolor=#efefff |
 +
<nowiki>''Italic''</nowiki>
  
Page structure: Body first, links below<br>
+
<nowiki>'''Bold'''</nowiki>
  
 +
<nowiki>'''''Italic and bold'''''</nowiki>
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
You can <strike>strike out</strike> and <u>underline</u> words.
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
You can <nowiki><strike>strike out</strike>
 +
and <u>underline</u></nowiki> words.
 +
|}
  
* (*) bullet point for hyperlink<br>
+
==Sectioning==
5 x = for section headings<br>
+
{| width="100%" class="wikitable"
6 x = for sub section headings<br>
+
|----- valign="top"
 +
! width="50%" | What it looks like
 +
! width="50%" | What one types
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
 
 +
==New section==
 +
===Subsection===
 +
====Sub-subsection====
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
==New section==
 +
===Subsection===
 +
====Sub-subsection====
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
One single '''line break'''
 +
is ignored.
 +
 
 +
But a single empty line creates
 +
 
 +
a new break.
 +
 
 +
A line break can<br/>be forced.
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
<pre>
 +
One single <nowiki>'''line break'''</nowiki>
 +
is ignored.
 +
 
 +
But a single empty line creates
 +
 
 +
a new break.
 +
 
 +
A line break can<nowiki><br/></nowiki>be forced.
 +
</pre>
 +
|}
 +
 
 +
==Various sorts of lists==
 +
{| width="100%" class="wikitable"
 +
|----- valign="top"
 +
! width="50%" | What it looks like
 +
! width="50%" | What one types
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
* Lists are easy to do:
 +
** Start every line with a star.
 +
*** More stars means deeper levels.
 +
**** A newline in a list
 +
marks the end of a list item.
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
* Lists are easy to do:
 +
** Start every line with a star.
 +
*** More stars means deeper levels.
 +
**** A newline in a list
 +
marks the end of a list item.
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
# Numbered lists are also good
 +
## very organized
 +
## easy to follow
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
# Numbered lists are also good
 +
## very organized
 +
## easy to follow
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
; Definition list : list of definitions
 +
; item : the item's definition
 +
; another item
 +
: the other item's definition
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
; Definition list : list of definitions
 +
; item : the item's definition
 +
; another item
 +
: the other item's definition
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
: A colon indents
 +
::a line or paragraph.
 +
A manual newline starts a new paragraph.
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
: A colon indents
 +
::a line or paragraph.
 +
A manual newline starts a new paragraph.
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
* You can even do mixed lists
 +
*# and nest them
 +
*#* like this
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
* You can even do mixed lists
 +
*# and nest them
 +
*#* like this
 +
|}
 +
 
 +
==Preformatted Text==
 +
{| width="100%" class="wikitable"
 +
|----- valign="top"
 +
! width="50%" | What it looks like
 +
! width="50%" | What one types
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
IF a line starts with a space THEN
 +
  it will be formatted exactly
 +
    as typed;
 +
  in a fixed-width font;
 +
  lines won't wrap;
 +
ENDIF
 +
this is useful for:
 +
  * pasting preformatted text;
 +
  * algorithm descriptions;
 +
  * program source code;
 +
  * [[ASCII art]];
 +
  * chemical structures;
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
IF a line starts with a space THEN
 +
  it will be formatted exactly
 +
    as typed;
 +
  in a fixed-width font;
 +
  lines won't wrap;
 +
ENDIF
 +
this is useful for:
 +
  * pasting preformatted text;
 +
  * algorithm descriptions;
 +
  * program source code;
 +
  * <nowiki>[[ASCII art]]</nowiki>;
 +
  * chemical structures;
 +
|}
 +
 
 +
==Alignment==
 +
{| width="100%" class="wikitable"
 +
|----- valign="top"
 +
! width="50%" | What it looks like
 +
! width="50%" | What one types
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
<div align="center">'''Text align: center'''.</div>
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
<nowiki><div align="center"><nowiki>'''Text align: center'''</nowiki>.</div></nowiki>
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
<div align="right">'''Text align: right'''.</div>
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
<nowiki><div align="right"><nowiki>'''Text align: right'''<nowiki>.</div></nowiki>
 +
|}
 +
 
 +
==Miscellaneous==
 +
{| width="100%" class="wikitable"
 +
|----- valign="top"
 +
! width="50%" | What it looks like
 +
! width="50%" | What one types
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
A '''horizontal line''': Text before
 
----
 
----
separate sections with horizontal line
+
and after.
<hr>
+
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
A <nowiki>'''horizontal line'''</nowiki>: Text before
 +
----
 +
and after.
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
'''Comments''' <br/>
 +
Some text and a <!-- hidden comment -->
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
<nowiki>'''Comments''' <br/></nowiki>
 +
Some text and a <nowiki><!-- hidden comment --></nowiki>
 +
|----- valign="top"
 +
| style="padding:3px" |
 +
<nowiki>This [[wiki syntax]] is [[Ignore|ignored]]</nowiki>
 +
| style="padding:3px;padding-left:5px" bgcolor=#efefff |
 +
<pre><nowiki>
 +
<nowiki>This [[wiki syntax]] is [[Ignore|ignored]]</nowiki>
 +
</nowiki></pre>
 +
|}
 +
 
  
 +
==Other Help Pages==
  
==header==
+
[[image:minibad.jpg]] '''[[:Category:Help|The Wiki Guide]]'''

Latest revision as of 09:04, 3 May 2008


Style7.jpg

Text formatting

What it looks like What one types

Italic

Bold

Italic and bold

''Italic''
'''Bold'''
'''''Italic and bold'''''

You can strike out and underline words.

You can <strike>strike out</strike> 
 and <u>underline</u> words.

Sectioning

What it looks like What one types

New section

Subsection

Sub-subsection

==New section==
===Subsection===
====Sub-subsection====

One single line break is ignored.

But a single empty line creates

a new break.

A line break can
be forced.

 One single '''line break'''
 is ignored.

 But a single empty line creates 

 a new break.

 A line break can<br/>be forced.

Various sorts of lists

What it looks like What one types
  • Lists are easy to do:
    • Start every line with a star.
      • More stars means deeper levels.
        • A newline in a list

marks the end of a list item.

* Lists are easy to do:
** Start every line with a star.
*** More stars means deeper levels.
**** A newline in a list
marks the end of a list item.
  1. Numbered lists are also good
    1. very organized
    2. easy to follow
# Numbered lists are also good
## very organized
## easy to follow
Definition list 
list of definitions
item 
the item's definition
another item
the other item's definition
; 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 manual newline starts a new paragraph.

: A colon indents 
::a line or paragraph.
A manual newline starts a new paragraph.
  • You can even do mixed lists
    1. and nest them
      • like this
* You can even do mixed lists
*# and nest them
*#* like this

Preformatted Text

What it looks like What one types
IF a line starts with a space THEN
  it will be formatted exactly 
    as typed;
  in a fixed-width font;
  lines won't wrap;
ENDIF
this is useful for:
  * pasting preformatted text;
  * algorithm descriptions;
  * program source code;
  * ASCII art;
  * chemical structures;

IF a line starts with a space THEN

  it will be formatted exactly 
    as typed;
  in a fixed-width font;
  lines won't wrap;
ENDIF
this is useful for:
  * pasting preformatted text;
  * algorithm descriptions;
  * program source code;
  * [[ASCII art]];
  * chemical structures;

Alignment

What it looks like What one types
Text align: center.
<div align="center"><nowiki>'''Text align: center'''.</nowiki>
Text align: right.
<div align="right"><nowiki>'''Text align: right'''<nowiki>.</div>

Miscellaneous

What it looks like What one types

A horizontal line: Text before


and after.

A '''horizontal line''': Text before
----
and after.

Comments
Some text and a

'''Comments''' <br/>
Some text and a <!-- hidden comment -->

This [[wiki syntax]] is [[Ignore|ignored]]

 <nowiki>This [[wiki syntax]] is [[Ignore|ignored]]
</nowiki>


Other Help Pages

Minibad.jpg The Wiki Guide