|
vikio:syntax 2007/03/22 05:16 |
vikio:syntax 2007/03/23 10:08 kuranta |
| | ====== Formatting Syntax ====== | | ====== Formatting Syntax ====== |
| | | | |
| - | [[:DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the //Edit this page// button at the top or bottom of the page. If you want to try something, just use the [[ludejo:ludejo]] page. The simpler markup is easily accessible via [[doku>wiki:quickbuttons|quickbuttons]], too. | + | [[dokuwiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the //Edit this page// button at the top or bottom of the page. If you want to try something, just use the [[ludejo:ludejo]] page. The simpler markup is easily accessible via [[doku>wiki:quickbuttons|quickbuttons]], too. |
| | | | |
| | ===== Basic text formatting ===== | | ===== Basic text formatting ===== |
| | | | |
| | Internal links are created by using square brackets. You can either just give | | Internal links are created by using square brackets. You can either just give |
| - | a [[pagename]] or use an additional [[pagename|Title Text]]. Wiki pagenames | + | a [[wiki:pagename]] or use an additional [[wiki:pagename|Title Text]]. Wiki pagenames |
| | are converted to lowercase automatically, special chars are not allowed. | | are converted to lowercase automatically, special chars are not allowed. |
| | | | |
| | For details about namespaces see [[doku>wiki:namespaces]]. | | For details about namespaces see [[doku>wiki:namespaces]]. |
| | | | |
| - | Linking to a specific section is possible, too. Just add the sectionname behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. | + | Linking to a specific section is possible, too. Just add the sectionname behind a hash character as known from HTML. This links to [[wiki:syntax#internal|this Section]]. |
| | | | |
| - | This links to [[syntax#internal|this Section]]. | + | This links to [[wiki:syntax#internal|this Section]]. |
| | | | |
| | Notes: | | Notes: |
| | ==== Image Links ==== | | ==== Image Links ==== |
| | | | |
| - | You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this: | + | You can also use an image to link to another internal or external page by combining the syntax for links and [[wiki#images_and_other_files|images]] (see below) like this: |
| | | | |
| | [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] | | [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] |
| | Please note: The image formatting is the only formatting syntax accepted in link names. | | Please note: The image formatting is the only formatting syntax accepted in link names. |
| | | | |
| - | The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links). | + | The whole [[wiki#images_and_other_files|image]] and [[wiki#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links). |
| | | | |
| | ===== Footnotes ===== | | ===== Footnotes ===== |
| | If you specify a filename (external or internal) that is not an image (''gif,jpeg,png''), then it will be displayed as a link instead. | | If you specify a filename (external or internal) that is not an image (''gif,jpeg,png''), then it will be displayed as a link instead. |
| | | | |
| - | For linking an image to another page see [[Image Links]] above. | + | For linking an image to another page see [[wiki:image_links]] above. |
| | | | |
| | ===== Lists ===== | | ===== Lists ===== |
| | ===== Typography ===== | | ===== Typography ===== |
| | | | |
| - | [[:DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | + | [[dokuwiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. |
| | | | |
| | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
| | ===== Syntax Highlighting ===== | | ===== Syntax Highlighting ===== |
| | | | |
| - | [[:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax is the same like in the code block in the previous section, but this time the name of the used language is inserted inside the tag. Eg. ''<nowiki><code php|title></nowiki>''. | + | [[dokuwiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax is the same like in the code block in the previous section, but this time the name of the used language is inserted inside the tag. Eg. ''<nowiki><code php|title></nowiki>''. |
| | | | |
| | <code php|Example Code> | | <code php|Example Code> |