Khác biệt
Đây là những khác biệt giữa hai phiên bản của trang.
Phiên bản sau | Phiên bản trước | ||
wiki:syntax [2025/07/21 09:45] – đã tạo - sửa đổi bên ngoài 127.0.0.1 | wiki:syntax [2025/07/23 01:35] (hiện tại) – [Links] Dzung Do | ||
---|---|---|---|
Dòng 1: | Dòng 1: | ||
- | ====== | + | ====== |
- | [[doku> | + | Bảng Tra được xây dựng trên nền phần mềm Dokuwiki, hỗ trợ soạn thảo với quy tắc đơn giản, which tries to make the datafiles to be as readable as possible. 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 "Edit this page". If you want to try something, just use the [[playground: |
===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
- | DokuWiki supports **bold**, //italic//, __underlined__ and '' | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
DokuWiki supports **bold**, //italic//, __underlined__ and '' | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
Dòng 20: | Dòng 20: | ||
**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 | + | 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\\ a whitespace \\this happens without it. | + | |
This is some text with some linebreaks\\ Note that the | This is some text with some linebreaks\\ Note that the | ||
Dòng 30: | Dòng 28: | ||
You should use forced newlines only if really needed. | You should use forced newlines only if really needed. | ||
- | ===== Links ===== | + | ===== Các loại liên kết ===== |
+ | |||
+ | Bảng Tra hỗ trợ nhiều loại liên kết. | ||
- | DokuWiki supports multiple ways of creating links. | ||
==== External ==== | ==== External ==== | ||
- | External links are recognized automagically: | + | External links are recognized automagically: |
DokuWiki supports multiple ways of creating links. External links are recognized | DokuWiki supports multiple ways of creating links. External links are recognized | ||
Dòng 105: | Dòng 104: | ||
The whole [[# | The whole [[# | ||
- | ===== Footnotes | + | ===== Cước chú (footnotes) |
- | You can add footnotes | + | Bạn có thể thêm cước chú này (( |
+ | Đây là ví dụ của cước chú (Phụ chú cuối trang) | ||
+ | )) bằng cách đưa nó vào trong 2 cặp dấu ngoặc đơn liền nhau. | ||
+ | |||
+ | Bạn có thể thêm cước chú theo cấu trúc ((Đây là một cước chú)) được đặt bên trong 2 cặp dấu ngoặc đơn liền nhau. | ||
- | You can add footnotes ((This is a footnote)) by using double parentheses. | ||
===== Sectioning ===== | ===== Sectioning ===== | ||
- | You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string '' | + | You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string '' |
==== Headline Level 3 ==== | ==== Headline Level 3 ==== | ||
+ | |||
=== Headline Level 4 === | === Headline Level 4 === | ||
+ | |||
== Headline Level 5 == | == Headline Level 5 == | ||
Dòng 135: | Dòng 139: | ||
Resize to given width: | Resize to given width: | ||
- | 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' | ||
+ | )): {{wiki: | ||
Resized external image: {{https:// | Resized external image: {{https:// | ||
Dòng 143: | Dòng 149: | ||
Resize to given width and height: {{wiki: | Resize to given width and height: {{wiki: | ||
Resized external image: {{https:// | Resized external image: {{https:// | ||
- | |||
By using left or right whitespaces you can choose the alignment. | By using left or right whitespaces you can choose the alignment. | ||
Dòng 172: | Dòng 177: | ||
| Video | '' | | Video | '' | ||
| Audio | '' | | Audio | '' | ||
- | | Flash | '' | + | | Flash | '' |
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. | ||
Dòng 208: | Dòng 213: | ||
- That's it | - That's it | ||
- | < | + | < |
* This is a list | * This is a list | ||
* The second item | * The second item | ||
Dòng 258: | Dòng 263: | ||
Typography: [[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) "He thought ' |
- | "He thought ' | + | |
- | < | + | < |
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
"He thought ' | "He thought ' | ||
Dòng 274: | Dòng 278: | ||
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 | I think we should do it | ||
Dòng 304: | Dòng 308: | ||
DokuWiki supports a simple syntax to create tables. | DokuWiki supports a simple syntax to create tables. | ||
- | ^ Heading 1 ^ Heading 2 | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | | Row 1 Col 1 | Row 1 Col 2 | + | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | |
- | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
- | | Row 3 Col 1 | Row 3 Col 2 | + | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | |
Table rows have to start and end with a '' | Table rows have to start and end with a '' | ||
Dòng 320: | Dòng 324: | ||
Vertical tableheaders are possible, too. | Vertical tableheaders are possible, too. | ||
- | | ^ 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: | As you can see, it's the cell separator before a cell which decides about the formatting: | ||
Dòng 334: | Dòng 338: | ||
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 ^ |
- | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | + | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | |
- | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | | Row 2 Col 1 | ::: | Row 2 Col 3 | |
- | | 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. | Apart from the rowspan syntax those cells should not contain anything else. | ||
Dòng 348: | Dòng 352: | ||
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 | center |
- | |left | | + | | left | right | center |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
Dòng 366: | Dòng 370: | ||
If you need to display text exactly like it is typed (without any formatting), | If you need to display text exactly like it is typed (without any formatting), | ||
- | < | + | %% This is some text which contains addresses like this: http:// |
- | This is some text which contains addresses like this: http:// | + | |
- | </ | + | |
- | The same is true for %%// | + | |
< | < | ||
Dòng 382: | Dòng 383: | ||
This is text is indented by two spaces. | This is text is indented by two spaces. | ||
- | < | + | < |
This is preformatted code all spaces are preserved: like <-this | This is preformatted code all spaces are preserved: like <-this | ||
</ | </ | ||
- | <file> | + | <code -> |
This is pretty much the same, but you could use it to show that you quoted a file. | This is pretty much the same, but you could use it to show that you quoted a file. | ||
- | </file> | + | </code> |
Those blocks were created by this source: | Those blocks were created by this source: | ||
Dòng 404: | Dòng 405: | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | [[wiki: | + | [[wiki: |
<code java> | <code java> | ||
Dòng 426: | Dòng 427: | ||
When you use the '' | When you use the '' | ||
- | < | + | < |
<file php myexample.php> | <file php myexample.php> | ||
<?php echo "hello world!"; | <?php echo "hello world!"; | ||
Dòng 432: | Dòng 433: | ||
</ | </ | ||
- | <file php myexample.php> | + | <code php myexample.php> |
<?php echo "hello world!"; | <?php echo "hello world!"; | ||
- | </file> | + | </code> |
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 ('' | ||
===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
+ | |||
[[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 | ||
| any number | will be used as maximum number items to show, defaults to 8 | | | any number | will be used as maximum number items to show, defaults to 8 | | ||
- | | reverse | + | | reverse |
- | | author | + | | author |
- | | date | + | | date | show item dates | |
- | | description| show the item description. All HTML tags will be stripped | | + | | description | show the item description. All HTML tags will be stripped | |
- | | 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). | | ||
Dòng 458: | Dòng 460: | ||
{{rss> | {{rss> | ||
- | {{rss> | + | {{rss> |
- | + | ===== Điều khiển Macro ===== | |
- | ===== Control Macros | + | |
Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | ||
- | ^ Macro | + | ^ Macro ^ Description |
- | | %%~~NOTOC~~%% | + | | %%~~NOTOC~~%% |
| %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
Dòng 474: | Dòng 475: | ||
~~INFO: | ~~INFO: | ||
+ | |||