Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
wiki:syntax [12.12.2021] – alte Version wiederhergestellt (2021/12/12 21:54) cs | wiki:syntax [11.11.2024] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Formatting Syntax ====== | ====== Formatting Syntax ====== | ||
- | [[doku> | + | [[doku> |
===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
Zeile 84: | Zeile 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[' |
- | * Customization of the english language file | + | |
- | * Copy only the strings that needs to be modified | + | |
- | */ | + | |
- | $lang[' | + | |
- | </ | + | |
==== Image Links ==== | ==== Image Links ==== | ||
Zeile 97: | Zeile 92: | ||
You can also use an image to link to another internal or external page by combining the syntax for links and [[# | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | ||
- | [[http:// | + | [[http://www.php.net|{{wiki: |
- | [[http:// | + | [[http://www.php.net|{{wiki: |
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. | ||
Zeile 127: | Zeile 122: | ||
---- | ---- | ||
- | ===== Media Files ===== | + | ===== Images and Other Files ===== |
- | You can include external and internal [[doku> | + | You can include external and internal [[doku> |
Real size: {{wiki: | Real size: {{wiki: | ||
Zeile 137: | Zeile 132: | ||
Resize to given width and height((when the aspect ratio of the given width and height doesn' | Resize to given width and height((when the aspect ratio of the given width and height doesn' | ||
- | Resized external image: | + | Resized external image: |
Real size: {{wiki: | Real size: {{wiki: | ||
Resize to given width: | Resize to given width: | ||
Resize to given width and height: {{wiki: | Resize to given width and height: {{wiki: | ||
- | Resized external image: | + | Resized external image: |
Zeile 162: | Zeile 157: | ||
{{ 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 ===== | ||
Zeile 273: | Zeile 241: | ||
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 | ||
Zeile 331: | Zeile 297: | ||
^ 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 ^ | ||
Zeile 403: | Zeile 369: | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// | + | [[wiki:dokuwiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// |
- | <code java> | + | <code java [enable_line_numbers=" |
/** | /** | ||
* The HelloWorldApp class implements an application that | * The HelloWorldApp class implements an application that | ||
Zeile 417: | Zeile 383: | ||
</ | </ | ||
- | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 | + | The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript-french, actionscript, |
- | + | ||
- | There are additional [[doku> | + | |
==== Downloadable Code Blocks ==== | ==== Downloadable Code Blocks ==== | ||
Zeile 425: | Zeile 389: | ||
When you use the '' | When you use the '' | ||
- | < | + | < |
+ | <file php myexample.php> | ||
<file php myexample.php> | <file php myexample.php> | ||
<?php echo "hello world!"; | <?php echo "hello world!"; | ||
Zeile 438: | Zeile 403: | ||
- | ===== Embedding HTML and PHP ===== | + | ===== Embedding HTML, JavaScript |
- | You can embed raw HTML or PHP code into your documents by using the '' | + | You can embed raw HTML, JavaScript |
- | HTML example: | + | ==== HTML example: |
- | < | + | |
+ | < | ||
< | < | ||
- | This is some <span style=" | + | |
</ | </ | ||
- | < | ||
- | <p style=" | ||
- | </ | ||
</ | </ | ||
Zeile 456: | Zeile 419: | ||
This is some <span style=" | This is some <span style=" | ||
</ | </ | ||
+ | |||
+ | <code html [enable_line_numbers=" | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
< | < | ||
<p style=" | <p style=" | ||
</ | </ | ||
- | PHP example: | + | ==== JavaScript ==== |
- | < | + | < |
+ | < | ||
+ | // the hello world program | ||
+ | document.write(' | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | // the hello world program | ||
+ | document.write(' | ||
+ | </ | ||
+ | |||
+ | ==== PHP example: ==== | ||
+ | |||
+ | <code php [enable_line_numbers=" | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | |
- | echo phpversion(); | + | echo '< |
- | echo ' (generated inline HTML)'; | + | echo ' |
</ | </ | ||
+ | </ | ||
+ | |||
+ | <code php [enable_line_numbers=" | ||
<PHP> | <PHP> | ||
echo '< | echo '< | ||
- | echo '< | + | echo '< |
echo '</ | echo '</ | ||
</ | </ | ||
</ | </ | ||
+ | < | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | |
- | echo phpversion(); | + | echo phpversion(); |
- | echo ' (inline HTML)'; | + | echo ' (generated |
</ | </ | ||
+ | </ | ||
+ | |||
+ | <php> echo 'The PHP version: '; echo phpversion(); | ||
+ | |||
+ | <code php [enable_line_numbers=" | ||
<PHP> | <PHP> | ||
- | echo '< | + | |
- | echo '< | + | echo '< |
- | echo '</ | + | echo '</ |
</ | </ | ||
+ | </ | ||
+ | |||
+ | <PHP> echo '< | ||
**Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | ||
Zeile 497: | Zeile 494: | ||
| 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:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered. | + | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:dokuwiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:dokuwiki]] to re-render the page if it is more than //refresh period// since the page was last rendered. |
- | + | ||
- | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | + | |
**Example: | **Example: |