wiki:syntax
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
wiki:syntax [2011/07/14 04:42] – external edit 127.0.0.1 | wiki:syntax [2011/10/04 14:48] – WIKI:Added syntax page for wiki coding matttpowell | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Formatting Syntax ====== | + | 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 [[playground: |
- | + | ||
- | [[doku> | + | |
===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
- | DokuWiki supports | + | Supports |
- | | + | |
Of course you can **__//'' | Of course you can **__//'' | ||
Line 17: | Line 15: | ||
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. | ||
- | |||
- | 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. | ||
- | |||
- | 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 | + | Multiple |
==== External ==== | ==== External ==== | ||
Line 38: | Line 24: | ||
External links are recognized automagically: | External links are recognized automagically: | ||
- | | + | External links are recognized automagically: |
- | | + | |
- | | + | |
addresses like this one: < | addresses like this one: < | ||
Line 50: | Line 35: | ||
a [[pagename]] or use an additional [[pagename|link text]]. | a [[pagename]] or use an additional [[pagename|link text]]. | ||
- | [[doku> | + | [[Wiki pagenames]] are converted to lowercase automatically, |
You can use [[some: | You can use [[some: | ||
Line 56: | Line 41: | ||
You can use [[some: | You can use [[some: | ||
- | For details about namespaces see [[doku> | + | For details about namespaces see [[doku> |
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# | 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# | ||
Line 74: | Line 59: | ||
DokuWiki supports [[doku> | DokuWiki supports [[doku> | ||
For example this is a link to Wikipedia' | For example this is a link to Wikipedia' | ||
- | + | | |
- | ==== Windows Shares ==== | + | |
- | + | ||
- | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp> | + | |
- | + | ||
- | Windows Shares like [[\\server\share|this]] are recognized, too. | + | |
- | + | ||
- | 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:// | + | |
- | + | ||
- | $lang[' | + | |
- | + | ||
- | ==== Image Links ==== | + | |
- | + | ||
- | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | + | |
- | + | ||
- | [[http:// | + | |
- | + | ||
- | [[http:// | + | |
- | + | ||
- | Please note: The image formatting is the only formatting syntax accepted in link names. | + | |
- | + | ||
- | The whole [[# | + | |
===== Footnotes ===== | ===== Footnotes ===== | ||
Line 121: | Line 81: | ||
---- | ---- | ||
- | |||
- | ===== Images and Other Files ===== | ||
- | |||
- | You can include external and internal [[doku> | ||
- | |||
- | Real size: {{wiki: | ||
- | |||
- | Resize to given width: | ||
- | |||
- | Resize to given width and height((when the aspect ratio of the given width and height doesn' | ||
- | |||
- | Resized external image: | ||
- | |||
- | Real size: {{wiki: | ||
- | Resize to given width: | ||
- | Resize to given width and height: {{wiki: | ||
- | Resized external image: | ||
- | |||
- | |||
- | By using left or right whitespaces you can choose the alignment. | ||
- | |||
- | {{ wiki: | ||
- | |||
- | {{wiki: | ||
- | |||
- | {{ wiki: | ||
- | |||
- | {{ wiki: | ||
- | {{wiki: | ||
- | {{ wiki: | ||
- | |||
- | Of course, you can add a title (displayed as a tooltip by most browsers), too. | ||
- | |||
- | {{ wiki: | ||
- | |||
- | {{ wiki: | ||
- | |||
- | If you specify a filename (external or internal) that is not an image ('' | ||
- | |||
- | For linking an image to another page see [[#Image Links]] above. | ||
===== Lists ===== | ===== Lists ===== | ||
Line 189: | Line 109: | ||
Also take a look at the [[doku> | Also take a look at the [[doku> | ||
- | |||
- | ===== Text Conversions ===== | ||
- | |||
- | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. | ||
- | |||
- | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, | ||
==== Text to Image Conversions ==== | ==== Text to Image Conversions ==== | ||
Line 369: | Line 283: | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | [[wiki: | + | Any language supported by GeSHi is supported. The name of the used language is inserted inside the tag. Eg. ''< |
<code java> | <code java> | ||
Line 382: | Line 296: | ||
} | } | ||
</ | </ | ||
- | |||
- | The following language strings are currently recognized: //4cs, abap, actionscript-french, | ||
==== Downloadable Code Blocks ==== | ==== Downloadable Code Blocks ==== | ||
Line 401: | Line 313: | ||
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 'A logo generated by PHP:'; | ||
- | echo '< | ||
- | echo ' | ||
- | </ | ||
- | <PHP> | ||
- | echo '< | ||
- | echo '< | ||
- | echo '</ | ||
- | </ | ||
- | </ | ||
- | |||
- | <php> | ||
- | echo 'A logo generated by PHP:'; | ||
- | echo '< | ||
- | echo ' | ||
- | </ | ||
- | <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 ===== | ||
- | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
- | |||
- | ^ Parameter | ||
- | | any number | will be used as maximum number items to show, defaults to 8 | | ||
- | | reverse | ||
- | | author | ||
- | | date | show item dates | | ||
- | | description| show the item description. If [[doku> | ||
- | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
- | |||
- | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki: | ||
- | |||
- | **Example: | ||
- | |||
- | {{rss> | ||
- | |||
- | {{rss> | ||
- | |||
- | |||
- | ===== Control Macros ===== | ||
- | |||
- | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | ||
- | |||
- | ^ Macro ^ Description | | ||
- | | %%~~NOTOC~~%% | ||
- | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
- | |||
- | ===== Syntax Plugins ===== | ||
- | |||
- | DokuWiki' | ||
- | |||
- | ~~INFO: | ||
wiki/syntax.txt · Last modified: 2023/03/08 00:28 by 127.0.0.1