== Syntax1 @@hide@@ == ==== Traditional Dokuwiki Formatting Syntax ==== [[doku>DokuWiki]] -- [[wiki:syntax|Traditional syntax]] 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 "Edit this page". If you want to try something, just use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]] , too. ==== New Formatting Syntax ==== This Wiki use **The new formatting protocol of the ** ** see** [[wiki:ct|Code-Text preprocessor]] **It use single point commands as** **.b** **.blue**eg.\\ double point substitute as ..text-insert-aeg.\\ a simplifed lisp form called "lispish form" as .(page namespace:page) .(xxx) eg. The [[wiki:syntax|Traditional Dokuwiki Formatting Syntax]] can still be used, __but you need to insert linebreak commands as follows:__\\ substitute single paragraph linebreak ( \ \ ) with .lp\\ substitute double paragraph linebreak ( empty lines ) with .dp\\ For new writing please consider the new **ctdw syntax ** **It will make the source text much smother and offer a bunch of new possibilities. ** **which allow format the source without loosing its readablility.**\\ ==== Basic Text Formatting ==== ctDokuWiki supports **bold,** //**italic,**// //__**underlined and **__// //__''**monospaced texts.**''__// //__''**Of course you can combine .b .i .msp**''__// .ms //__''** all these.**''__// //__''**\**''__// //__''**You can use**''__// //__''**subscript**''__// .delsubsup//__''**and**''__// //__''**superscript**''__// , too. You can mark something as .del deleted as well. .delsubsup**Paragraphs** are inserted by .dp (inserting a blank line to.yellow DokuWiki ). If you want to **force a newline** without a paragraph use .lp\\ (this insert two backslashes followed by a whitespace or the end of line to.yellow DokuWiki )\\ You should use forced newlines .lp only if really needed. ==== Links ==== ctDokuWiki supports multiple ways of creating links. ==== External ==== External links are recognized automatically: http://www.google.com or simply www.google.com or with the lispish form [[http://http://www.google.com]] - You can set the link text as well: . Email addresses like this one: are recognized, or with the.blue lispish form [[http://andi@splitbrain.org]] too. ..ctdw-c supports multiple ways of creating links. External links are recognized .onl automatically: http://www.google.com or simply www.google.com - You can set .onl link text as well:[[http://http://www.google.com|This Link points to google]] . Email .onl addresses like this one: are recognized, too. .onl ==== Internal ==== Internal links [[pagename]] or link with link text [[pagename|link text]] . You write as \.(page pagename) or as \.(page pagename link text) . .onl Note: pagenames are converted to lowercase automatically, special characters are not allowed. .lp .onl You can use some:namespaces by using a colon in the pagename.\\ For details about namespaces see [[http://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|this Section]] . This links to \.(page syntax this Section :section Internal) . .onl == Notes == * Links to [[syntax-ctdw|existing page]] is shown in a different style from a [[nonexisting]] .\\ *.green ctDokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>config]] file. Hint: If xxxx is a link, then it's enabled.\\ * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.\\ ==== Interwiki ==== ctDokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]] . ..ctdw-c supports \.(page doku>Interwiki) links. These are quick links to other Wikis. .onl For example this is a link to Wikipedia's page about Wikis: \.(page wp>Wiki) . .onl ==== Windows Shares ==== Windows shares like [[\servershare|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]] . Windows Shares like \.(page \\server\share this) are recognized, too. .onl Notes:\\ * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla .onl Knowledge Base]] . However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization|.onl .(code]] // ///=jul27 ///=what-do-this? ==== Image Links ==== You can also use an image to link to another internal or external page by combining the syntax for links and [[]] (see below) like this: .(htref http://php.net :image wiki:dokuwiki-128.png) [[http://http://php.net]] Please note: The image formatting is the only formatting syntax accepted in link names. The whole [[]] and [[]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links).