用户工具

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

wiki:syntax [2025/09/10 02:14] – 创建 - 外部编辑 127.0.0.1wiki:syntax [2026/05/08 01:21] (当前版本) startpedia
行 1: 行 1:
-====== Formatting Syntax ======+====== 格式语法说明 ======
  
-[[doku>DokuWiki]] supports some simple markup language, 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:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.+[[doku>DokuWiki]] 支持一些简单的标记语言,旨在让数据文件尽可能易读。本页面包含了编辑页面时可能用到的所有语法。只需点击“编辑本页面”查看本页源码即可。如果想尝试操作,请使用[[playground:playground|playground]]页面。更简单的标记可通过[[doku>toolbar|快捷按钮]]轻松使用。
  
-===== Basic Text Formatting =====+===== 基础文本格式 =====
  
-DokuWiki supports **bold**//italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these.+DokuWiki 支持 **粗体**//斜体//、__下划线__ 和 ''等宽体'' 文本。当然,你也可以**__//''组合使用''//__** 所有这些格式。
  
-  DokuWiki supports **bold**//italic//, __underlined__ and ''monospaced'' texts. +  DokuWiki 支持 **粗体**//斜体//、__下划线__ 和 ''等宽体'' 文本。 
-  Of course you can **__//''combine''//__** all these.+  当然,你也可以**__//''组合使用''//__** 所有这些格式。
  
-You can use <sub>subscript</sub> and <sup>superscript</sup>, too.+你也可以使用 <sub>下标</sub> 和 <sup>上标</sup>
  
-  You can use <sub>subscript</sub> and <sup>superscript</sup>, too.+  你也可以使用 <sub>下标</sub> 和 <sup>上标</sup>
  
-You can mark something as <del>deleted</del> as well.+你也可以将某些内容标记为 <del>已删除</del>
  
-  You can mark something as <del>deleted</del> as well.+  你也可以将某些内容标记为 <del>已删除</del>
  
-**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 happens without it.+或后跟\\ 一个空格 \\如果不跟空格就会这样。
  
-  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.+仅在必要时使用强制换行。
  
-===== Links =====+===== 链接 =====
  
-DokuWiki supports multiple ways of creating links.+DokuWiki 支持多种创建链接的方式。
  
-==== External ====+==== 外部链接 ====
  
-External links are recognized automagically: http://www.google.com or simply www.google.com - You can set the link text as well: [[http://www.google.com|This Link points to google]]. Email addresses like this one: <andi@splitbrain.org> are recognized, too.+外部链接会被自动识别:http://www.google.com 或直接 www.google.com —— 你也可以设置链接文本:[[http://www.google.com|这个链接指向谷歌]]。电子邮件地址如 <andi@splitbrain.org> 同样会被识别。
  
-  DokuWiki supports multiple ways of creating links. External links are recognized +  DokuWiki 支持多种创建链接的方式。外部链接会被自动识别: 
-  automagically: http://www.google.com or simply www.google.com - You can set +  http://www.google.com 或直接 www.google.com —— 你也可以设置 
-  link text as well: [[http://www.google.com|This Link points to google]]. Email +  链接文本:[[http://www.google.com|这个链接指向谷歌]]。电子邮件 
-  addresses like this one: <andi@splitbrain.org> are recognized, too.+  地址如 <andi@splitbrain.org> 同样会被识别。
  
-==== Internal ====+==== 内部链接 ====
  
-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 +  内部链接通过方括号创建。你可以直接给出一个[[页面名]], 
-  a [[pagename]] or use an additional [[pagename|link text]].+  或者使用带额外[[页面名|链接文本]]的形式。
  
-[[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed.+[[doku>页面名|Wiki页面名]]会被自动转换为小写,且不允许使用特殊字符。
  
-You can use [[some:namespaces]] by using a colon in the pagename.+你可以在页面名中使用冒号来创建[[某些:命名空间]]
  
-  You can use [[some:namespaces]] by using a colon in the pagename.+  你可以在页面名中使用冒号来创建[[某些:命名空间]]
  
-For details about namespaces see [[doku>namespaces]].+关于命名空间的详情请参考[[doku>namespaces]]
  
-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]].+也可以链接到特定章节,只需在井号后添加章节名称即可,如同 HTML 中的做法。这个链接指向[[syntax#内部|本页面中的“内部链接”章节]]
  
-  This links to [[syntax#internal|this Section]].+  这个链接指向[[syntax#内部|本页面中的“内部链接”章节]]
  
-Notes:+注意事项:
  
-  * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. +  * 指向[[syntax|已存在页面]]的链接与指向[[不存在页面]]的链接显示样式不同。 
-  * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. +  * DokuWiki 默认不使用[[wp>CamelCase]]自动创建链接,但可以在[[doku>config]]配置文件中启用此行为。提示:如果“DokuWiki”本身显示为链接,则表示已启用该功能。 
-  * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.+  * 当章节标题更改时,其书签也会随之改变,因此请勿过度依赖章节链接。
  
-==== Interwiki ====+==== 跨 Wiki 链接 ====
  
-DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].+DokuWiki 支持[[doku>Interwiki]]链接。这是指向其他 Wiki 的快捷链接。例如,这是指向 Wikipedia 上关于 Wiki 页面的链接:[[wp>Wiki]]
  
-  DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. +  DokuWiki 支持[[doku>Interwiki]]链接。这些是快速指向其他 Wiki 的链接。 
-  For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].+  例如,这是指向 Wikipedia 上关于 Wiki 页面的链接:[[wp>Wiki]]
  
-==== Windows Shares ====+==== Windows 共享 ====
  
-Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]].+[[\\server\share|这个]]这样的 Windows 共享也会被识别。请注意,这仅在 homogeneous 用户组(如公司内部的[[wp>Intranet]])中才有意义。
  
-  Windows Shares like [[\\server\share|this]] are recognized, too.+  Windows 共享如[[\\server\share|这个]]也会被识别。
  
-Notes:+注意事项:
  
-  * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). +  * 出于安全原因,默认情况下只有 Microsoft Internet Explorer 支持直接浏览 Windows 共享(且仅在“本地 Intranet”区域中)。 
-  * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php>+  * 对于 Mozilla 和 Firefox,可通过 [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla 知识库]] 中提到的不同变通方法启用。但仍然会有关于尝试打开 Windows 共享的 JavaScript 警告。要移除该警告(针对所有用户),请在 ''conf/lang/en/lang.php'' 文件中添加以下行(更多详情:[[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|本地化]]):<code - conf/lang/en/lang.php>
 <?php <?php
 /** /**
- Customization of the english language file + 对英文语言文件的自定义 
- Copy only the strings that needs to be modified+ 仅复制需要修改的字符串
  */  */
 $lang['js']['nosmblinks'] = ''; $lang['js']['nosmblinks'] = '';
 </code> </code>
  
-==== Image Links ====+==== 图片链接 ====
  
-You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this:+你也可以通过组合链接语法和[[#图片和其他文件|图片]]语法,使用图片链接到其他内部或外部页面,如下所示:
  
   [[http://php.net|{{wiki:dokuwiki-128.png}}]]   [[http://php.net|{{wiki:dokuwiki-128.png}}]]
行 101: 行 101:
 [[http://php.net|{{wiki:dokuwiki-128.png}}]] [[http://php.net|{{wiki:dokuwiki-128.png}}]]
  
-Please note: The image formatting is the only formatting syntax accepted in link names.+请注意:图片格式是链接名称中唯一接受的格式语法。
  
-The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links).+所有[[#图片和其他文件|图片]][[#链接|链接]]语法(包括调整图片大小、内部/外部图片和 URL、以及跨 Wiki 链接)都受支持。
  
-===== Footnotes =====+===== 脚注 =====
  
-You can add footnotes ((This is a footnote)) by using double parentheses.+你可以通过双层括号添加脚注((这是一个脚注示例))
  
-  You can add footnotes ((This is a footnote)) by using double parentheses.+  你可以通过双层括号添加脚注((这是一个脚注示例))
  
-===== 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 ''<nowiki>~~NOTOC~~</nowiki>'' in the document.+你可以使用最多五个不同级别的标题来组织内容。如果有超过三个标题,系统会自动生成目录 —— 可以通过在文档中包含 ''<nowiki>~~NOTOC~~</nowiki>'' 字符串来禁用此功能。
  
-==== Headline Level 3 ==== +==== 三级标题 ==== 
-=== Headline Level 4 === +=== 四级标题 === 
-== Headline Level 5 ==+== 五级标题 ==
  
-  ==== Headline Level 3 ==== +  ==== 三级标题 ==== 
-  === Headline Level 4 === +  === 四级标题 === 
-  == Headline Level 5 ==+  == 五级标题 ==
  
-By using four or more dashes, you can make a horizontal line:+使用四个或更多短横线,可以创建一条水平分割线:
  
 ---- ----
  
-===== Media Files =====+===== 媒体文件 =====
  
-You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them.+你可以使用花括号包含外部和内部的[[doku>images|图片、视频和音频文件]]。也可以指定它们的尺寸。
  
-Real size:                        {{wiki:dokuwiki-128.png}}+原始尺寸:                        {{wiki:dokuwiki-128.png}}
  
-Resize to given width:            {{wiki:dokuwiki-128.png?50}}+按指定宽度缩放:                  {{wiki:dokuwiki-128.png?50}}
  
-Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)){{wiki:dokuwiki-128.png?200x50}}+按指定宽度和高度缩放((如果指定的宽高比与图片原始宽高比不符,缩放前会先按新比例进行裁剪)): {{wiki:dokuwiki-128.png?200x50}}
  
-Resized external image:           {{https://www.php.net/images/php.gif?200x50}}+缩放的外部图片:                  {{https://www.php.net/images/php.gif?200x50}}
  
-  Real size:                        {{wiki:dokuwiki-128.png}} +  原始尺寸:                        {{wiki:dokuwiki-128.png}} 
-  Resize to given width:            {{wiki:dokuwiki-128.png?50}} +  按指定宽度缩放:                  {{wiki:dokuwiki-128.png?50}} 
-  Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} +  按指定宽度和高度缩放:            {{wiki:dokuwiki-128.png?200x50}} 
-  Resized external image:           {{https://www.php.net/images/php.gif?200x50}}+  缩放的外部图片:                  {{https://www.php.net/images/php.gif?200x50}}
  
- +通过在花括号内内容左右添加空格,可以选择对齐方式。
-By using left or right whitespaces you can choose the alignment.+
  
 {{ wiki:dokuwiki-128.png}} {{ wiki:dokuwiki-128.png}}
行 157: 行 156:
   {{ wiki:dokuwiki-128.png }}   {{ wiki:dokuwiki-128.png }}
  
-Of course, you can add a title (displayed as a tooltip by most browsers), too.+当然,你也可以添加标题(大多数浏览器会显示为工具提示)。
  
-{{ wiki:dokuwiki-128.png |This is the caption}}+{{ wiki:dokuwiki-128.png |这是图片标题}}
  
-  {{ wiki:dokuwiki-128.png |This is the caption}}+  {{ wiki:dokuwiki-128.png |这是图片标题}}
  
-For linking an image to another page see [[#Image Links]] above.+有关如何使用图片链接到其他页面,请参见上面的[[#图片链接]]部分。
  
-==== Supported Media Formats ====+==== 支持的媒体格式 ====
  
-DokuWiki can embed the following media formats directly.+DokuWiki 可以直接嵌入以下媒体格式。
  
-Image | ''gif''''jpg''''png'' +图片 | ''gif'', ''jpg'', ''png'' 
-Video | ''webm''''ogv''''mp4''+视频 | ''webm'', ''ogv'', ''mp4''
-Audio | ''ogg''''mp3''''wav''  |+音频 | ''ogg'', ''mp3'', ''wav''  |
 | Flash | ''swf''                    | | Flash | ''swf''                    |
  
-If you specify a filename that is not a supported media format, then it will be displayed as a link instead.+如果指定的文件名不是支持的媒体格式,它将显示为链接。
  
-By adding ''?linkonly'' you provide a link to the media without displaying it inline+通过添加 ''?linkonly'',可以提供指向该媒体的链接而不内联显示。
  
   {{wiki:dokuwiki-128.png?linkonly}}   {{wiki:dokuwiki-128.png?linkonly}}
  
-{{wiki:dokuwiki-128.png?linkonly}} This is just a link to the image.+{{wiki:dokuwiki-128.png?linkonly}} 这只是一个指向图片的链接。
  
-==== 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:+例如,考虑这个嵌入的 mp4 视频:
  
-  {{video.mp4|A funny video}}+  {{video.mp4|一个有趣的视频}}
  
-When you upload a ''video.webm'' and ''video.ogv'' next to the referenced ''video.mp4''DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser.+当你在引用的 ''video.mp4'' 旁边上传了 ''video.webm'' 和 ''video.ogv''DokuWiki 会自动将它们添加为备用格式,以便你的浏览器能理解这三个文件中的一个。
  
-Additionally DokuWiki supports a "poster" image which will be shown before the video has started. That image needs to have the same filename as the video and be either a jpg or png file. In the example above a ''video.jpg'' file would work.+此外,DokuWiki 还支持“海报”图片,该图片将在视频开始播放前显示。该图片需要与视频文件同名,并且是 jpg 或 png 文件。在上述示例中,''video.jpg'' 文件即可生效。
  
-===== Lists =====+===== 列表 =====
  
-Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a ''*'' for unordered lists or a ''-'' for ordered ones.+DokuWiki 支持有序列表和无序列表。要创建列表项,请将文本缩进两个空格,然后对无序列表使用 ''*'',对有序列表使用 ''-''
  
-  * 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+  - 就这样
  
 <code> <code>
-  * 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+  - 就这样
 </code> </code>
  
-Also take a look at the [[doku>faq:lists|FAQ on list items]].+另请参阅[[doku>faq:lists|列表项常见问题解答]]
  
-===== Text Conversions =====+===== 文本转换 =====
  
-DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML.+DokuWiki 可以将某些预定义的字符或字符串转换为图片、其他文本或 HTML
  
-The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, but can be configured to use other HTML as well.+文本到图片的转换主要用于表情符号。文本到 HTML 的转换用于排版替换,但也可以配置为使用其他 HTML
  
-==== Text to Image Conversions ====+==== 文本转图片转换 ====
  
-DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. Those [[doku>Smileys]] and other images can be configured and extended. Here is an overview of Smileys included in DokuWiki:+DokuWiki 将常用的[[wp>emoticon|表情符号]]转换为其图形等效物。这些[[doku>Smileys|笑脸]]和其他图片可以配置和扩展。以下是 DokuWiki 中包含的表情符号概览:
  
   * 8-) %%  8-)  %%   * 8-) %%  8-)  %%
行 254: 行 253:
   * DELETEME %% DELETEME %%   * DELETEME %% DELETEME %%
  
-==== Text to HTML Conversions ====+==== 文本转 HTML 转换 ====
  
-Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters.+排版:[[DokuWiki]] 可以将简单的文本字符转换为其排版上正确的实体。以下是已识别字符的示例。
  
 -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
-"He thought 'It's a man's world'..."+“他想着 ‘这是男人的世界……’”
  
 <code> <code>
行 266: 行 265:
 </code> </code>
  
-The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]].+同样的方法可用于生成任何类型的 HTML,只需将其添加到[[doku>entities|模式文件]]即可。
  
-There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]].+有三个例外不来自该模式文件:乘号实体 (640x480)、“单引号”和“双引号”。它们可以通过[[doku>config:typography|排版配置选项]]关闭。
  
-===== Quoting =====+===== 引用 =====
  
-Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:+有时你想标记某些文本来表示这是回复或评论。你可以使用以下语法:
  
 <code> <code>
-I think we should do it+我认为我们应该这样做
  
-No we shouldn't+不,我们不应该
  
->> Well, I say we should+>> 嗯,我认为我们应该
  
-Really?+真的吗?
  
->> Yes!+>> 是的!
  
->>> Then lets do it!+>>> 那我们就做吧!
 </code> </code>
  
-I think we should do it+我认为我们应该这样做
  
-No we shouldn't+不,我们不应该
  
->> Well, I say we should+>> 嗯,我认为我们应该
  
-Really?+真的吗?
  
->> Yes!+>> 是的!
  
->>> Then lets do it!+>>> 那我们就做吧!
  
-===== Tables =====+===== 表格 =====
  
-DokuWiki supports a simple syntax to create tables.+DokuWiki 支持简单的语法来创建表格。
  
-Heading 1      ^ Heading 2       Heading 3          ^ +标题 1      ^ 标题 2       标题 3          ^ 
-Row Col 1    | Row Col 2     Row Col 3        | +行 列 1    | 行 列 2     行 列 3        | 
-Row Col 1    | some colspan (note the double pipe) || +行 列 1    | 跨列单元格(注意双竖线) || 
-Row Col 1    | Row Col 2     Row Col 3        |+行 列 1    | 行 列 2     行 列 3        |
  
-Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers.+表格行必须以 ''|''(普通行)或 ''^''(表头行)开头和结尾。
  
-  ^ Heading 1      ^ Heading 2       Heading 3          ^ +  ^ 标题 1      ^ 标题 2       标题 3          ^ 
-  | Row Col 1    | Row Col 2     Row Col 3        | +  | 行 列 1    | 行 列 2     行 列 3        | 
-  | Row Col 1    | some colspan (note the double pipe) || +  | 行 列 1    | 跨列单元格(注意双竖线) || 
-  | Row Col 1    | Row Col 2     Row Col 3        |+  | 行 列 1    | 行 列 2     行 列 3        |
  
-To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators!+要水平合并单元格,只需将下一个单元格完全留空,如上所示。请确保始终有相同数量的单元格分隔符!
  
-Vertical tableheaders are possible, too.+也支持垂直表头。
  
-|              ^ Heading 1            ^ Heading 2          ^ +|              ^ 标题 1            ^ 标题 2          ^ 
-Heading 3    | Row Col 2          | Row Col 3        | +标题 3    | 行 列 2          | 行 列 3        | 
-Heading 4    | no colspan this time |                    | +标题 4    | 这次没有跨列       |                    | 
-Heading 5    | Row Col 2          | Row Col 3        |+标题 5    | 行 列 2          | 行 列 3        |
  
-As you can see, it's the cell separator before a cell which decides about the formatting:+如你所见,单元格之前的单元格分隔符决定了格式:
  
-  |              ^ Heading 1            ^ Heading 2          ^ +  |              ^ 标题 1            ^ 标题 2          ^ 
-  ^ Heading 3    | Row Col 2          | Row Col 3        | +  ^ 标题 3    | 行 列 2          | 行 列 3        | 
-  ^ Heading 4    | no colspan this time |                    | +  ^ 标题 4    | 这次没有跨列       |                    | 
-  ^ Heading 5    | Row Col 2          | Row Col 3        |+  ^ 标题 5    | 行 列 2          | 行 列 3        |
  
-You can have rowspans (vertically connected cells) by adding ''%%:::%%'' into the cells below the one to which they should connect.+你可以通过在下方的单元格中添加 ''%%:::%%'' 来实现垂直合并单元格(与上方单元格连接)。
  
-Heading 1      ^ Heading 2                  ^ Heading 3          ^ +标题 1      ^ 标题 2                  ^ 标题 3          ^ 
-Row Col 1    | this cell spans vertically Row Col 3        | +行 列 1    | 此单元格垂直跨行        行 列 3        | 
-Row Col 1    | :::                        Row Col 3        | +行 列 1    | :::                     行 列 3        | 
-Row Col 1    | :::                        Row Col 3        |+行 列 1    | :::                     行 列 3        |
  
-Apart from the rowspan syntax those cells should not contain anything else.+除了垂直合并语法外,这些单元格不应包含任何其他内容。
  
-  ^ Heading 1      ^ Heading 2                  ^ Heading 3          ^ +  ^ 标题 1      ^ 标题 2                  ^ 标题 3          ^ 
-  | Row Col 1    | this cell spans vertically Row Col 3        | +  | 行 列 1    | 此单元格垂直跨行        行 列 3        | 
-  | Row Col 1    | :::                        Row Col 3        | +  | 行 列 1    | :::                     行 列 3        | 
-  | Row Col 1    | :::                        Row Col 3        |+  | 行 列 1    | :::                     行 列 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           ^^^ +^           带对齐的表格            ^^^ 
-|         right|    center    |left          | +|         右对齐|    居中对齐    |左对齐          | 
-|left                  right|    center    |+|左对齐                  右对齐|    居中对齐    |
 | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-This is how it looks in the source:+这是它在源码中的样子:
  
-  ^           Table with alignment           ^^^ +  ^           带对齐的表格            ^^^ 
-  |         right|    center    |left          | +  |         右对齐|    居中对齐    |左对齐          | 
-  |left                  right|    center    |+  |左对齐                  右对齐|    居中对齐    |
   | 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), enclose the area either with ''%%<nowiki>%%'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''.+如果你需要完全按照输入的样子显示文本(不应用任何格式),可以用 ''%%<nowiki>%%'' 标签包围该区域,或者更简单地,使用双百分号 ''<nowiki>%%</nowiki>''
  
 <nowiki> <nowiki>
-This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.+这段文本包含像 http://www.splitbrain.org 这样的地址和 **格式**,但不会对其做任何处理。
 </nowiki> </nowiki>
-The same is true for %%//__this__ text// with a smiley ;-)%%.+同样,%%//__这段文本__// 带着表情符号 ;-)%% 也一样。
  
   <nowiki>   <nowiki>
-  This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.+  这段文本包含像 http://www.splitbrain.org 这样的地址和 **格式**,但不会对其做任何处理。
   </nowiki>   </nowiki>
-  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 ''%%<code>%%'' or ''%%<file>%%''.+你可以通过缩进至少两个空格(如前面示例所示)或使用 ''%%<code>%%'' 或 ''%%<file>%%'' 标签在文档中包含代码块。
  
-  This is text is indented by two spaces.+  这段文本缩进了两个空格。
  
 <code> <code>
-This is preformatted code all spaces are preserved: like              <-this+这是预格式化的代码,所有空格都会保留:就像              <这里
 </code> </code>
  
 <file> <file>
-This is pretty much the same, but you could use it to show that you quoted a file.+这和上面几乎一样,但你可以用它来表示引用自某个文件的内容。
 </file> </file>
  
-Those blocks were created by this source:+这些代码块由以下源码创建:
  
-    This is text is indented by two spaces.+    这段文本缩进了两个空格。
  
   <code>   <code>
-  This is preformatted code all spaces are preserved: like              <-this+  这是预格式化的代码,所有空格都会保留:就像              <这里
   </code>   </code>
  
   <file>   <file>
-  This is pretty much the same, but you could use it to show that you quoted a file.+  这和上面几乎一样,但你可以用它来表示引用自某个文件的内容。
   </file>   </file>
  
-==== Syntax Highlighting ====+==== 语法高亮 ====
  
-[[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''.+[[wiki:DokuWiki]] 可以高亮显示源代码,使其更易于阅读。它使用 [[http://qbnz.com/highlighter/|GeSHi]] 通用语法高亮器 —— 因此 GeSHi 支持的任何语言都受支持。其语法使用上一节描述的相同 code 和 file 块,但这次需要将语法高亮语言的名称包含在标签内,例如 ''<nowiki><code java></nowiki>'' 或 ''<nowiki><file java></nowiki>''
  
 <code java> <code java>
 /** /**
- The HelloWorldApp class implements an application that + * HelloWorldApp 类实现了一个简单的应用程序 
- simply displays "Hello World!" to the standard output.+ 向标准输出打印 "Hello World!"
  */  */
 class HelloWorldApp { class HelloWorldApp {
     public static void main(String[] args) {     public static void main(String[] args) {
-        System.out.println("Hello World!"); //Display the string.+        System.out.println("Hello World!"); //显示字符串。
     }     }
 } }
 </code> </code>
  
-The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic//+当前可识别的语言字符串有://4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic//
  
-There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, such as highlighting lines or adding line numbers.+语法高亮还有额外的[[doku>syntax_highlighting|高级选项]]可用,例如高亮特定行或添加行号。
  
-==== Downloadable Code Blocks ====+==== 可下载的代码块 ====
  
-When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as above, you might want to make the shown code available for download as well. You can do this by specifying a file name after language code like this:+当你像上面那样使用 ''%%<code>%%'' 或 ''%%<file>%%'' 语法时,可能希望所显示的代码也能提供下载。你可以通过在语言代码后指定文件名来实现,如下所示:
  
 <code> <code>
行 436: 行 435:
 </file> </file>
  
-If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''.+如果你不需要高亮但希望提供可下载的文件,请在语言代码位置指定一个短横线(''-''):''%%<code - myfile.foo>%%''
  
-===== RSS/ATOM Feed Aggregation ===== +===== RSS/ATOM 订阅源聚合 =====
-[[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters:+
  
-^ Parameter  ^ Description ^ +[[DokuWiki]] 可以集成外部 XML 订阅源的数据。解析 XML 订阅源使用的是 [[http://simplepie.org/|SimplePie]] 。SimplePie 能理解的所有格式都可以在 DokuWiki 中使用。你可以通过多个额外的空格分隔参数来影响渲染效果:
-| any number | will be used as maximum number items to show, defaults to 8 | +
-| reverse    | display the last items in the feed first | +
-| author     | show item authors names | +
-| date       | show item dates | +
-| description| show the item description. All HTML tags will be stripped | +
-| nosort     | do not sort the items in the feed | +
-//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.+^ 参数 ^ 描述 ^ 
 +| 任意数字 | 将用作显示的最大项目数,默认为 8 | 
 +| reverse    | 先显示订阅源中的最后项目 | 
 +| author     | 显示项目作者的名称 | 
 +| date       | 显示项目的日期 | 
 +| description| 显示项目的描述。所有 HTML 标签将被剥离 | 
 +| nosort     | 不对订阅源中的项目进行排序 | 
 +//n//[dhm] | 刷新周期,其中 d=天,h=小时,m=分钟(例如 12h = 12 小时)。 |
  
-By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''reverse'' parameter, or display the feed as is with ''nosort''.+刷新周期默认为 4 小时。任何低于 10 分钟的值将被视为 10 分钟。[[wiki:DokuWiki]] 通常会尝试提供页面的缓存版本,但当页面包含动态外部内容时,这显然不合适。该参数告诉 [[wiki:DokuWiki]],如果页面距离上次渲染超过了 //刷新周期//,则重新渲染该页面。
  
-**Example:**+默认情况下,订阅源将按日期排序,最新的项目在前。你可以使用 ''reverse'' 参数按最旧的项目排序,或者使用 ''nosort'' 按原样显示订阅源。 
 + 
 +**示例:**
  
   {{rss>http://slashdot.org/index.rss 5 author date 1h }}   {{rss>http://slashdot.org/index.rss 5 author date 1h }}
行 460: 行 460:
 {{rss>http://slashdot.org/index.rss 5 author date 1h }} {{rss>http://slashdot.org/index.rss 5 author date 1h }}
  
 +===== 控制宏 =====
  
-===== Control Macros =====+某些语法会影响 DokuWiki 渲染页面的方式,但其本身不产生任何输出。以下是可用的控制宏:
  
-Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble:+^ 宏                ^ 描述 | 
 +| %%~~NOTOC~~%%   | 如果页面上存在此宏,将不会创建目录 | 
 +| %%~~NOCACHE~~%% | DokuWiki 默认缓存所有输出。有时这可能不理想(例如使用 %%<php>%% 语法时),添加此宏将强制 DokuWiki 在每次调用时重新渲染页面 |
  
-^ Macro           ^ Description | +===== 语法插件 =====
-| %%~~NOTOC~~%%   | If this macro is found on the page, no table of contents will be created | +
-| %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call |+
  
-===== Syntax Plugins ===== +DokuWiki 的语法可以通过[[doku>plugins|插件]]进行扩展。已安装插件的使用方法在其相应的说明页面中有描述。此 DokuWiki 安装中可用的语法插件如下:
- +
-DokuWiki's syntax can be extended by [[doku>plugins|Plugins]]. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation:+
  
 ~~INFO:syntaxplugins~~ ~~INFO:syntaxplugins~~
-