差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
|
wiki:syntax [2025/11/08 15:44] 74.7.227.174 已恢复为旧版 (2025/10/29 18:57) |
wiki:syntax [2025/11/11 11:59] (当前版本) 114.119.147.166 已恢复为旧版 (2024/12/07 22:12) |
||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== | + | ====== |
| - | <WRAP center info 60%> | + | |
| - | 此条目引用自DokuWiki官方:[[doku> | + | |
| - | </ | + | |
| - | [[doku> | + | [[doku> |
| - | ===== 基本文字格式 | + | ===== Basic Text Formatting |
| - | DokuWiki支持**粗体**,// | + | |
| - | | + | DokuWiki |
| - | 当然,您可以**__//'' | + | |
| - | 您也可以使用< | + | DokuWiki supports **bold**, |
| + | Of course you can **__//'' | ||
| - | 您也可以使用<sub>下标</ | + | You can use <sub>subscript</ |
| - | 同时也可以使用<del>删除线</del>标记某些信息。 | + | You can use <sub>subscript</sub> and < |
| - | 同时也可以使用<del>删除线</ | + | You can mark something as <del>deleted</ |
| - | **段落**是由空行所建立的。如果您想**强制换行**而不建立段落,您可以使用两个连续的反斜杠接空格或回车作为标记。请看样例: | + | 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. |
| - | 双反斜杠只在回车符之前\\ | + | |
| - | 或者接在\\ 一个空格之前的时候才有效。\\而这样就并不起作用。 | + | |
| - | 这是一些有着换行标记的文字。\\ 请注意 | + | 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 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. |
| - | DokuWiki支持以多种形式创建链接。 | + | ===== Links ===== |
| - | ==== 外部链接 ==== | + | DokuWiki supports multiple ways of creating links. |
| - | 外部链接会被自动地识别:http:// | + | ==== External ==== |
| - | DokuWiki支持以多种形式创建链接。外部链接会被自动地识别: | + | External links are recognized automagically: |
| - | | + | |
| - | ——您也可以设置链接文本:[[http:// | + | |
| - | 类似这样的电子邮件地址:< | + | |
| - | ==== 内部链接 ==== | + | DokuWiki supports multiple ways of creating links. External links are recognized |
| + | automagically: | ||
| + | link text as well: [[http:// | ||
| + | addresses like this one: < | ||
| - | 内部链接可以用方括号创建。您可以只给出[[页面名]],或附加[[页面名|链接文本]]。 | + | ==== Internal ==== |
| - | 内部链接可以用方括号创建。您可以只给出 | + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional |
| - | | + | |
| - | [[doku>pagename|Wiki的页面名]]会被自动地转换为小写字母,并且不允许使用特殊字符。 | + | Internal links are created by using square brackets. You can either just give |
| + | a [[pagename]] or use an additional | ||
| - | 您可以通过在页面名中添加冒号的方式来使用[[某目录: | + | [[doku> |
| - | 您可以通过在页面名中添加冒号的方式来使用[[某目录:命名空间]]。 | + | You can use [[some:namespaces]] by using a colon in the pagename. |
| - | 如果您需要更多有关“命名空间(namespaces)”的详细信息,请参见[[doku>namespaces]]。 | + | You can use [[some:namespaces]] |
| - | 链接到一个特定章节也是可能的。只需要在# | + | For details about namespaces see [[doku> |
| - | 这是一个指向[[syntax#内部链接|本节]]的链接。 | + | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. |
| - | 注意: | + | This links to [[syntax#internal|this Section]]. |
| - | * 指向[[syntax|已存在页面]]的和[[nonexisting|不存在页面]]的链接,其外观是不同的。 | + | |
| - | * 默认情况下,DokuWiki不使用[[wp> | + | |
| - | * 当一节的标题改变时,它的书签也会改变。因此,请不要过于依赖章节链接。 | + | |
| - | ==== Wiki间链接 ==== | + | Notes: |
| - | DokuWiki支持[[doku>Interwiki]](Wiki间链接)。他们是到其他Wiki的快速链接。例如,这是一个指向Wikipedia上Wiki条目的链接:[[wp>Wiki]]。 | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
| + | * DokuWiki | ||
| + | * When a section' | ||
| - | DokuWiki支持[[doku> | + | ==== Interwiki |
| - | 例如,这是一个指向Wikipedia上Wiki条目的链接:[[wp> | + | |
| - | ==== Windows共享文件夹 | + | |
| - | Windows共享文件夹,例如[[\\server\share|这个]]也可以被识别。请注意,这只在企业[[wp>Intranet|内部网]]等局域网环境中才有意义。 | + | DokuWiki supports |
| - | | + | |
| + | For example this is a link to Wikipedia' | ||
| - | 注: | + | ==== Windows Shares ==== |
| - | * 出于安全原因,只有在微软IE浏览器上才能够直接访问Windows共享文件夹(并且仅在“本地区域”)。 | + | Windows |
| - | * 对于Mozilla和Firefox可以通过[[http:// | + | |
| - | | + | |
| - | ==== 图像链接 ==== | + | |
| - | 您也可以通过结合链接和[[# | + | Notes: |
| - | [[http://www.php.net|{{wiki: | + | |
| + | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/ | ||
| + | <?php | ||
| + | /** | ||
| + | * Customization of the english language file | ||
| + | * Copy only the strings that needs to be modified | ||
| + | */ | ||
| + | $lang[' | ||
| + | </ | ||
| + | |||
| + | ==== Image Links ==== | ||
| + | |||
| + | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | ||
| + | |||
| + | [[http://php.net|{{wiki: | ||
| - | [[http://www.php.net|{{wiki: | + | [[http:// |
| - | 请注意:图像的格式化语法是链接文本唯一接受的格式化语法。 | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
| - | 所有的图像和链接语法都是支持的(包括图像大小调整、内部和外部的图像与链接以及wiki内链接)。 | + | The whole [[# |
| - | ===== 脚注 | + | ===== Footnotes |
| - | 您可以使用两个连续小括号来添加脚注((这是一个脚注))。 | + | You can add footnotes |
| - | | + | |
| - | ===== 分节 | + | ===== Sectioning |
| - | 您可以使用多达5层的标题来组织您的内容。如果您使用了三个以上的标题,将自动生成目录——这可以通过在页面加入''< | + | 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 |
| - | ==== H3标题 | + | ==== Headline Level 3 ==== |
| - | === H4标题 | + | === Headline Level 4 === |
| - | == H5标题 | + | == Headline Level 5 == |
| - | ==== H3标题 | + | ==== Headline Level 3 ==== |
| - | === H4标题 | + | === Headline Level 4 === |
| - | == H5标题 | + | == Headline Level 5 == |
| - | 您可以通过4个以上连续的“-”号来创建一条水平分割线: | + | By using four or more dashes, you can make a horizontal line: |
| ---- | ---- | ||
| + | ===== Media Files ===== | ||
| - | ===== 图像和其它文件 ===== | + | You can include external and internal [[doku> |
| - | 您可以用两个大括号在页面中加入外部或内部的[[doku> | + | Real size: {{wiki: |
| - | 原始大小: | + | Resize to given width: |
| - | 指定宽度: | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
| - | 指定宽度和高度((当指定的长宽比与图像的不一致,在调整图像大小前,其将先被裁剪到新的比例)): | + | Resized external image: {{https:// |
| - | 重新指定宽度和高度的外部图像: | + | Real size: {{wiki: |
| + | Resize to given width: | ||
| + | Resize to given width and height: {{wiki: | ||
| + | Resized external image: {{https://secure.php.net/ | ||
| - | 原始大小: | ||
| - | 指定宽度: | ||
| - | 指定宽度和高度((当指定的长宽比与图像的不一致,在调整图像大小前,其将先被裁剪到新的比例)): | ||
| - | 重新指定宽度和高度的外部图像: | ||
| - | 通过使用左空格或右空格,您可以选择对齐方式。 | + | By using left or right whitespaces you can choose the alignment. |
| {{ wiki: | {{ wiki: | ||
| 行 151: | 行 157: | ||
| {{ wiki: | {{ wiki: | ||
| - | 当然,您也可以指定一个标题(多数浏览器显示为提示文本((鼠标悬停可以看到)))。 | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
| - | {{ wiki: | + | {{ wiki: |
| - | {{ wiki: | + | {{ wiki: |
| - | 如果您指定的文件名(无论是外部的还是内部的)不是一个图像('' | + | For linking an image to another page see [[#Image Links]] above. |
| - | 对于将图像链接到其他页面,参见上面的[[# | + | ==== Supported Media Formats |
| - | ===== 列表 ===== | + | |
| - | DokuWiki支持带编号或不带编号的列表。要创建列表,在文字前加入两个空格,然后使用'' | + | DokuWiki |
| - | * 这是一个列表 | + | | 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 ===== | ||
| + | |||
| + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | ||
| + | |||
| + | * This is a list | ||
| + | * The second item | ||
| + | * You may have different levels | ||
| + | * Another item | ||
| + | |||
| + | | ||
| + | - Another item | ||
| + | - Just use indention for deeper levels | ||
| + | - That's it | ||
| < | < | ||
| - | * 这是一个列表 | + | * This is a list |
| - | * 第二项 | + | * The second item |
| - | * 您可以有不同的层次 | + | * You may have different levels |
| - | * 另一项 | + | * Another item |
| - | - 带编号的列表 | + | - The same list but ordered |
| - | - 另一项 | + | - Another item |
| - | - 用缩进表示更深的层 | + | - Just use indention for deeper levels |
| - | - 就这样 | + | - That's it |
| </ | </ | ||
| - | ===== 文本转换 ===== | + | Also take a look at the [[doku> |
| - | DokuWiki可以将预定义的字符或者字符串转换成图像、其他文本或HTML。 | + | ===== Text Conversions ===== |
| - | 文本转换为图像主要用于表情符号。文本到HTML的转换用于排版的字符替换,但也可以配置为使用其他HTML。 | + | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. |
| - | ==== 文本到图像的转换 ==== | + | |
| - | DokuWiki会将一些常用的 | + | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, |
| + | |||
| + | ==== Text to Image Conversions ==== | ||
| + | |||
| + | DokuWiki | ||
| * 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
| 行 216: | 行 253: | ||
| * DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
| + | ==== Text to HTML Conversions ==== | ||
| - | ==== 文本到HTML的转换 ==== | + | Typography: |
| - | + | ||
| - | 印刷:[[DokuWiki]]可以将特定字符转换为印刷时所用的样式。这是可识别的字符示例。 | + | |
| -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| 行 229: | 行 265: | ||
| </ | </ | ||
| - | 同样的做法可以产生任何类型的HTML,只需要添加到[[doku> | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> |
| - | 这里有三个例外,它们并非来自模式文件:乘号(640x480)、'单引号'和"双引号"。它们可以通过[[doku> | + | There are three exceptions which do not come from that pattern file: multiplication entity |
| - | ===== 引用 | + | ===== Quoting |
| - | 有时您想将某些文本标记为回复或者评论。您可以使用下列语法: | + | 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' |
| - | >> | + | >> |
| - | > 真的? | + | > Really? |
| - | >> | + | >> |
| - | >>> | + | >>> |
| </ | </ | ||
| - | 我想我们应该做这件事 | + | I think we should do it |
| - | > 不,我们不应该 | + | > No we shouldn' |
| - | >> | + | >> |
| - | > 真的? | + | > Really? |
| - | >> | + | >> |
| - | >>> | + | >>> |
| - | ===== 表格 | + | ===== Tables |
| - | DokuWiki支持用简单的语法创建表格。 | + | DokuWiki |
| - | ^ 标题1 ^ 标题2 | + | ^ Heading |
| - | | (1,1) | + | | Row 1 Col 1 | Row 1 Col 2 |
| - | | (2,1) | 一些跨列合并(注意两条竖线) | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
| - | | (3,1) | + | | Row 3 Col 1 | Row 3 Col 2 |
| - | 表格的每一行都以分隔符 | + | Table rows have to start and end with a '' |
| - | ^ 标题1 ^ 标题2 | + | ^ Heading |
| - | | (1,1) | + | | Row 1 Col 1 | Row 1 Col 2 |
| - | | (2,1) | 一些跨列合并(注意两条竖线) | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
| - | | (3,1) | + | | Row 3 Col 1 | Row 3 Col 2 |
| - | 要水平合并单元格,只需要将后一个单元格设置为空即可,如上面演示的一样。请确保每一行有相同数量的单元格分隔符! | + | To connect cells horizontally, |
| - | 竖直的标题列也是可以实现的: | + | Vertical tableheaders are possible, too. |
| - | | ^ 标题1 ^ 标题2 ^ | + | | ^ Heading |
| - | ^ 标题3 | (1,2) | + | ^ Heading |
| - | ^ 标题4 | 不再合并单元格 | + | ^ Heading |
| - | ^ 标题5 | (2,2) | + | ^ Heading |
| - | 可以看到,单元格前面的分隔符决定了单元格的格式。 | + | As you can see, it's the cell separator before a cell which decides about the formatting: |
| - | | ^ 标题1 ^ 标题2 ^ | + | | ^ Heading |
| - | ^ 标题3 | (1,2) | + | ^ Heading |
| - | ^ 标题4 | 不再合并单元格 | + | ^ Heading |
| - | ^ 标题5 | (2,2) | + | ^ Heading |
| - | 跨行合并单元格(垂直合并单元格)也是可以实现的,通过在下面的相邻单元格输入'':::'' | + | You can have rowspans |
| - | ^ 标题1 ^ 标题 | + | ^ Heading |
| - | |(1,1)| 对该单元垂直合并 | + | | Row 1 Col 1 | this cell spans vertically |
| - | |(2,1)| ::: |(2,3)| | + | | Row 2 Col 1 | ::: | Row 2 Col 3 | |
| - | |(3,1)| ::: |(2,3)| | + | | Row 3 Col 1 | ::: | Row 2 Col 3 | |
| - | 除跨行合并语法外,单元格中不能包含其他任何内容。 | + | Apart from the rowspan syntax those cells should not contain anything else. |
| - | ^ 标题1 ^ 标题 | + | ^ Heading |
| - | |(1,1)| 对该单元垂直合并 | + | | Row 1 Col 1 | this cell spans vertically |
| - | |(2,1)| ::: |(2,3)| | + | | Row 2 Col 1 | ::: | Row 2 Col 3 | |
| - | |(3,1)| ::: |(2,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. | ||
| - | 您可以对齐表格的文字。只需在文本的相反方向添加至少两个空格:如果需要右对齐,在左边添加两个空格;反之,则在右边添加。在两边均添加空格可以实现居中对齐。 | + | ^ Table with alignment |
| + | | | ||
| + | |left | | ||
| + | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| - | ^ 有对齐的表格 | + | This is how it looks in the source: |
| - | | | + | |
| - | | 左对齐 | + | |
| - | | xxxxxxxxxxxx | + | |
| - | 下面是源文件中的样子: | + | |
| - | + | | right| | |
| - | | + | |left |
| - | | | + | |
| - | |左对齐 | + | |
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| - | 注意:不支持垂直对齐。 | + | Note: Vertical alignment is not supported. |
| - | ===== 无格式化 | + | ===== No Formatting |
| - | 如果您需要文本完全显示为它键入的样子(没有任何格式化),用'' | + | If you need to display text exactly like it is typed (without any formatting), |
| < | < | ||
| - | 这是一些包含这样的地址:http:// | + | This is some text which contains addresses like this: http:// |
| </ | </ | ||
| - | 对于带有表情符号的%%;-)的//__这段__文本//%%也一样。 | + | The same is true for %%//__this__ text// with a smiley ;-)%%. |
| < | < | ||
| - | | + | |
| </ | </ | ||
| - | | + | |
| - | ===== 代码块 | + | ===== Code Blocks |
| - | 您可以将代码块包含到文档中,可以通过缩进两个空格(像前面例子中所用的)或者使用标签'' | + | |
| - | 这是缩进了两个空格的文本。 | + | You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' |
| + | |||
| + | This is text is indented by two spaces. | ||
| < | < | ||
| - | 这是预格式化的代码,所有空格都被保留:像 | + | This is preformatted code all spaces are preserved: like <-this |
| </ | </ | ||
| < | < | ||
| - | 这非常相似,但您可以用它来表明您引用了一个文件。 | + | This is pretty much the same, but you could use it to show that you quoted a file. |
| </ | </ | ||
| - | 这些区块由下面的源码创建: | + | Those blocks were created by this source: |
| - | | + | |
| < | < | ||
| - | | + | |
| </ | </ | ||
| < | < | ||
| - | | + | |
| </ | </ | ||
| - | | ||
| - | ==== 语法高亮 ==== | ||
| - | [[wiki: | + | ==== Syntax Highlighting ==== |
| + | |||
| + | [[wiki: | ||
| <code java> | <code java> | ||
| 行 381: | 行 417: | ||
| </ | </ | ||
| - | 当前可以识别下列语言字符串://4cs, abap, actionscript-french, actionscript, | + | The following language strings are currently recognized: |
| - | ==== 可下载的代码块 ==== | + | There are additional [[doku> |
| - | 当您使用上面的'' | + | ==== Downloadable Code Blocks ==== |
| + | When you use the '' | ||
| < | < | ||
| 行 398: | 行 435: | ||
| </ | </ | ||
| - | 如果您不想要任何高亮,但想要一个可下载的文件,指定破折号('' | + | If you don't want any highlighting but want a downloadable file, specify a dash ('' |
| - | ===== 嵌入HTML和PHP ===== | ||
| - | 您可以嵌入原始HTML代码到文件中,通过使用'' | + | ===== Embedding |
| - | 例子: | + | You can embed raw HTML or PHP code into your documents by using the '' |
| + | |||
| + | HTML example: | ||
| < | < | ||
| < | < | ||
| - | 这是一些<span style=" | + | This is some <span style=" |
| </ | </ | ||
| < | < | ||
| - | <p style=" | + | <p style=" |
| </ | </ | ||
| </ | </ | ||
| < | < | ||
| - | 这是一些<span style=" | + | This is some <span style=" |
| </ | </ | ||
| < | < | ||
| - | <p style=" | + | <p style=" |
| </ | </ | ||
| - | ===== RSS/ATOM Feed聚合===== | + | PHP example: |
| - | [[DokuWiki]]能够从外部的XML feed中聚合数据。为了解析这些XML feed,使用了[[http://simplepie.org/|SimplePie]]。所有的能够被SimplePie理解的格式都可以在DokuWiki中使用。您可以通过多个参数来改变渲染,参数之间用空格隔开: | + | < |
| + | < | ||
| + | echo 'The PHP version: '; | ||
| + | echo phpversion(); | ||
| + | echo ' (generated inline HTML)'; | ||
| + | </php> | ||
| + | < | ||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '</ | ||
| + | </ | ||
| + | </code> | ||
| - | ^ 参数 | + | <php> |
| - | | any number | + | echo 'The PHP version: '; |
| - | | reverse | + | echo phpversion(); |
| - | | author | + | echo ' (inline HTML)'; |
| - | | date | 显示条目日期 | + | </ |
| - | | description | + | <PHP> |
| - | | //n//[dhm] | 刷新周期,其中,d=天数,h=小时数,m=分。例如,12h=12个小时。 | + | echo '< |
| + | echo '< | ||
| + | echo '</tr></table>'; | ||
| + | </PHP> | ||
| - | 刷新周期默认是4小时。小于或者等于10分钟均视为10分钟。[[wiki:DokuWiki]]通常会提供页面的缓存版,显然,这种做法不适用于包含动态外部内容的页面。上面的参数告诉[[wiki: | + | **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 ===== |
| + | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
| + | |||
| + | ^ Parameter | ||
| + | | any number | will be used as maximum number items to show, defaults to 8 | | ||
| + | | reverse | ||
| + | | author | ||
| + | | date | show item dates | | ||
| + | | description| show the item description. If [[doku> | ||
| + | | nosort | ||
| + | | //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: | ||
| + | |||
| + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
| + | |||
| + | **Example:** | ||
| {{rss> | {{rss> | ||
| 行 442: | 行 510: | ||
| {{rss> | {{rss> | ||
| - | ===== 控制宏 ===== | ||
| - | 一些语法会影响DokuWiki对页面的解释,而自身不输出任何内容。可用的控制宏如下: | + | ===== Control Macros ===== |
| + | |||
| + | Some syntax influences how DokuWiki | ||
| + | |||
| + | ^ Macro ^ Description | | ||
| + | | %%~~NOTOC~~%% | ||
| + | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
| + | |||
| + | ===== Syntax Plugins ===== | ||
| + | |||
| + | DokuWiki' | ||
| - | ^ 宏 ^ 描述| | + | ~~INFO: |
| - | | %%~~NOTOC~~%% | 如果页面出现该控制宏,将不会创建目录| | + | |
| - | | %%~~NOCACHE~~%% | DokuWiki默认会缓存所有的输出。有时并不希望这样(例如,当使用了上面的%%< | + | |
| - | ===== 语法插件 ===== | + | |