ibis's Wiki - EnglishTextFormattingRules Diff
- Added parts are displayed like this.
- Deleted parts are displayed
like this.
{{toc}}
!Note
I still need to do some more editing, but this should be adequate for now. -- Steve Brumbaugh, 22 November 2004
!Paragraphs
*Consecutive lines are concatenated into a single paragraph.
*Blank lines (ones with only a carriage return or with only spaces and tabs) mark the end of a paragraph.
*Example statement
For example,
if I write like this, these lines
will be formatted as one paragraph.
*Example output
For example,
if I write like this, these lines
will be formatted as one paragraph.
!Links
!!WikiNames
*WikiNames are comprised of two or more words put together; each word begins with an uppercase letter, and is followed by at least one lowercase letter or number.
*Words in which this condition is met become a WikiName, and a link is automatically attached.
*Example statement
WikiName - WikiName
HogeRule1 - WikiName
NOTWIKINAME - All of the letters are uppercase, so this is not a WikiName
WikiNAME - All of the letters in NAME are uppercase, so this is not a WikiName
*fooWikiName - This begins with "foo", which is in all lowercase, so this is not a WikiName
*Example output
**WikiName - WikiName
**HogeRule1 - WikiName
**NOTWIKINAME - All of the letters are uppercase, so this is not a WikiName
**WikiNAME - All of the letters in NAME are uppercase, so this is not a WikiName
**fooWikiName - This begins with "foo", which is in all lowercase, so this is not a WikiName
!!Linking to other Wiki pages
If a page name is surrounded with two pairs of brackets, it becomes a link to that page.
*Example statement
For example, if you write [[EnglishTextFormattingRules]], it becomes a link to that page.
*Example output
For example, if you write [[EnglishTextFormattingRules]], it becomes a link to that page.
!!Linking to an arbitrary URL
If a phrase and URL, separated by a vertical line, are surrounded with two pairs of brackets, it becomes a link to an arbitrary URL.
*Example statement
Links like [[Yahoo!|http://www.yahoo.com/]] are also possible.
*Example output
Links like [[Yahoo!|http://www.yahoo.com/]] are also possible.
In this case, if the URL ends with jpg., .jpeg, .png, or .gif, the image is displayed on the page. (The specified phrase becomes the ALT text for that image.)
*Example statement
[[Four-leaf clover|http://jp.rubyist.net/theme/clover/clover_h1.png]]
*Example output
[[Four-leaf clover|http://jp.rubyist.net/theme/clover/clover_h1.png]]
Text in a paragraph that looks like a URL will automatically become a link.
*Example statement
Hiki's home page is http://www.namaraii.com/hiki/ (Japanese only).
*Example output
Hiki's home page is http://www.namaraii.com/hiki/ (Japanese only).
!!InterWiki
InterWiki is supported using [[Tiki:Tiki]]. To add a server, edit InterWikiName.
*Example statement
*[[ruby-talk:1]]
*[[Google:ruby wiki]]
*Example output
**[[ruby-talk:1]]
**[[Google:ruby wiki]]
!Preformatted text
*Lines beginning with spaces or tabs will be treated as preformatted text.
*Example output
require 'cgi'
cgi = CGI::new
cgi.header
puts <<EOS
<html>
<head>
<title>Hello!</title>
</head>
<body>
<p>Hello!</p>
</body>
</html>
EOS
!Text decoration
*Text surrounded by sets of two single quotes ('') is emphasized.
*Text surrounded by sets of three single quotes (''') is strongly emphasized.
*Text surrounded by sets of double equal signs (===) is struck out.
*Example statement
If you write like this, it becomes ''emphasized''.
And if you write like this, it becomes '''strongly emphasized'''.
==This is dull, but== And struck-out text is supported, too!
*Example output
If you write like this, it becomes ''emphasized''.
And if you write like this, it becomes '''strongly emphasized'''.
==This is dull, but== And struck-out text is supported, too!
!Headings
* Lines with exclamation marks at the beginning become headings.
* One can use up to five exclamation marks; they will be converted to <h2> to <h6> tags.
*Example statement
!Heading1
!!Heading2
!!!Heading3
!!!!Heading4
!!!!!Heading5
*Example output
!Heading1
!!Heading2
!!!Heading3
!!!!Heading4
!!!!!Heading5
!Horizontal lines
Four hyphens at the beginning of the line (----) become a horizontal rule.
*Example statement
A B C D E
----
F G H I J
*Example output
A B C D E
----
F G H I J
!Lists
* Lines beginning with asterisks become list items.
* It is possible to use up to three asterisks; it is also possible to create nested lists.
* Lines beginning with a # become numbered lists.
*Example statement
*Item 1
**Item 1.1
**Item 1.2
***Item 1.2.1
***Item 1.2.2
***Item 1.2.3
**Item 1.3
**Item 1.4
*Item 2
#Item 1
#Item 2
##Item 2.1
##Item 2.2
##Item 2.3
#Item 3
##Item 3.1
###Item 3.1.1
###Item 3.1.2
*Example output
*Item 1
**Item 1.1
**Item 1.2
***Item 1.2.1
***Item 1.2.2
***Item 1.2.3
**Item 1.3
**Item 1.4
*Item 2
#Item 1
#Item 2
##Item 2.1
##Item 2.2
##Item 2.3
#Item 3
##Item 3.1
###Item 3.1.1
###Item 3.1.2
!Quotations
Lines beginning with two double quotes become quotations.
*Example statement
""This is a quotation.
""This is another quote.
""This is a continued quote. When there are consecutive quotations,
""they are displayed as one quote,
""like this.
*Example output
""This is a quotation.
""This is another quote.
""This is a continued quote. When there are consecutive quotations,
""they are displayed as one quote,
""like this.
!Definitions
Lines beginning with a colon and have a phrase and explanation separated by another colon will become a definition.
*Example statement
:ringo:apple
:gorira:gorilla
:rakuda:camel
*Example output
:ringo:apple
:gorira:gorilla
:rakuda:camel
!Tables
Tables begin with two vertical bars, and are written as below.
*Example statement
||Item 1-1||Item 1-2||Item 1-3
||Item 2-1||Item 2-2||Item 2-3
*Example output
||Item 1-1||Item 1-2||Item 1-3
||Item 2-1||Item 2-2||Item 2-3
!Plugins
One can use a plugin by surrounding text with two pairs of brackets.
*Example statement
{{recent(3)}}
!Note
I still need to do some more editing, but this should be adequate for now. -- Steve Brumbaugh, 22 November 2004
!Paragraphs
*Consecutive lines are concatenated into a single paragraph.
*Blank lines (ones with only a carriage return or with only spaces and tabs) mark the end of a paragraph.
*Example statement
For example,
if I write like this, these lines
will be formatted as one paragraph.
*Example output
For example,
if I write like this, these lines
will be formatted as one paragraph.
!Links
!!WikiNames
*WikiNames are comprised of two or more words put together; each word begins with an uppercase letter, and is followed by at least one lowercase letter or number.
*Words in which this condition is met become a WikiName, and a link is automatically attached.
*Example statement
WikiName - WikiName
HogeRule1 - WikiName
NOTWIKINAME - All of the letters are uppercase, so this is not a WikiName
WikiNAME - All of the letters in NAME are uppercase, so this is not a WikiName
*fooWikiName - This begins with "foo", which is in all lowercase, so this is not a WikiName
*Example output
**WikiName - WikiName
**HogeRule1 - WikiName
**NOTWIKINAME - All of the letters are uppercase, so this is not a WikiName
**WikiNAME - All of the letters in NAME are uppercase, so this is not a WikiName
**fooWikiName - This begins with "foo", which is in all lowercase, so this is not a WikiName
!!Linking to other Wiki pages
If a page name is surrounded with two pairs of brackets, it becomes a link to that page.
*Example statement
For example, if you write [[EnglishTextFormattingRules]], it becomes a link to that page.
*Example output
For example, if you write [[EnglishTextFormattingRules]], it becomes a link to that page.
!!Linking to an arbitrary URL
If a phrase and URL, separated by a vertical line, are surrounded with two pairs of brackets, it becomes a link to an arbitrary URL.
*Example statement
Links like [[Yahoo!|http://www.yahoo.com/]] are also possible.
*Example output
Links like [[Yahoo!|http://www.yahoo.com/]] are also possible.
In this case, if the URL ends with jpg., .jpeg, .png, or .gif, the image is displayed on the page. (The specified phrase becomes the ALT text for that image.)
*Example statement
[[Four-leaf clover|http://jp.rubyist.net/theme/clover/clover_h1.png]]
*Example output
[[Four-leaf clover|http://jp.rubyist.net/theme/clover/clover_h1.png]]
Text in a paragraph that looks like a URL will automatically become a link.
*Example statement
Hiki's home page is http://www.namaraii.com/hiki/ (Japanese only).
*Example output
Hiki's home page is http://www.namaraii.com/hiki/ (Japanese only).
!!InterWiki
InterWiki is supported using [[Tiki:Tiki]]. To add a server, edit InterWikiName.
*Example statement
*[[ruby-talk:1]]
*[[Google:ruby wiki]]
*Example output
**[[ruby-talk:1]]
**[[Google:ruby wiki]]
!Preformatted text
*Lines beginning with spaces or tabs will be treated as preformatted text.
*Example output
require 'cgi'
cgi = CGI::new
cgi.header
puts <<EOS
<html>
<head>
<title>Hello!</title>
</head>
<body>
<p>Hello!</p>
</body>
</html>
EOS
!Text decoration
*Text surrounded by sets of two single quotes ('') is emphasized.
*Text surrounded by sets of three single quotes (''') is strongly emphasized.
*Text surrounded by sets of double equal signs (===) is struck out.
*Example statement
If you write like this, it becomes ''emphasized''.
And if you write like this, it becomes '''strongly emphasized'''.
==This is dull, but== And struck-out text is supported, too!
*Example output
If you write like this, it becomes ''emphasized''.
And if you write like this, it becomes '''strongly emphasized'''.
==This is dull, but== And struck-out text is supported, too!
!Headings
* Lines with exclamation marks at the beginning become headings.
* One can use up to five exclamation marks; they will be converted to <h2> to <h6> tags.
*Example statement
!Heading1
!!Heading2
!!!Heading3
!!!!Heading4
!!!!!Heading5
*Example output
!Heading1
!!Heading2
!!!Heading3
!!!!Heading4
!!!!!Heading5
!Horizontal lines
Four hyphens at the beginning of the line (----) become a horizontal rule.
*Example statement
A B C D E
----
F G H I J
*Example output
A B C D E
----
F G H I J
!Lists
* Lines beginning with asterisks become list items.
* It is possible to use up to three asterisks; it is also possible to create nested lists.
* Lines beginning with a # become numbered lists.
*Example statement
*Item 1
**Item 1.1
**Item 1.2
***Item 1.2.1
***Item 1.2.2
***Item 1.2.3
**Item 1.3
**Item 1.4
*Item 2
#Item 1
#Item 2
##Item 2.1
##Item 2.2
##Item 2.3
#Item 3
##Item 3.1
###Item 3.1.1
###Item 3.1.2
*Example output
*Item 1
**Item 1.1
**Item 1.2
***Item 1.2.1
***Item 1.2.2
***Item 1.2.3
**Item 1.3
**Item 1.4
*Item 2
#Item 1
#Item 2
##Item 2.1
##Item 2.2
##Item 2.3
#Item 3
##Item 3.1
###Item 3.1.1
###Item 3.1.2
!Quotations
Lines beginning with two double quotes become quotations.
*Example statement
""This is a quotation.
""This is another quote.
""This is a continued quote. When there are consecutive quotations,
""they are displayed as one quote,
""like this.
*Example output
""This is a quotation.
""This is another quote.
""This is a continued quote. When there are consecutive quotations,
""they are displayed as one quote,
""like this.
!Definitions
Lines beginning with a colon and have a phrase and explanation separated by another colon will become a definition.
*Example statement
:ringo:apple
:gorira:gorilla
:rakuda:camel
*Example output
:ringo:apple
:gorira:gorilla
:rakuda:camel
!Tables
Tables begin with two vertical bars, and are written as below.
*Example statement
||Item 1-1||Item 1-2||Item 1-3
||Item 2-1||Item 2-2||Item 2-3
*Example output
||Item 1-1||Item 1-2||Item 1-3
||Item 2-1||Item 2-2||Item 2-3
!Plugins
One can use a plugin by surrounding text with two pairs of brackets.
*Example statement
{{recent(3)}}