差别

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

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
wiki:syntax [2025/04/30 09:33] canmengwiki:syntax [2025/04/30 10:23] (当前版本) canmeng
行 1: 行 1:
-====== Formatting Syntax ======+====== Wiki 格式语法 ======
  
-[[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 somethingjust use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.+RealReturn 支持一些简单的 Wiki 标记语言以尽可能使源文件也具有可读性。本页面包含了所有您在编辑页面时可能用到的语法的说明。如果需要查看本页源码,只需要点击页面顶部或者右侧浮框的 **编辑本页** 按钮即可。 如果您是初步尝试 Wiki 语法,那么可以使用[[playground:playground|PlayGround]]来尽情挥洒。
  
-===== Basic Text Formatting =====+===== 基本文本格式 =====
  
-DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these.+RealReturnWiki 支持 **粗体**, //斜体//, __下划线__ 以及 ''等宽体'' 等格式。 当然,你也可以 **__//''混合使用''//__** 这些格式。
  
-  DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. +Wiki支持 **粗体**, //斜体//, __下划线__ 以及 ''等宽体'' 等格式。 
-  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.+===== 链接 =====
  
-==== External ====+RealReturnWiki 支持多种形式的链接。
  
-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.+==== 外部链接 ====
  
-  DokuWiki supports multiple ways of creating links. External links are recognized +外部链接会被自动地识别:http://www.google.com 或者简单地写作 www.google.com  当然您也可以为链接设置名字:[[http://www.google.com|链接到google]]。类似这样的电子邮件地址: <andi@splitbrain.org> 也可以被识别。
-  automagically: http://www.google.com or simply www.google.com - You can set +
-  link text as well: [[http://www.google.com|This Link points to google]]. Email +
-  addresses like this one: <andi@splitbrain.org> are recognized, too.+
  
-==== Internal ====+  RealReturnWiki支持多种形式的链接。外部链接会被自动地识别: 
 +  http://www.google.com 或者简单地写作 www.google.com 
 +  - 当然您也可以为链接设置名字: [[http://www.google.com|链接到google]]。 
 +  类似这样的电子邮件地址: <andi@splitbrain.org> 也可以被识别。
  
-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 +内部链接可以用方括号创建。您可以只给出链接的地址:[[pagename]],也可以附加上链接的名字:[[pagename|我的链接]]
-  a [[pagename]] or use an additional [[pagename|link text]].+
  
-[[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed.+  内部链接可以用方括号创建。您可以只给出链接的地址:[[pagename]], 
 +  也可以附加上链接的名字:[[pagename|我的链接]]
  
-You can use [[some:namespaces]] by using a colon in the pagename.+[[wiki>pagename|维基页面名]] 将会被自动地识别为小写字母,并且不允许使用特殊字符。
  
-  You can use [[some:namespaces]] by using a colon in the pagename.+您可以通过在页面名中使用冒号的方式来使用 [[wiki:namespaces|命名空间]]
  
-For details about namespaces see [[doku>namespaces]].+  您可以通过在页面名中使用冒号的方式来使用 [[wiki: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]].+如果您需要关于命名空间(namespaces)的更详细的信息,请参见 [[wiki>namespaces|命名空间]]
  
-  This links to [[syntax#internal|this Section]].+您也可以链接到一个网页内部的某一节,只需要将该节书签的名称以一个#号分隔加在网页的地址后面即可。这是一个连向 [[syntax#内部链接|本节]] 的链接。
  
-Notes:+  这是一个指向 [[syntax#内部链接|本节]] 的链接。
  
-  * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. +注:
-  * 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. +
-  * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.+
  
-==== Interwiki ====+  * 到 [[syntax|已存在页面]] 的链接和到 [[nonexisting|未存在页面]] 的链接,其外观是不同的。 
 +  * 默认情况下,RealReturnWiki 不使用[[wp>CamelCase|驼峰式命名]]来自动建立链接,(CamelCase 类似于 PmWiki 中的 WikiWord)。但是也可以在[[wiki>config|配置文件]]中启用它。 提示:如果 RealReturnWiki 是一个链接,那么已开启。 
 +  * 当一节的标题改变时,该节的书签也会改变,因此,请不要太依赖页面内的链接。
  
-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 supports [[doku>Interwiki]] links. These are quick links to other Wikis. +RealReturnWiki 支持[[interwiki|维基间链接]],即到其他维基的链接。例如,这是一个到维基百科上关于“维基”的一个页面链接: [[wp>Wiki]] 
-  For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].+
  
-==== Windows Shares ====+  RealReturnWiki 支持[[interwiki|维基间链接]],即到其他维基的链接。 
 +  例如,这是一个到维基百科上关于“维基”的一个页面链接: [[wp>Wiki]] 。 
 +   
 +==== 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]].+Windows 文件夹共享,例如 [[\\server\share|this]] 也可以被识别。请注意,这只在内部 [[wp>Intranet|局域网]] 等环境中才可能被成功访问。
  
-  Windows Shares like [[\\server\share|this]] are recognized, too.+  Windows共享文件夹,例如 [[\\server\share|this]] 也可以被识别。
  
-Notes:+注:
  
-  * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). +  * 出于安全原因,只有在微软IE浏览器上才能够直接访问 Windows 文件夹共享。 (且只适用于局域网内部环境). 
-  * 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''中 (详情见 [[wiki>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php>
 <?php <?php
 /** /**
行 93: 行 94:
 </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}}]]+您也可以用图像来作为一个内部或者外部的链接,只需同时使用链接和[[#images_and_other_files|图像]]的语法,如下所示: 
  
-[[http://php.net|{{wiki:dokuwiki-128.png}}]]+  [[http://www.php.net|{{wiki:RealReturnWiki-128.png}}]]
  
-Please noteThe image formatting is the only formatting syntax accepted in link names.+[[http://php.net|{{wiki:RealReturnWiki-128.png}}]]
  
-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).+请注意:在链接名中使用语法,只有显示图像的语法会被识别,请不要使用其它语法。
  
-===== Footnotes =====+RealReturnWiki 支持完整的[[#images_and_other_files|图像]]及[#links|链接]]预发,包括调整图像大小、内部和外部的图像链接,以及wiki内链接。
  
-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.+  您可以使用两个连续小括号来添加脚注((看这里,这是一个脚注))。
  
-==== Headline Level 3 ==== +===== 标题段落 =====
-=== Headline Level 4 === +
-== Headline Level 5 ==+
  
-  ==== Headline Level 3 ==== +您可以使用最多达5层的标题来使您的页面更富结构性。如果您使用了三个以上的标题,那么 RealReturnWiki 会自动在页面上生成一个名为“本页目录”的标题列表。当然,您也可以关闭这项特性,只需在编辑时在页面里加入 ''<nowiki>~~NOTOC~~</nowiki>'' 字样即可。
-  === Headline Level 4 === +
-  == Headline Level ==+
  
-By using four or more dashes, you can make a horizontal line:+==== H3标题 ==== 
 +=== H4标题 === 
 +== H5标题 == 
 + 
 +  ==== H3标题 ==== 
 +  === H4标题 === 
 +  == H5标题 == 
 + 
 +您可以通过连续的4个以上“-”号来创建一条水平分割线:
  
 ---- ----
  
-===== 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.+您可以使用双大括号来在页面中加入 [[wiki>images|图像,视频及声音文件]] 。您还可以选择是否指定图像的显示大小。
  
-Real size:                        {{wiki:dokuwiki-128.png}}+原始大小:                        {{wiki:logo-b.png}}
  
-Resize to given width:            {{wiki:dokuwiki-128.png?50}}+指定宽度(50 pixel):                        {{wiki:logo-b.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}}+指定宽度和高度(200×50)((若指定宽高比例不合适,图像将被裁减)):                  {{wiki:logo-b.png?200*50}}
  
-Resized external image:           {{https://secure.php.net/images/php.gif?200x50}}+重新指定宽度和高度的外部图像(100x100):    {{http://de3.php.net/images/php.gif?200x50}}
  
-  Real size:                        {{wiki:dokuwiki-128.png}} +  原始大小:                        {{wiki:logo-b.png.png}} 
-  Resize to given width:            {{wiki:dokuwiki-128.png?50}} +  指定宽度(50 pixel):                        {{wiki:logo-b.png?50}} 
-  Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} +  指定宽度和高度(200×50):                  {{wiki:logo-b.png?200*50}} 
-  Resized external image:           {{https://secure.php.net/images/php.gif?200x50}}+  重新指定宽度和高度的外部图像(100x100):    {{http://de3.php.net/images/php.gif?200x50}}
  
  
-By using left or right whitespaces you can choose the alignment.+使用左方或者右方的空格,您可以选择对齐方式:
  
-{{ wiki:dokuwiki-128.png}}+{{ wiki:logo-b.png}}
  
-{{wiki:dokuwiki-128.png }}+{{wiki:logo-b.png }}
  
-{{ wiki:dokuwiki-128.png }}+{{ wiki:logo-b.png }}
  
-  {{ wiki:dokuwiki-128.png}} +  {{ wiki:logo-b.png}} 
-  {{wiki:dokuwiki-128.png }} +  {{wiki:logo-b.png }} 
-  {{ wiki:dokuwiki-128.png }}+  {{ wiki:logo-b.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:logo-b.png |这是图像的名字}}
  
-  {{ wiki:dokuwiki-128.png |This is the caption}}+  {{ wiki:logo-b.png |这是图像的名字}}
  
-For linking an image to another page see [[#Image Links]] above.+如果您指定的文件名(无论是外部的还是内部的)不是一个图像''(gif,jpeg,png)'',那么它将被显示为一个链接。
  
-==== Supported Media Formats ====+==== 支持的媒体格式 ====
  
-DokuWiki can embed the following media formats directly.+RealReturnWiki 可以直接在页面中嵌入以下格式.
  
-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:logo-b.png?linkonly}}
  
-{{wiki:dokuwiki-128.png?linkonly}} This is just a link to the image.+{{wiki:logo-b.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.webm'' 和 ''video.ogv'' 到与 ''video.mp4'' 相同的命名空间的话RealReturnWiki 会自动识别为备用的文件格式,并选择一个最适合当前浏览器的文件格式。
  
-Additionally DokuWiki supports a "posterimage 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.+此外,RealReturnWiki 也支持"视频海报",可以在视频播放前显示制定的图片。该图片必须与视频文件名相同,并且为 jpg 和 png格式。
  
-===== 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.+RealReturnWiki 支持带编号或不带编号的列表。要使用列表,在文字前加入两个空格,然后使用''*''标志不带编号的列表,用''-''标志带编号的列表。
  
-  * 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]].+同时可以关注 [[wiki>faq:lists|列表项目常见问题解答]].
  
-===== Text Conversions =====+===== 文本转换 =====
  
-DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML.+RealReturnWiki 可以将预定义的字符或者字符串转换成图片、其他文本或 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 ==== +RealReturnWiki 会将一些常用的 [[wp>emoticon|表情符号]] 转换为图像。除了默认的表情符号以外,您也可以在 [[wiki>Smileys]] 文件夹中放入更多的表情图,然后在 ''conf/smileys.conf'' 中设置它们即可。下面是 RealReturnWiki 包含了的表情图像:
- +
-DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. Those [[doku>Smileys]] and other images can be configured and extendedHere is an overview of Smileys included in DokuWiki:+
  
   * 8-) %%  8-)  %%   * 8-) %%  8-)  %%
行 247: 行 249:
   * ;-) %%  ;-)  %%   * ;-) %%  ;-)  %%
   * ^_^ %%  ^_^  %%   * ^_^ %%  ^_^  %%
-  * m(  %%  m(   %% 
   * :?: %%  :?:  %%   * :?: %%  :?:  %%
   * :!: %%  :!:  %%   * :!: %%  :!:  %%
行 254: 行 255:
   * DELETEME %% DELETEME %%   * DELETEME %% DELETEME %%
  
-==== Text to HTML Conversions ====+==== 印刷样式 ====
  
-Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters.+[[RealReturnWiki]] 可以将特定字符转换为印刷时所用的样式。下面是可以识别的这类字符的列表:
  
 -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
行 266: 行 267:
 </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]].+请注意:在配置文件中可以禁用这类自动转换。
  
-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]].+===== 层次显示 =====
  
-===== 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 =====+RealReturnWiki 可以用简单的语法创建表格。
  
-DokuWiki supports a simple syntax to create tables.+^ 标题 1    ^ 标题 2        ^ 标题 3    ^ 
 +| (WOK)   | (1,2)      | (1,3) 
 +| (2,1)  | 展宽的单元格             || 
 +| (3,1)  | (3,2)      | (3,3)  |
  
-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 ''|'' for normal rows or a ''^'' for headers.+  标题 1      ^ 标题 2       ^ 标题 3          ^ 
 +  | (1,1)    | (1,2)     | (1,3)        | 
 +  | (2,1)    | 展宽的单元格 || 
 +  | (3,1)   | (3,2)    | (3,3)        |
  
-  ^ 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, 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.+|         ^ 标题 1          ^ 标题 2    ^ 
 +^ 标题 3  | (1,2)        | (1,3) 
 +^ 标题 4  | 不再合并单元格  |           | 
 +^ 标题 5  | (2,2)        | (2,3)  |
  
-|              ^ 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:+  |              ^ 标题 1            ^ 标题 2          ^ 
 +  ^ 标题 3    | (1,2)          | (1,3)        | 
 +  ^ 标题 4    | 不再合并单元格 |                    | 
 +  ^ 标题 5    | (2,2)          | (2,3)        |
  
-  |              Heading            Heading          ^ +您也可以垂直合并两格或多格。只要在下面的格内输入'':::''即可 
-  ^ Heading 3    | Row Col 2          Row Col        +标题    标题            标题 3    
-  ^ Heading 4    no colspan this time                    +1,0)  | 这次示范垂直合并  13)  
-  ^ Heading 5    Row 2 Col 2          Row 2 Col        |+| (2,1)  :::               (2,3)  
 +| (3,1)  :::               3,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    this cell spans vertically Row Col 3        | +  11)   这次示范垂直合并 13)        | 
-Row Col    | :::                        | Row Col 3        | +  21)   | :::                        | 23)        | 
-Row Col    | :::                        | Row 2 Col 3        |+  31)   | :::                        | (3,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        |+xxxxxxxxxxxx   xxxxxxxxxxxx  | xxxxxxxxxxxx  |
  
-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 | +
- +
-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>%% 标签或更简单一点用 2 个 <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> +使用百分号对 %%//__这段__ 文字// 可以达到同样的效果 ;-)%%.
-  This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. +
-  </nowiki> +
-  The same is true for %%//__this__ text// with a smiley ;-)%%.+
  
-===== Code Blocks =====+  <nowiki>正如本段示范里,本来包含了网址:http://www.splitbrain.org,以及**加上格式的文字**,但它没有给格式化。连表情符号;-)的转换,也与//__加上格式的文字__//一样,全都失效了。</nowiki> 
 +   
 +  使用百分号对 %%//__这段__ 文字// 可以达到同样的效果 ;-)%%。
  
-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>%%''.+===== 代码区块 =====
  
-  This is text is indented by two spaces.+在一段文字的最前面加上 2 个空白,来直接作为「文本框」不对它做加工处理(就像前面那些说明一样)。或者也可以用 ''<code>'' 或 ''<file>'' 这两个标签(tag)都可以达到类似效果。 
 + 
 +  这段是用 <code> 产生的,所有空格及所有原始格式都会照样显示,还其本色。
  
 <code> <code>
-This is preformatted code all spaces are preserved: like              <-this+就像       <-这个
 </code> </code>
  
 <file> <file>
-This is pretty much the samebut you could use it to show that you quoted a file.+这段跟上段很像,但是改用 <file> ,可以把它用在「引述名言(Quote)」效果上。   
 +remember, information is not knowledge, 
 +                  knowledge is not wisdom 
 +                  wisdom is not truth 
 +                  truth is not beauty 
 +                  beauty is not love 
 +                  love is not music 
 +                  music is the best 
 +   
 +                                                -- frank zappa
 </file> </file>
  
-Those blocks were created by this source:+这些区域的源码如下:
  
-    This is text is indented by two spaces.+    这段是用 <code> 产生的,所有空格及所有原始格式都会照样显示,还其本色。
  
   <code>   <code>
-  This is preformatted code all spaces are preserved: like              <-this+  就像       <-这个
   </code>   </code>
  
   <file>   <file>
-  This is pretty much the samebut you could use it to show that you quoted a file.+  这段跟上段很像,但是改用 <file> ,可以把它用在「引述名言(Quote)」效果上。   
 +  remember, information is not knowledge, 
 +                    knowledge is not wisdom 
 +                    wisdom is not truth 
 +                    truth is not beauty 
 +                    beauty is not love 
 +                    love is not music 
 +                    music is the best 
 +     
 +                                                -- frank zappa
   </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>''.+==== 语法的高亮度显示 ==== 
 + 
 +[[RealReturnWiki]] 可把原始码语法来做高亮度显示(Syntax Highlighting),来更加具可读性。 它采用的是 GeSHi Generic Syntax Highlighter —— 所以只要 GeSHi 有支持的,RealReturnWiki 亦可。 
 + 
 +用法就类似前例的 ''%%<code>%%'' ,但要在标签(tag)内指定该原始码所使用的语言。比如 ''<code java>'' 举例:
  
 <code java> <code java>
-/**+/** 
  * The HelloWorldApp class implements an application that  * The HelloWorldApp class implements an application that
  * simply displays "Hello World!" to the standard output.  * simply displays "Hello World!" to the standard output.
- */ + */   class HelloWorldApp {   public static void main(String[] args) {
-class HelloWorldApp { +
-    public static void main(String[] args) {+
         System.out.println("Hello World!"); //Display the string.         System.out.println("Hello World!"); //Display the string.
     }     }
行 418: 行 434:
 </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// +目前支持的语言有: //actionscriptadaapacheasmaspbashcaddclcadlispc, c_mac, cppcsharpcssdelphihtml4strictjavajavascriptlispluampasmnsisobjcoobasoracle8pascalperlphp-briefphppythonqbasicsmartysqlvb, vbnet, visualfoxproxml//
- +
-There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, such as highlighting lines or adding line numbers.+
  
-==== 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: 行 450:
 </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 ===== 
-[[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 ^ +===== 在内容中嵌入HTML或PHP语法 =====
-| 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.+可以在文件里透过加入 ''%%<%%html%%>%%'' or ''%%<%%php%%>%%'' 标签来使用HTML或PHP,比如:
  
-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''.+<html> 
 +这是一段用 <font color="red" size="+1">HTML 写的红色字(size=+1)</font> 
 +</html>
  
-**Example:**+<code> 
 +<html> 
 +这是一段用 <font color="red" size="+1">HTML 写的红色字(size=+1)</font> 
 +</html> 
 +</code> 
 +22 
 +<php> 
 +echo '由 PHP 所产生 Logo:'; 
 +echo '<img src="' . $_SERVER['PHP_SELF'] . '?= 
 +                ' . php_logo_guid() . '"  
 +       alt="PHP Logo !" />'; 
 +</php>
  
-  {{rss>http://slashdot.org/index.rss 5 author date 1h }}+<code> 
 +<php> 
 +echo '由 PHP 所产生 Logo:'; 
 +echo '<img src="' . $_SERVER['PHP_SELF'] . '?= 
 +                ' . php_logo_guid() . '"  
 +       alt="PHP Logo !" />'; 
 +</php> 
 +</code>
  
-{{rss>http://slashdot.org/index.rss 5 author date 1h }} 
  
  
-===== Control Macros =====+**请特别注意**:HTML 及 PHP 语法可以在[[config|设定选项]]中决定支持与否。若您的 RealReturnWiki 设定不打开这两项功能(可单独打开两者之一功能)那么上面的例子就不会被执行,而是直接显示出来原始写法。
  
-Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble:+===== RSS/ATOM Feed 聚合 =====
  
-^ Macro           ^ Description | +RealReturnWiki 能從外部 XML feed 中聚合數據。為分析這些 XML feed,RealReturnWiki 使用了[[http://simplepie.org/|SimplePie]]。凡是 SimplePie 能理解的格式,都可用於 RealReturnWiki 中。您可以更改不同的參數,以改變其渲染。參數之間請用空格隔開:
-| %%~~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 (egwhen the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call |+
  
-===== Syntax Plugins =====+^ 參數  ^ 描述 ^ 
 +| any number | 最多顯示多少項內容;預設值是8。 | 
 +| reverse    | 將最新條目顯示在前面。 | 
 +| author     | 顯示條目的作者名字。 | 
 +| date       | 顯示條目數據。 | 
 +| description| 顯示條目的描述;如果 [[wiki>config:htmlok|HTML]] 被禁用,所有標籤將被過濾掉 | 
 +| //n//[dhm] | 刷新周期,其中,d=日數,h=小時數,m=分。例如,12h=12小時。 |
  
-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:+預設的刷新周期是 4 小時。小於 10 分鐘者亦視為 10 分鐘。RealReturnWiki 通常會提供頁面的暫存版,但這做法不適用於包含動態外部內容的頁面。上面的參數則告訴 RealReturnWiki:若對上一次渲染時間已經過了//刷新周期//,就要重新渲染頁面。
  
-~~INFO:syntaxplugins~~+**範例:**
  
 +  {{rss>http://slashdot.org/index.rss 5 author date 1h }}
  
-格式化语法 
-DokuWiki 支持一些简单的标记语言,尝试使数据文件尽可能可读。此页面包含你在编辑页面时可以使用的所有语法。只需按下“编辑此页面”查看此页面的源代码。如果你想去尝试一些东西,就使用练习场页面。更简单的标记可以通过快速按钮轻松访问。 
-基本文本格式化 
-DokuWiki 支持粗体、//斜体//、下划线__和''等宽字体''文本。当然你可以**//''组合''//__**所有这些。 
-你还可以使用<sub>下标</sub>和<sup>上标</sup> 
-你可以将某些内容标记为<del>删除线</del> 
-段落通过空白行创建。如果你想要强制换行而不使用段落,可以使用两个反斜杠后跟一个空格或行尾。 
-这是带有换行符的文本\注意 
-两个反斜杠只有在行尾被识别\ 
-或者后面跟着\空格\ 
-后面没有它的情况。 
-你应只在确实需要时才使用强制换行。 
-链接 
-DokuWiki 支持多种创建链接的方式。 
-外部链接 
-外部链接自动被识别:http://www.google.com 或者简单地写为 www.google.com – 你也可以设置链接文本:This Link points to google。电子邮件地址如 andi@splitbrain.org 也会被识别。 
-内部链接 
-内部链接通过使用方括号创建。你可以只提供一个[[页面名称]] 或使用一个额外的[[页面名称 | 链接文本]]。 
-DokuWiki 会将[[页面名称 | 维基页面名称]]自动转换为小写,不允许使用特殊字符。 
-你可以通过在页面名称中使用冒号来使用[[some:命名空间]]。 
-有关命名空间的详细信息,请参见[[命名空间]]。 
-也可以链接到特定部分。只需在哈希字符后添加部分名称,如 HTML 所知。此链接指向[[语法 # 内部 | 此部分]]。 
-注意: 
-链接到[[现有页面 | 存在的页面]]的链接样式与[[不存在页面 | 不存在的页面]]的链接样式不同。 
-DokuWiki 默认不使用[[维基百科 > CamelCase]]自动生成链接,但可以在[[配置]]文件中启用此行为。提示:如果 DokuWiki 是一个链接,那么它已启用。 
-当部分的标题被更改时,其书签也会改变。因此,不要太依赖部分链接。 
-Interwiki 链接 
-DokuWiki 支持[[Interwiki | DokuWiki]]链接。这些是到其他维基的快速链接。例如,这是到维基百科关于维基页面的链接:[[wp>Wiki]]。 
-Windows 共享 
-Windows 共享如[[\server\share | 此]]也会被识别。请注意,这些只在同构的用户组(如企业[[维基百科 > Intranet | 内部网]]) 中才有意义。 
-注意: 
-由于安全原因,默认情况下,直接浏览 Windows 共享只在 Microsoft Internet Explorer 中有效。 
-对于 Mozilla 和 Firefox,可以通过 Mozilla 知识库中提到的不同解决方法来启用它。然而,仍然会出现关于尝试打开 Windows 共享的 JavaScript 警告。要移除此警告(对所有用户),在 ''conf/lang/en/lang.php'' 中添加以下行(更多详细信息在[[本地化 # 更改安装中的某些本地化文本和字符串 | 本地化]]): 
-php 
-复制 
-<?php 
-/** 
-* 英文语言文件的自定义 
-* 只复制需要修改的字符串 
-*/ 
-$lang['js']['nosmblinks'] = ''; 
-图像链接 
-你还可以通过组合链接和[[# 图像和其他文件 | 图像]](见下文)的语法,使用图像链接到另一个内部或外部页面,如下所示: 
-http://php.net 
-脚注 
-你可以使用双括号添加脚注((这是一个脚注))。 
-分节 
-你可以使用最多五级标题来组织内容。如果有超过三个标题,会自动生成目录——可以通过在文档中包含字符串 ''~~NOTOC~~'' 来禁用此功能。 
-标题级别 3 
-=== 标题级别 4 === 
-== 标题级别 5 == 
-通过使用四个或更多破折号,可以创建水平线: 
-媒体文件 
-你可以使用大括号包含外部和内部[[图像 | 图像、视频和音频文件]]。可选地,你可以指定它们的大小。 
-实际大小:{{wiki:dokuwiki-128.png}} 
-调整为给定宽度:{{wiki:dokuwiki-128.png?50}} 
-调整为给定宽度和高度(当给定宽度和高度的纵横比与图像不同时,它将在调整大小前裁剪为新的纵横比):{{wiki:dokuwiki-128.png?200x50}} 
-调整大小的外部图像:{{https://secure.php.net/images/php.gif?200x50}} 
-通过在左侧或右侧使用空白,你可以选择对齐方式。 
-{{ wiki:dokuwiki-128.png}} 
-{{wiki:dokuwiki-128.png }} 
-{{ wiki:dokuwiki-128.png }} 
-当然,你也可以添加标题(大多数浏览器会将其显示为工具提示)。 
-{{ wiki:dokuwiki-128.png | 这是标题}} 
-有关链接图像到另一个页面,请参见上面的[[# 图像链接]]。 
-支持的媒体格式 
-DokuWiki 可以直接嵌入以下媒体格式: 
-| 图像 | ''gif'',''jpg'',''png'' | 
-| 视频 | ''webm'',''ogv'',''mp4'' | 
-| 音频 | ''ogg'',''mp3'',''wav'' | 
-| Flash | ''swf'' | 
-如果你指定的文件名不是支持的媒体格式,那么它将显示为链接。 
-通过添加 ''?linkonly'',你可以提供一个链接到媒体而不显示它。 
-{{wiki:dokuwiki-128.png?linkonly}} 
-这是一个图像链接。 
-替代格式 
-不幸的是,并非所有浏览器都理解所有视频和音频格式。为了避免此问题,你可以将文件上传到不同格式以实现最大浏览器兼容性。 
-例如,考虑嵌入此 mp4 视频: 
-{{video.mp4 | 一个有趣的视频}} 
-当你将 ''video.webm'' 和 ''video.ogv'' 与引用的 ''video.mp4'' 一起上传时,DokuWiki 将自动将它们添加为替代方案,以便浏览器可以理解其中一种文件。 
-此外,DokuWiki 支持“海报”图像,这将在视频开始播放前显示。该图像需要具有与视频相同的文件名,并且可以是 jpg 或 png 文件。在上面的例子中,''video.jpg'' 文件将有效。 
-列表 
-Dokuwiki 支持有序和无序列表。要创建列表项,请将文本缩进两个空格,并在无序列表中使用 ''*'' 或在有序列表中使用 ''-'' 
-这是一个列表 
-第二项 
-你可以有不同的级别 
-另一个项 
-同样的列表但已排序 
-另一个项 
-只需缩进来实现更深层次 
-结束 
-有关列表项目的更多详细信息,请参见[[列表 | FAQ]]。 
-文本转换 
-DokuWiki 可以将某些预定义的字符或字符串转换为图像或其他文本或 HTML。 
-文本到图像的转换主要是为了表情符号。文本到 HTML 的转换用于排版替换,但可以配置为使用其他 HTML。 
-文本到图像转换 
-DokuWiki 将常用的[[表情符号 | emoticon]]转换为其图形等效物。可以配置和扩展这些[[表情符号 | Smileys]]和其他图像。以下是 DokuWiki 中包含的表情符号概览: 
-8-) %% 8-) %% 
-8-O %% 8-O %% 
-:-( %% :-( %% 
-:-) %% :-) %% 
-=) %% =) %% 
-:-/ %% :-/ %% 
-:-\ %% :-\ %% 
-:-? %% :-? %% 
-:-D %% :-D %% 
-:-P %% :-P %% 
-:-O %% :-O %% 
-:-X %% :-X %% 
-:-| %% :-| %% 
-;-) %% ;-) %% 
-^^ %% ^^ %% 
-m( %% m( %% 
-:?: %% :?: %% 
-:!: %% :!: %% 
-LOL %% LOL %% 
-FIXME %% FIXME %% 
-DELETEME %% DELETEME %% 
-文本到 HTML 转换 
-排版:DokuWiki 可以将简单的文本字符转换为其排版正确的实体。以下是识别的字符示例: 
--> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) 
-"He thought 'It's a man's world'..." 
-有三个例外不来自该模式文件:乘法实体(640x480)、'单引号' 和 "双引号"。它们可以通过配置选项关闭。 
-引用 
-有时你想要标记一些文本以显示它是回复或评论。可以使用以下语法: 
-我认我们应该这么做 
-不,我们不应该 
-嗯,我说我们应该这么做 
-真的吗? 
-是的! 
-那么我们来做吧! 
-表格 
-DokuWiki 支持创建表格的简单语法。 
-^ 标题 1      ^ 标题 2       ^ 标题 3          ^ 
-| 第 1 行第 1 列    | 第 1 行第 2 列     | 第 1 行第 3 列        | 
-| 第 2 行第 1 列    | 一些跨列(注意双管道) || 
-| 第 3 行第 1 列    | 第 3 行第 2 列     | 第 3 行第 3 列        | 
-表格行必须以 ''|'' 开头和结尾(对于普通行)或以 ''^'' 开头和结尾(对于标题行)。 
-要水平连接单元格,只需使下一个单元格完全为空,如上所示。确保始终有相同数量的单元格分隔符! 
-垂直表头也是可能的。 
-|              ^ 标题 1            ^ 标题 2          ^ 
-^ 标题 3    | 第 1 行第 2 列          | 第 1 行第 3 列        | 
-^ 标题 4    | 这次没有跨列 |                    | 
-^ 标题 5    | 第 2 行第 2 列          | 第 2 行第 3 列        | 
-如你所见,是单元格分隔符前的单元格决定了格式: 
-|              ^ 标题 1            ^ 标题 2          ^ 
-^ 标题 3    | 第 1 行第 2 列          | 第 1 行第 3 列        | 
-^ 标题 4    | 这次没有跨列 |                    | 
-^ 标题 5    | 第 2 行第 2 列          | 第 2 行第 3 列        | 
-你可以在下面的单元格中添加 '':::'' 以实现跨行(垂直连接的单元格)。 
-^ 标题 1      ^ 标题 2                  ^ 标题 3          ^ 
-| 第 1 行第 1 列    | 此单元格垂直跨越 | 第 1 行第 3 列        | 
-| 第 2 行第 1 列    | :::                        | 第 2 行第 3 列        | 
-| 第 3 行第 1 列    | :::                        | 第 2 行第 3 列        | 
-除了跨行语法外,这些单元格不应包含其他内容。 
-^ 标题 1      ^ 标题 2                  ^ 标题 3          ^ 
-| 第 1 行第 1 列    | 此单元格垂直跨越 | 第 1 行第 3 列        | 
-| 第 2 行第 1 列    | :::                        | 第 2 行第 3 列        | 
-| 第 3 行第 1 列    | :::                        | 第 2 行第 3 列        | 
-你还可以对齐表格内容。只需在文本的另一端至少添加两个空格:在左侧添加两个空格以右对齐,在右侧添加两个空格以左对齐,在两端至少添加两个空格以居中。 
-^           带对齐的表格           ^^^ 
-|         右对齐|    居中    |左对齐          | 
-|左对齐          |         右对齐|    居中    | 
-| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | 
-这是源代码的显示方式: 
-^           带对齐的表格           ^^^ 
-|         右对齐|    居中    |左对齐          | 
-|左对齐          |         右对齐|    居中    | 
-| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | 
-注意:不支持垂直对齐。 
-无格式化 
-如果你需要显示完全按照键入方式的文本(不进行任何格式化),请用 ''%%'' 标签或更简单的方式,用双百分号 ''%%'' 包围该区域。 
-<nowiki> 
-这是一些文本,其中包含这样的地址:[http://www.splitbrain.org](http://www.splitbrain.org) 以及 **格式化**,但不会对其进行任何处理。 
-</nowiki> 
-同样适用于 %%//__此文本// 带有表情符号 ;-)%%. 
-  <nowiki> 
-  这是一些文本,其中包含这样的地址:[http://www.splitbrain.org](http://www.splitbrain.org) 以及 **格式化**,但不会对其进行任何处理。 
-  </nowiki> 
-  同样适用于 %%//__此文本// 带有表情符号 ;-)%%. 
-代码块 
-你可以在文档中包含代码块,方法是至少缩进两格(如前面的例子所示)或使用 ''<code>'' 或 ''<file>'' 标签。 
-这是缩进两格的文本。 
-<code> 
-这是预格式化的代码,所有空格都保留:像              <-这样 
-</code> 
-<file> 
-这几乎是一样的,但你可以用它来表示引用了文件。 
-</file> 
-这些代码块是通过以下源代码创建的: 
-这是缩进两格的文本。 
-  <code> 
-  这是预格式化的代码,所有空格都保留:像              <-这样 
-  </code> 
-  <file> 
-  这几乎是一样的,但你可以用它来表示引用了文件。 
-  </file> 
-语法高亮 
-DokuWiki 可以高亮显示源代码,使其更易于阅读。它使用了[[通用语法高亮显示 | http://qbnz.com/highlighter/]] —— 因此支持 GeSHi 支持的任何语言。语法使用前面部分中描述的相同的代码和文件块,但这次在标签内包含要高亮显示的语言语法的名称,例如 ''<code java>'' 或 ''<file java>'' 
-<code java> 
-/** 
- * HelloWorldApp 类实现了一个应用程序,该程序仅向标准输出显示“Hello World!”。 
- */ 
-class HelloWorldApp { 
-    public static void main(String[] args) { 
-        System.out.println("Hello World!"); // 显示字符串。 
-    } 
-} 
-</code> 
-目前识别以下语言字符串://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// 
-还有额外的[[语法高亮显示 | 高级选项]]可用于语法高亮显示,例如高亮显示行或添加行号。 
-可下载的代码块 
-当你使用上述的 ''<code>'' 或 ''<file>'' 语法时,你可能还想使显示的代码可供下载。你可以通过在语言代码后指定文件名来实现这一点,如下所示: 
-<file php myexample.php> 
-<?php echo "hello world!"; ?> 
-</file> 
-如果你不想高亮显示但想要可下载的文件,指定破折号 (''-'' ) 作为语言代码:''<code - myfile.foo>'' 
-RSS/ATOM 源聚合 
-DokuWiki 可以集成外部 XML 源的数据。对于解析 XML 源,使用了[[SimplePie | http://simplepie.org/]]。DokuWiki 也支持 SimplePie 理解的所有格式。你可以通过多个额外的空格分隔参数影响渲染: 
-^ 参数  ^ 描述 ^ 
-| 任意数字 | 用作要显示的最大项目数,默认为 8 | 
-| 反向    | 从后向前显示源中的最后几项 | 
-| 作者    | 显示项目作者姓名 | 
-| 日期    | 显示项目日期 | 
-| 描述    | 显示项目描述。所有 HTML 标签将被删除 | 
-| nosort  | 不对源中的项目进行排序 | 
-| //n//[dhm] | 刷新周期,其中 d=天,h=小时,m=分钟。例如,12h = 12 小时。 | 
-刷新周期默认为 4 小时。任何低于 10 分钟的值将被当作 10 分钟处理。DokuWiki 通常会尝试提供页面的缓存版本,显然这不适用于包含动态外部内容的页面。该参数告诉 DokuWiki 在页面上次渲染后超过刷新周期时重新渲染页面。 
-默认情况下,源将按日期排序,最新项目在前。你可以使用“反向”参数按最旧在前排序,或者使用“nosort”参数显示源的原始顺序。 
-示例: 
 {{rss>http://slashdot.org/index.rss 5 author date 1h }} {{rss>http://slashdot.org/index.rss 5 author date 1h }}
-控制宏 
-某些语法会影响 DokuWiki 渲染页面的方式而不创建任何输出。可用以下控制宏: 
-^ 宏           ^ 描述 | 
-| %%~~NOTOC~~%%   | 如果此宏出现在页面上,将不创建目录 | 
-| %%~~NOCACHE~~%% | DokuWiki 默认缓存所有输出。有时这可能不被需要(例如当上面的 %%<php>%% 语法被使用时),添加此宏将强制 DokuWiki 在每次调用时重新渲染页面 | 
-语法插件 
-DokuWiki 的语法可以通过[[插件 | DokuWiki]]扩展。如何使用已安装的插件在它们各自的描述页面中有说明。在此 DokuWiki 安装中可用以下语法插件: 
-~~INFO:syntaxplugins~~ 
  
  
 +===== 控制宏 =====
 +
 +控制宏会影响 RealReturnWiki 对页面的渲染,而自身不输出任何內容。可用的控制宏如下:
 +
 +^ 宏           ^ 描述|
 +| %%~~NOTOC~~%%   | 如果页面中出现该控制宏,将不会为该页创建目录。 |
 +| %%~~NOCACHE~~%% | RealReturnWiki 默认会缓存所有的输出。有时您并不希望内容被缓存(例如您使用了上述的%%<php>%%语法,页面会动态生成),便可使用这个控制宏,强制 RealReturnWiki 在每次访问时都重新生成页面。 |
 +
 +===== 扩展插件 =====
 +
 +使用[[wiki>plugins|插件]],可以扩充 RealReturnWiki 的语法。插件的的安装方法,请参见其他相应页面中的说明。
  • wiki/syntax.1745976807.txt.gz
  • 最后更改: 2025/04/30 09:33
  • canmeng