Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
| wiki:syntax [22.04.2021 um 06:35 Uhr] – [Tables] Lina Förster | wiki:syntax [01.04.2024 um 17:33 Uhr] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 137: | Zeile 137: | ||
| 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: {{https://secure.php.net/ | + | Resized external image: {{https://www.php.net/ |
| 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: {{https://secure.php.net/ | + | Resized external image: {{https://www.php.net/ |
| Zeile 247: | Zeile 247: | ||
| * ;-) %% ;-) %% | * ;-) %% ;-) %% | ||
| * ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
| + | * m( %% m( %% | ||
| * :?: %% :?: %% | * :?: %% :?: %% | ||
| * :!: %% :!: %% | * :!: %% :!: %% | ||
| Zeile 302: | Zeile 303: | ||
| DokuWiki supports a simple syntax to create tables. | DokuWiki supports a simple syntax to create tables. | ||
| - | |||
| - | ^Heading 1 ^Heading 2 ^Heading 3 | | ||
| - | |Row 1 Col 1 |Row 1 Col 2 |Row 1 Col 3 | | ||
| - | |Row 2 Col 1 |some colspan (note the double pipe)|| | ||
| - | |Row 3 Col 1 |Row 3 Col 2 |Row 3 Col 3 | | ||
| - | |||
| - | Table rows have to start and end with a '''' | ||
| - | < | ||
| ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
| Zeile 316: | Zeile 309: | ||
| | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | ||
| - | </ | + | Table rows have to start and end with a '' |
| + | |||
| + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
| + | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
| + | | Row 2 Col 1 | some colspan (note the double pipe) || | ||
| + | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | ||
| To connect cells horizontally, | To connect cells horizontally, | ||
| Zeile 322: | Zeile 320: | ||
| Vertical tableheaders are possible, too. | Vertical tableheaders are possible, too. | ||
| - | | ^Heading 1 ^Heading 2 | | + | | ^ Heading 1 ^ Heading 2 ^ |
| - | ^Heading 3 |Row 1 Col 2 |Row 1 Col 3 | | + | |
| - | ^Heading 4 |no colspan this time| | | + | |
| - | ^Heading 5 |Row 2 Col 2 |Row 2 Col 3 | | + | |
| - | + | ||
| - | As you can see, it's the cell separator before a cell which decides about the formatting: | + | |
| - | < | + | |
| - | + | ||
| - | | ^ Heading 1 ^ Heading 2 ^ | + | |
| ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
| - | ^ Heading 4 | no colspan this time | | + | ^ Heading 4 | no colspan this time | | |
| ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
| - | </ | + | As you can see, it's the cell separator before a cell which decides about the formatting: |
| - | You can have rowspans (vertically connected cells) by adding ''< | + | | ^ Heading 1 ^ Heading 2 ^ |
| + | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
| + | ^ Heading 4 | no colspan this time | | | ||
| + | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
| - | ^Heading 1 ^Heading 2 ^Heading 3 | | + | You can have rowspans (vertically |
| - | |Row 1 Col 1 |this cell spans vertically|Row 1 Col 3 | | + | |
| - | |Row 2 Col 1 | ::: |Row 2 Col 3 | | + | |
| - | |Row 3 Col 1 | ::: |Row 2 Col 3 | | + | |
| - | + | ||
| - | Apart from the rowspan syntax those cells should | + | |
| - | < | + | |
| ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
| Zeile 352: | Zeile 339: | ||
| | Row 3 Col 1 | ::: | Row 2 Col 3 | | | Row 3 Col 1 | ::: | Row 2 Col 3 | | ||
| - | </ | + | Apart from the rowspan syntax those cells should not contain anything else. |
| + | |||
| + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
| + | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | ||
| + | | Row 2 Col 1 | ::: | Row 2 Col 3 | | ||
| + | | Row 3 Col 1 | ::: | Row 2 Col 3 | | ||
| You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. | You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. | ||
| - | |||
| - | ^ Table with alignment | ||
| - | | right| | ||
| - | |left | right| | ||
| - | |xxxxxxxxxxxx|xxxxxxxxxxxx|xxxxxxxxxxxx| | ||
| - | |||
| - | This is how it looks in the source: | ||
| - | < | ||
| ^ Table with alignment | ^ Table with alignment | ||
| Zeile 369: | Zeile 353: | ||
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| - | </ | + | This is how it looks in the source: |
| - | Note: Vertical | + | ^ Table with alignment |
| + | | | ||
| + | |left | | ||
| + | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| + | Note: Vertical alignment is not supported. | ||
| ===== No Formatting ===== | ===== No Formatting ===== | ||
| Zeile 449: | Zeile 437: | ||
| 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 'The PHP version: '; | ||
| - | echo phpversion(); | ||
| - | echo ' (generated inline HTML)'; | ||
| - | </ | ||
| - | <PHP> | ||
| - | echo '< | ||
| - | echo '< | ||
| - | echo '</ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | <php> | ||
| - | echo 'The PHP version: '; | ||
| - | echo phpversion(); | ||
| - | echo ' (inline HTML)'; | ||
| - | </ | ||
| - | <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 ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
| Zeile 509: | Zeile 446: | ||
| | author | | author | ||
| | date | show item dates | | | date | show item dates | | ||
| - | | description| show the item description. | + | | description| show the item description. |
| | nosort | | 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). | | ||