====== Welcome to your new DokuWiki ====== Congratulations, your wiki is now up and running. Here are a few more tips to get you started. Enjoy your work with DokuWiki,\\ -- the developers ===== Create your first pages ===== Your wiki needs to have a start page. As long as it doesn't exist, this link will be red: [[:start]]. Go on, follow that link and create the page. If you need help with using the syntax you can always refer to the [[wiki:syntax|syntax page]]. You might also want to use a sidebar. To create it, just edit the [[:sidebar]] page. Everything in that page will be shown in a margin column on the side. Read our [[doku>faq:sidebar|FAQ on sidebars]] to learn more. Please be aware that not all templates support sidebars. ===== Customize your Wiki ===== Once you're comfortable with creating and editing pages you might want to have a look at the [[this>doku.php?do=admin&page=config|configuration settings]] (be sure to login as superuser first). You may also want to see what [[doku>plugins|plugins]] and [[doku>templates|templates]] are available at DokuWiki.org to extend the functionality and looks of your DokuWiki installation. ===== Join the Community ===== DokuWiki is an Open Source project that thrives through user contributions. A good way to stay informed on what's going on and to get useful tips in using DokuWiki is subscribing to the [[doku>newsletter]]. The [[http://forum.dokuwiki.org|DokuWiki User Forum]] is an excellent way to get in contact with other DokuWiki users and is just one of the many ways to get [[doku>faq:support|support]]. Of course we'd be more than happy to have you [[doku>teams:getting_involved|getting involved]] with DokuWiki. ====== DokuWiki格式语法说明 ====== [[wiki:DokuWiki]] 支持一些简单的标记语言, 以尽最大可能使文档看上去更友好。本页面包含了所有你在编辑页面时可能用到的语法的说明。如果需要查看本页源码,只需要点击页面顶部或者底部的 //编辑本页// 按钮即可。\\ 如果您是初尝Wiki,那么可以使用 [[playground:playground|Wiki砂箱]] 来尽情挥洒。\\ 通过[[doku>quickbuttons|快捷按钮]],您可以更方便地使用这些标记。 ===== 基本文本格式 ===== DokuWiki支持 **粗体**, //斜体//, __下划线__ 以及 ''等宽体'' 等格式。当然,您也可以 **__//''混合使用''//__** 所有这些格式。 DokuWiki支持 **粗体**, //斜体//, __下划线__ and ''等宽体'' 等格式。 当然,您也可以 **__//''混合使用''//__** 所有这些格式。 可以使用 下标上标。 可以使用 下标上标。 您也可以使用 删除线 标记某些信息。 您也可以使用 删除线 标记某些信息。 **段落** 是由空行所建立的。如果您想 **强制建立新行** 而不建立段落,您可以使用两个连续的反斜杠+空格或是回车作为标记。请看样例: 这是一些有着换行标记的文字。\\ 请注意 反斜杠只在回车符之前\\ 或者在\\ 一个空格之前的时候才有效。 \\而这样就并不起作用。 这是一些有着换行标记的文字。\\ 请注意 反斜杠只在回车符之前\\ 或者在\\ 一个空格之前的时候才有效。 \\而这样就并不起作用。 请只在必须的时候才使用强制的换行标记。 ===== 链接 ===== DokuWiki支持多种形式的链接。 ==== 外部链接 ==== 外部链接会被自动地识别: http://www.stepfpga.com 或者简单地写作 www.stepfpga.com - 当然您也可以为链接设置名字: [[http://www.stepfpga.com|链接到小脚丫网站]]. 类似这样的电子邮件地址: 也可以被识别。 DokuWiki支持多种形式的链接。外部链接会被自动地识别: http://www.google.com 或者简单地写作 www.google.com - 当然您也可以为链接设置名字: [[http://www.google.com|链接到google]]。 类似这样的电子邮件地址: 也可以被识别。 ==== 内部链接 ==== 内部链接可以用方括号创建。您可以只给出链接的地址:[[doku>wiki:pagename]],也可以附加上链接的名字:[[doku>wiki:pagename|我的链接]]。Wiki的页面名字将会被自动地识别为小写字母,并且不允许使用特殊字符。 内部链接可以用方括号创建。您可以只给出链接的地址:[[pagename]], 也可以附加上链接的名字:[[pagename|我的链接]]。 Wiki的页面名字将会被自动地识别为小写字母,并且不允许使用特殊字符。 您可以通过在页面名中使用冒号的方式来使用 [[wiki:namespaces|命名空间]]。 您可以通过在页面名中使用冒号的方式来使用 [[wiki:namespaces|命名空间]]。 如果您需要关于**命名空间(namespaces)**的更详细的信息,请参见 [[doku>wiki:namespaces]]。 您也可以链接到一个网页内部的某一节,只需要将该节书签的名称以一个#号分隔加在网页的地址后面即可。这是一个连向 [[syntax#internal|本节]] 的链接。 这是一个连向 [[syntax#internal|本节]] 的链接。 注: * 到 [[wiki:syntax|已存在页面]] 的链接和到 [[wiki:nonexisting|未存在页面]] 的链接,其外观是不同的。 * 默认情况下,DokuWiki不使用 [[wp>CamelCase]] 来自动建立链接,(CamelCase类似于PmWiki中的WikiWord)。但是也可以在 [[doku>config|设置文件]] 中启用它。 Hint: If DokuWiki is a link, then it's enabled. * 当一节的标题改变时,该节的书签也会改变,因此,请不要太依靠网页内的链接。 ==== Wiki间链接 ==== DokuWiki支持 [[doku>wiki:interwiki|Wiki间链接]] ,即到其他wiki的链接。例如,这是一个到Wikipedia上关于Wiki的一个页面的的链接: [[wp>Wiki]] DokuWiki支持 [[interwiki|Wiki间链接]] ,即到其他wiki的链接。 例如,这是一个到Wikipedia上关于Wiki的一个页面的的链接: [[wp>Wiki]] ==== Windows共享文件夹 ==== Windows共享文件夹,例如 [[\\server\share|this]] 也可以被识别。请注意,这只在内部 [[wp>Intranet|局域网]] 等环境中才可能被成功访问。 Windows共享文件夹,例如 [[\\server\share|this]] 也可以被识别。 注: * 出于安全原因,只有在微软IE浏览器上才能够直接访问Windows共享文件夹。 ==== 图像链接 ==== 您也可以用图像来作为一个内部或者外部的链接,只需同时使用链接和图像的语法,如下所示: [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] 请注意:在链接名中使用语法,只有显示图像的语法会被识别,请不要使用其它语法。 ===== 脚注 ===== 您可以使用两个连续小括号来添加脚注((看这里,这是一个脚注))。 您可以使用两个连续小括号来添加脚注((看这里,这是一个脚注))。 ===== 标题段落 ===== 您可以使用最多达5层的标题来使您的页面更富结构性。如果您使用了三个以上的标题,那么DokuWiki会自动在页面上生成一个名为“本页目录”的标题列表。当然,您也可以关闭这项特性,只需在编辑时在页面里加入 ''~~NOTOC~~'' 字样即可。 ==== H3标题 ==== === H4标题 === == H5标题 == ==== H3标题 ==== === H4标题 === == H5标题 == 您可以通过连续的4个以上“-”号来创建一条水平分割线: ---- ===== 图像和其它文件 ===== 您可以使用双大括号来在页面中加入 [[doku>images|图像]] 。您还可以选择是否指定图像的显示大小。 原始大小: {{wiki:dokuwiki-128.png}} 指定宽度: {{wiki:dokuwiki-128.png?50}} 指定宽度和高度: {{wiki:dokuwiki-128.png?200x50}} 重新指定宽度和高度的外部图像: {{http://de3.php.net/images/php.gif?200x50}} 原始大小: {{wiki:dokuwiki-128.png}} 指定宽度: {{wiki:dokuwiki-128.png?50}} 指定宽度和高度: {{wiki:dokuwiki-128.png?200*50}} 重新指定宽度和高度的外部图像: {{http://de3.php.net/images/php.gif?200x50}} 使用左方或者右方的空格,您可以选择对齐方式: {{ wiki:dokuwiki-128.png}} {{wiki:dokuwiki-128.png }} {{ wiki:dokuwiki-128.png }} {{ wiki:dokuwiki-128.png}} {{wiki:dokuwiki-128.png }} {{ wiki:dokuwiki-128.png }} 当然,您也可以指定一个图像的名字,将鼠标移到图像上可以看到效果。 {{ wiki:dokuwiki-128.png |这是图像的名字}} {{ wiki:dokuwiki-128.png |这是图像的名字}} 如果您指定的文件名(无论是外部的还是内部的)不是一个图像(''gif,jpeg,png''),那么它将被显示为一个链接。 ===== 列表 ===== Dokuwiki支持带编号或不带编号的列表。要使用列表,在文字前加入两个空格,然后使用''*''标志不带编号的列表,用''-''标志带编号的列表。 * 列表 * 第二项 * 下一层 * 第三项 - 带编号的列表 - 第二项 - 用缩进表示更深的层 - 完了 * 列表 * 第二项 * 下一层 * 第三项 - 带编号的列表 - 第二项 - 用缩进表示更深的层 - 完了 ===== 表情符号 ===== DokuWiki会将一些常用的 [[wp>emoticon|表情符号]] 转换为图像。除了默认的表情符号以外,您也可以在 ''smiley'' 文件夹中放入更多的表情图,然后在 ''conf/smileys.conf'' 中设置它们即可。下面是Dokuwiki包含了的表情图像: * 8-) %% 8-) %% * 8-O %% 8-O %% * :-( %% :-( %% * :-) %% :-) %% * =) %% =) %% * :-/ %% :-/ %% * :-\ %% :-\ %% * :-? %% :-? %% * :-D %% :-D %% * :-P %% :-P %% * :-O %% :-O %% * :-X %% :-X %% * :-| %% :-| %% * ;-) %% ;-) %% * ^_^ %% ^_^ %% * :?: %% :?: %% * :!: %% :!: %% * LOL %% LOL %% * FIXME %% FIXME %% * DELETEME %% DELETEME %% ===== 印刷样式 ===== [[DokuWiki]]可以将特定字符转换为印刷时所用的样式。下面是可以识别的这类字符的列表: -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) "He thought 'It's a man's world'..." -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) "He thought 'It's a man's world'..." 请注意:在配置文件中可以禁用这类自动转换。 ===== 表格 ===== DokuWiki可以用简单的语法创建表格。 ^ 标题1 ^ 标题2 ^ 标题3 ^ | (1,1) | (1,2) | (1,3) | | (2,1) | 展宽的单元格 || | (3,1) | (3,2) | (3,3) | 表格的每一行都以分隔符 ''|'' (普通行)或者 ''^'' (标题行)作为开头和结束。 ^ 标题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) | 注:垂直合并单元格尚未实现。 您可以对齐表格的文字。只需要添加多余两个的空格在您需要对齐的方向的反向即可:如果需要右对齐,在左边添加两个空格;反之,则在右边添加。在两边均添加空格可以实现中间对齐。 ^ 有对齐的表格 ^^^ | 右对齐| 居中 |左对齐 | |左对齐 | 右对齐| 居中 | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | 下面是源文件中的格式: ^ 有对齐的表格 ^^^ | 右对齐| 居中 |左对齐 | |左对齐 | 右对齐| 居中 | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | ===== 无格式区块 ===== 您可以在文章中插入无格式区块,在这些区块中Wiki语法将不起作用。可以有三种方法:在行前加两个以上的空格(前面做样例时用的方法),或者可以使用 ''Code'' 或 ''file'' 标记。 这是一段被code包围的区块,其中的空格都被保留了:像 <-这样 和code是类似的。不过您可以用这个来表示您引用了一个文件的内容。 要让Wiki语法解释完全失效,可以用 ''nowiki'' 标签包围整个区块,或者也可以简单地使用双百分号标记 ''%%''。 这是一段完全没有Wiki语法解释的文字,例如:http://www.splitbrain.org , **粗体**,虽然按照语法书写,但是它们并没有被解释。 如何使用这些标记,请查看这一段的源文件。 ===== 语法 ===== [[DokuWiki]] 可以将源代码作语法高亮以增加可读性。它使用称作 [[http://qbnz.com/highlighter/|GeSHi]] 的通用语法高亮工具(Generic Syntax Highlighter)——所有被GeSHi支持的语言都可以在DokuWiki中得到高亮。使用code标记的方法和上面是类似的,不过需要指定使用的语言,例如: ''''。 /** * The HelloWorldApp class implements an application that * simply displays "Hello World!" to the standard output. */ class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); //Display the string. } } 现在,DokuWiki可以支持的语言有: //actionscript, ada, apache, asm, asp, bash, caddcl, cadlisp, c, c_mac, cpp, csharp, css, delphi, html4strict, java, javascript, lisp, lua, nsis, objc, oobas, pascal, perl, php-brief, php, python, qbasic, smarty, sql, vb, vbnet, visualfoxpro, xml// ===== 嵌入HTML和PHP ===== 您可以使用 ''html'' 或者 ''php''标记在文档中嵌入HTML或PHP的代码。例如: 这是 HTML 代码。 这是 HTML 代码。 echo '由PHP生成的logo:'; echo 'PHP Logo !'; echo '由PHP生成的logo:'; echo 'PHP Logo !'; **请注意**: HTML和PHP嵌入的功能默认情况下是被禁用的,因此,您可能无法看到上面的代码运行的结果而只能够看见源代码,这取决于DokuWiki站点的设置。(?) ====== DokuWiki ====== [[doku>wiki:dokuwiki|{{wiki:dokuwiki-128.png }}]] DokuWiki is a simple to use and highly versatile Open Source [[wp>wiki]] software that doesn't require a database. It is loved by users for its clean and readable [[wiki:syntax]]. The ease of maintenance, backup and integration makes it an administrator's favorite. Built in [[doku>acl|access controls]] and [[doku>auth|authentication connectors]] make DokuWiki especially useful in the enterprise context and the large number of [[doku>plugins]] contributed by its vibrant community allow for a broad range of use cases beyond a traditional wiki. Read the [[doku>manual|DokuWiki Manual]] to unleash the full power of DokuWiki. ===== Download ===== DokuWiki is available at http://download.dokuwiki.org/ ===== Read More ===== All documentation and additional information besides the [[syntax|syntax description]] is maintained in the DokuWiki at [[doku>|www.dokuwiki.org]]. **About DokuWiki** * [[doku>features|A feature list]] :!: * [[doku>users|Happy Users]] * [[doku>press|Who wrote about it]] * [[doku>blogroll|What Bloggers think]] * [[http://www.wikimatrix.org/show/DokuWiki|Compare it with other wiki software]] **Installing DokuWiki** * [[doku>requirements|System Requirements]] * [[http://download.dokuwiki.org/|Download DokuWiki]] :!: * [[doku>changes|Change Log]] * [[doku>Install|How to install or upgrade]] :!: * [[doku>config|Configuration]] **Using DokuWiki** * [[doku>syntax|Wiki Syntax]] * [[doku>manual|The manual]] :!: * [[doku>FAQ|Frequently Asked Questions (FAQ)]] * [[doku>glossary|Glossary]] * [[http://search.dokuwiki.org|Search for DokuWiki help and documentation]] **Customizing DokuWiki** * [[doku>tips|Tips and Tricks]] * [[doku>Template|How to create and use templates]] * [[doku>plugins|Installing plugins]] * [[doku>development|Development Resources]] **DokuWiki Feedback and Community** * [[doku>newsletter|Subscribe to the newsletter]] :!: * [[doku>mailinglist|Join the mailing list]] * [[http://forum.dokuwiki.org|Check out the user forum]] * [[doku>irc|Talk to other users in the IRC channel]] * [[https://github.com/splitbrain/dokuwiki/issues|Submit bugs and feature wishes]] * [[http://www.wikimatrix.org/forum/viewforum.php?id=10|Share your experiences in the WikiMatrix forum]] * [[doku>thanks|Some humble thanks]] ===== Copyright ===== 2004-2015 (c) Andreas Gohr ((Please do not contact me for help and support -- use the [[doku>mailinglist]] or [[http://forum.dokuwiki.org|forum]] instead)) and the DokuWiki Community The DokuWiki engine is licensed under [[http://www.gnu.org/licenses/gpl.html|GNU General Public License]] Version 2. If you use DokuWiki in your company, consider [[doku>donate|donating]] a few bucks ;-). Not sure what this means? See the [[doku>faq:license|FAQ on the Licenses]].