wiki:syntax
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:syntax [2015/05/12 17:37] – Page moved from general:wiki:syntax to wiki:syntax 0440 | wiki:syntax [2025/01/30 04:06] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Formatting Syntax ====== | ====== Formatting Syntax ====== | ||
| - | |||
| - | ==== Text Formatting ==== | ||
| - | ^ How it looks ^ Syntax | ||
| - | | **bold** | ||
| - | | // | ||
| - | | __underlined__ | ||
| - | | '' | ||
| - | | **// | ||
| - | | normal< | ||
| - | | normal< | ||
| - | | < | ||
| - | |||
| - | |||
| - | ==== Paragraph ==== | ||
| - | Paragraphs just have a blank line between them. If you don't have a blank line | ||
| - | the will just keep going | ||
| - | |||
| - | |||
| - | ^ How it looks ^ Syntax ^ | ||
| - | | < | ||
| - | This is the first paragraph. | ||
| - | |||
| - | This is the second paragraph. </ | ||
| - | |||
| - | This is the second paragraph. | ||
| - | </ | ||
| - | | < | ||
| - | This is the first paragraph. | ||
| - | This is the second paragraph. </ | ||
| - | This is the second paragraph. | ||
| - | </ | ||
| - | |||
| - | ==== Newline ==== | ||
| - | You can also force a newline with %%\\%% | ||
| - | |||
| - | ^ How it looks ^ Syntax ^ | ||
| - | | This is \\ a paragraph| < | ||
| - | |||
| - | ==== Links ==== | ||
| - | |||
| - | ^ Description ^ How it looks ^ Syntax ^ | ||
| - | | Link to another page | [[syntax]]| < | ||
| - | | Show different text | [[syntax|Text Shown]]| < | ||
| - | |||
| - | |||
| - | |||
| - | ====== Original Documentation of Formatting Syntax ====== | ||
| [[doku> | [[doku> | ||
| Line 52: | 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 '' | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
| Line 93: | Line 45: | ||
| ==== Internal ==== | ==== Internal ==== | ||
| - | Internal links are created by using square brackets. You can either just give a [[wiki:pagename]] or use an additional [[wiki:pagename|link text]]. | + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. |
| Internal links are created by using square brackets. You can either just give | Internal links are created by using square brackets. You can either just give | ||
| Line 112: | Line 64: | ||
| Notes: | Notes: | ||
| - | * Links to [[syntax|existing pages]] are shown in a different style from [[wiki:nonexisting]] ones. | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
| * DokuWiki does not use [[wp> | * DokuWiki does not use [[wp> | ||
| * When a section' | * When a section' | ||
| Line 132: | 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 140: | Line 97: | ||
| 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://www.php.net|{{wiki: | + | [[http:// |
| - | [[http://www.php.net|{{wiki: | + | [[http:// |
| 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. | ||
| Line 180: | Line 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: | + | 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: |
| Line 218: | Line 175: | ||
| If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | 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 ==== | ==== Fallback Formats ==== | ||
| Line 284: | Line 247: | ||
| * ;-) %% ;-) %% | * ;-) %% ;-) %% | ||
| * ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
| + | * m( %% m( %% | ||
| * :?: %% :?: %% | * :?: %% :?: %% | ||
| * :!: %% :!: %% | * :!: %% :!: %% | ||
| Line 292: | Line 256: | ||
| ==== Text to HTML Conversions ==== | ==== Text to HTML Conversions ==== | ||
| - | Typography: [[wiki:admin:DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | + | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. |
| -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| Line 310: | Line 274: | ||
| 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 366: | Line 332: | ||
| ^ 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 438: | Line 404: | ||
| ==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
| - | [[wiki:admin:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// | + | [[wiki: |
| <code java> | <code java> | ||
| Line 452: | Line 418: | ||
| </ | </ | ||
| - | The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript-french, actionscript, | + | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 |
| + | |||
| + | There are additional [[doku> | ||
| ==== Downloadable Code Blocks ==== | ==== Downloadable Code Blocks ==== | ||
| Line 469: | Line 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 ===== | ||
| - | [[wiki:admin:DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | + | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// |
| ^ Parameter | ^ Parameter | ||
| Line 529: | Line 446: | ||
| | author | | author | ||
| | date | show item dates | | | date | show item dates | | ||
| - | | description| show the item description. | + | | description| show the item description. |
| + | | 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:admin: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:admin: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: |
| + | |||
| + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
| **Example: | **Example: | ||
| Line 554: | Line 474: | ||
| ~~INFO: | ~~INFO: | ||
| + | |||
wiki/syntax.1431452272.txt.gz · Last modified: by 0440
