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 [2016/01/08 18:50] – knome | wiki:syntax [2016/01/08 20:47] – knome | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
- | DokuWiki supports | + | ^ Purpose |
+ | | Bold | ''< | ||
+ | | Italic | ||
+ | | Underlined | ||
+ | | Monospace | ||
+ | | Subscript | ||
+ | | Superscript | ||
+ | | Strikethrough | ''< | ||
- | DokuWiki supports **bold**, //italic//, __underlined__ and '' | + | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes |
- | Of course you can **__//'' | + | |
- | + | ||
- | You can use < | + | |
- | + | ||
- | You can use < | + | |
- | + | ||
- | 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 | + | |
- | + | ||
- | This is some text with some linebreaks\\ Note that the | + | |
- | two backslashes are only recognized at the end of a line\\ | + | |
- | or followed by\\ a whitespace | + | |
- | + | ||
- | This is some text with some linebreaks\\ Note that the | + | |
- | 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. | + | |
===== Links ===== | ===== Links ===== | ||
- | DokuWiki supports multiple ways of creating links. | + | ^ Purpose |
- | + | | Manual | |
- | ==== External ==== | + | | Manual |
- | + | | Automatic external link | ''< | |
- | External links are recognized automagically: | + | | Email link |
- | + | | Launchpad user/team link | ''< | |
- | DokuWiki supports multiple ways of creating links. External links are recognized | + | | Ubuntu wiki link | ''< |
- | automagically: | + | |
- | link text as well: [[http:// | + | |
- | addresses like this one: <andi@splitbrain.org> are recognized, too. | + | |
- | + | ||
- | ==== Internal ==== | + | |
- | + | ||
- | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | + | |
- | + | ||
- | Internal links are created by using square brackets. You can either just give | + | |
- | a [[pagename]] or use an additional [[pagename|link text]]. | + | |
- | + | ||
- | [[doku> | + | |
- | + | ||
- | You can use [[some: | + | |
- | + | ||
- | You can use [[some: | + | |
- | + | ||
- | For details about namespaces see [[doku>namespaces]]. | + | |
- | + | ||
- | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. | + | |
- | + | ||
- | This links to [[syntax#internal|this Section]]. | + | |
- | + | ||
- | Notes: | + | |
- | + | ||
- | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | + | |
- | | + | |
- | * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much. | + | |
- | + | ||
- | ==== Interwiki ==== | + | |
- | + | ||
- | DokuWiki supports | + | |
- | + | ||
- | DokuWiki supports | + | |
- | For example this is a link to Wikipedia's page about Wikis: | + | |
==== Image Links ==== | ==== Image Links ==== | ||
Line 363: | Line 314: | ||
If you don't want any highlighting but want a downloadable file, specify a dash ('' | If you don't want any highlighting but want a downloadable file, specify a dash ('' | ||
- | |||
- | ===== Embedding HTML and PHP ===== | ||
- | |||
- | You can embed raw HTML or PHP code into your documents by using the '' | ||
- | |||
- | HTML example: | ||
- | |||
- | < | ||
- | < | ||
- | This is some <span style=" | ||
- | </ | ||
- | < | ||
- | <p style=" | ||
- | </ | ||
- | </ | ||
- | |||
- | < | ||
- | This is some <span style=" | ||
- | </ | ||
- | < | ||
- | <p style=" | ||
- | </ | ||
- | |||
- | PHP example: | ||
- | |||
- | < | ||
- | <php> | ||
- | echo 'The PHP version: '; | ||
- | echo phpversion(); | ||
- | echo ' (generated inline HTML)'; | ||
- | </ | ||
- | <PHP> | ||
- | echo '< | ||
- | echo '< | ||
- | echo '</ | ||
- | </ | ||
- | </ | ||
- | |||
- | <php> | ||
- | echo 'The PHP version: '; | ||
- | echo phpversion(); | ||
- | echo ' (inline HTML)'; | ||
- | </ | ||
- | <PHP> | ||
- | echo '< | ||
- | echo '< | ||
- | echo '</ | ||
- | </ | ||
- | |||
- | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | ||
===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== |