Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
wiki:syntax [2014/10/03 00:38] – [Basic Text Formatting] rsimoes | wiki:syntax [2017/06/28 18:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
+ | 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 < | ||
- | </ | ||
+ | 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. | ||
+ | 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\\ | + | two backslashes are only recognized at the end of a line\\ |
- | or followed by\\ | + | or followed by\\ a whitespace \\this happens without it. |
- | 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. | You should use forced newlines only if really needed. | ||
Line 101: | Line 84: | ||
* For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone" | * 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:// | + | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// |
- | + | <?php | |
- | LANG.nosmblinks = ''; | + | /** |
+ | * Customization of the english language file | ||
+ | * Copy only the strings that needs to be modified | ||
+ | */ | ||
+ | $lang[' | ||
+ | </ | ||
==== Image Links ==== | ==== Image Links ==== | ||
Line 139: | Line 127: | ||
---- | ---- | ||
- | ===== Images and Other Files ===== | + | ===== Media Files ===== |
- | You can include external and internal [[doku> | + | You can include external and internal [[doku> |
Real size: {{wiki: | Real size: {{wiki: | ||
Line 174: | Line 162: | ||
{{ 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. | For linking an image to another page see [[#Image Links]] above. | ||
+ | |||
+ | ==== Supported Media Formats ==== | ||
+ | |||
+ | DokuWiki can embed the following media formats directly. | ||
+ | |||
+ | | Image | '' | ||
+ | | Video | '' | ||
+ | | Audio | '' | ||
+ | | Flash | '' | ||
+ | |||
+ | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | ||
+ | |||
+ | By adding ''? | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | ==== Fallback Formats ==== | ||
+ | |||
+ | Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility. | ||
+ | |||
+ | For example consider this embedded mp4 video: | ||
+ | |||
+ | {{video.mp4|A funny video}} | ||
+ | |||
+ | When you upload a '' | ||
+ | |||
+ | Additionally DokuWiki supports a " | ||
===== Lists ===== | ===== Lists ===== | ||
Line 258: | Line 273: | ||
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' | + | |
- | + | > No we shouldn' | |
- | >> Well, I say we should | + | |
- | + | >> Well, I say we should | |
- | > Really? | + | |
- | + | > Really? | |
- | >> Yes! | + | |
- | + | >> Yes! | |
- | >>> | + | |
+ | >>> | ||
+ | </ | ||
I think we should do it | I think we should do it | ||
Line 314: | Line 331: | ||
^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
- | You can have rowspans (vertically connected cells) by adding '':::'' | + | You can have rowspans (vertically connected cells) by adding '' |
^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
Line 445: | Line 462: | ||
< | < | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'The PHP version: '; |
- | echo '< | + | echo phpversion(); |
- | echo ' | + | echo ' (generated inline HTML)'; |
</ | </ | ||
<PHP> | <PHP> | ||
echo '< | echo '< | ||
- | echo '< | + | echo '< |
echo '</ | echo '</ | ||
</ | </ | ||
Line 457: | Line 474: | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'The PHP version: '; |
- | echo '< | + | echo phpversion(); |
- | echo ' | + | echo ' (inline HTML)'; |
</ | </ | ||
<PHP> | <PHP> | ||
echo '< | echo '< | ||
- | echo '< | + | echo '< |
echo '</ | echo '</ | ||
</ | </ | ||
Line 478: | Line 495: | ||
| date | show item dates | | | date | show item dates | | ||
| description| show the item description. If [[doku> | | description| show the item description. If [[doku> | ||
+ | | nosort | ||
| //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | | //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: | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki: | ||
+ | |||
+ | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
**Example: | **Example: |