wiki:syntax
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
wiki:syntax [2006/07/24 03:10] – Ian the Admin | wiki:syntax [2009/02/18 05:10] – old revision restored Thande | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Wiki Basics ====== | ||
+ | |||
+ | A Wiki is a collection of web pages that anyone can edit and add to using their web browser - in this case, anyone who is a member of the [[http:// | ||
+ | |||
+ | What makes a Wiki really easy is the ability to create new web pages. | ||
+ | |||
+ | You could say that these are the three basic principles of the wiki: | ||
+ | * Can be edited by anyone | ||
+ | * Links and new pages can be added almost instantly | ||
+ | * Used straightforward, | ||
+ | |||
+ | The rest of this document describes all of the various options for formatting text. But always remember that the toolbar on top of the editor window has shortcut buttons. | ||
+ | |||
+ | The four rightmost buttons on the editor bar can be very useful: | ||
+ | * The smilies menu | ||
+ | * Special characters menu | ||
+ | * Signature, which inserts your username and the current date and time | ||
+ | * Add File/Image, which lets you upload files to the Wiki and browse files to include in a page (the Wiki's folder tree is on the left of the browser) | ||
+ | |||
+ | |||
====== Formatting Syntax ====== | ====== Formatting Syntax ====== | ||
Line 7: | Line 27: | ||
DokuWiki supports **bold**, //italic//, __underlined__ and '' | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
- | | + | < |
- | Of course you can **__//'' | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
+ | Of course you can **__//'' | ||
+ | </ | ||
You can use < | You can use < | ||
- | | + | < |
+ | You can use < | ||
+ | </ | ||
You can mark something as < | You can mark something as < | ||
- | | + | < |
+ | You can mark something as < | ||
+ | </ | ||
**Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | ||
Line 24: | Line 50: | ||
or followed by\\ a whitespace \\this happens without it. | or followed by\\ a whitespace \\this happens without it. | ||
- | | + | < |
- | two backslashes are only recognized at the end of a line\\ | + | This is some text with some linebreaks\\ Note that the |
- | or followed by\\ a whitespace \\this happens without it. | + | two backslashes are only recognized at the end of a line\\ |
+ | or followed by\\ a whitespace \\this happens without it. | ||
+ | </ | ||
You should use forced newlines only if really needed. | You should use forced newlines only if really needed. | ||
Line 38: | Line 66: | ||
External links are recognized automagically: | External links are recognized automagically: | ||
- | | + | < |
- | automagically: | + | DokuWiki supports multiple ways of creating links. External links are recognized |
- | Linknames, too: [[http:// | + | automagically: |
- | addresses like this one: < | + | Linknames, too: [[http:// |
+ | addresses like this one: < | ||
+ | </ | ||
==== Internal ==== | ==== Internal ==== | ||
Line 47: | Line 77: | ||
Internal links are created by using square brackets. You can either just give a [[doku> | Internal links are created by using square brackets. You can either just give a [[doku> | ||
- | | + | < |
- | a [[pagename]] or use an additional [[pagename|Title Text]]. Wiki pagenames | + | Internal links are created by using square brackets. You can either just give |
- | are converted to lowercase automatically, | + | a [[pagename]] or use an additional [[pagename|Title Text]]. Wiki pagenames |
+ | are converted to lowercase automatically, | ||
+ | </ | ||
You can use [[wiki: | You can use [[wiki: | ||
- | | + | < |
+ | You can use [[wiki: | ||
+ | </ | ||
For details about namespaces see [[doku> | For details about namespaces see [[doku> | ||
Line 59: | Line 93: | ||
Linking to a specific section is possible, too. Just add the sectionname behind a hash character as known from HTML. This links to [[syntax# | Linking to a specific section is possible, too. Just add the sectionname behind a hash character as known from HTML. This links to [[syntax# | ||
- | | + | < |
+ | This links to [[syntax# | ||
+ | </ | ||
Notes: | Notes: | ||
Line 72: | Line 108: | ||
You can also use an image to link to another internal or external page by combining the syntax for links and [[# | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | ||
- | | + | < |
+ | [[http:// | ||
+ | </ | ||
[[http:// | [[http:// | ||
Line 84: | Line 122: | ||
You can add footnotes ((This is a footnote)) by using double parentheses. | You can add footnotes ((This is a footnote)) by using double parentheses. | ||
- | | + | < |
+ | You can add footnotes ((This is a footnote)) by using double parentheses. | ||
+ | </ | ||
===== Sectioning ===== | ===== Sectioning ===== | ||
Line 94: | Line 134: | ||
== Headline Level 5 == | == Headline Level 5 == | ||
- | | + | < |
- | === Headline Level 4 === | + | ==== Headline Level 3 ==== |
- | == Headline Level 5 == | + | === Headline Level 4 === |
+ | == Headline Level 5 == | ||
+ | </ | ||
By using four or more dashes, you can make a horizontal line: | By using four or more dashes, you can make a horizontal line: | ||
Line 105: | Line 147: | ||
You can include external and internal [[doku> | You can include external and internal [[doku> | ||
+ | |||
+ | Images can be uploaded with the "Add File/ | ||
+ | |||
Real size: {{wiki: | Real size: {{wiki: | ||
Line 114: | Line 159: | ||
Resized external image: | Resized external image: | ||
- | | + | < |
- | Resize to given width: | + | Real size: {{wiki: |
- | Resize to given width and height: {{wiki: | + | Resize to given width: |
- | Resized external image: | + | Resize to given width and height: {{wiki: |
+ | Resized external image: | ||
+ | </ | ||
Line 128: | Line 175: | ||
{{ wiki: | {{ wiki: | ||
- | | + | < |
- | {{wiki: | + | {{ wiki: |
- | {{ wiki: | + | {{wiki: |
+ | {{ wiki: | ||
+ | </ | ||
Of course, you can add a title (displayed as a tooltip by most browsers), too. | Of course, you can add a title (displayed as a tooltip by most browsers), too. | ||
Line 136: | Line 185: | ||
{{ wiki: | {{ wiki: | ||
- | | + | < |
+ | {{ wiki: | ||
+ | </ | ||
If you specify a filename (external or internal) that is not an image ('' | If you specify a filename (external or internal) that is not an image ('' | ||
Line 171: | Line 222: | ||
DokuWiki converts commonly used [[wp> | DokuWiki converts commonly used [[wp> | ||
+ | |||
+ | Remember that the editor toolbar has a menu button that allows you to choose from the available smilies. | ||
* 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
Line 211: | Line 264: | ||
Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | ||
- | | + | < |
+ | I think we should do it | ||
| | ||
- | | + | > No we shouldn' |
| | ||
- | | + | >> Well, I say we should |
| | ||
- | | + | > Really? |
| | ||
- | | + | >> Yes! |
| | ||
- | | + | >>> |
+ | </ | ||
I think we should do it | I think we should do it | ||
Line 246: | Line 301: | ||
Table rows have to start and end with a '' | Table rows have to start and end with a '' | ||
- | | + | < |
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | |
- | | Row 3 Col 1 | Row 2 Col 2 | Row 2 Col 3 | | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
+ | | Row 3 Col 1 | Row 2 Col 2 | Row 2 Col 3 | | ||
+ | </ | ||
To connect cells horizontally, | To connect cells horizontally, | ||
Line 262: | Line 319: | ||
As you can see, it's the cell separator before a cell which decides about the formatting: | As you can see, it's the cell separator before a cell which decides about the formatting: | ||
- | | + | < |
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | + | | ^ Heading 1 ^ Heading 2 ^ |
- | ^ Heading 4 | no colspan this time | | | + | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | |
- | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | + | ^ Heading 4 | no colspan this time | | |
+ | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
+ | </ | ||
Note: Vertical spans (rowspan) are not possible. | Note: Vertical spans (rowspan) are not possible. | ||
Line 278: | Line 337: | ||
This is how it looks in the source: | This is how it looks in the source: | ||
- | | + | < |
- | | | + | ^ Table with alignment |
- | |left | | + | | |
- | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | + | |left | |
+ | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
+ | </ | ||
===== Nonparsed Blocks ===== | ===== Nonparsed Blocks ===== | ||
- | You can include non parsed blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' | + | You can include non parsed blocks into your documents by either indenting them by using the tags '' |
< | < | ||
Line 301: | Line 362: | ||
</ | </ | ||
- | See the source of this page to see how to use these blocks. | + | See the source of this page to see how to use these blocks. One tip is that '' |
wiki/syntax.txt · Last modified: 2023/04/04 12:21 by 127.0.0.1