Dokuwiki 的插件

Dokuwiki 插件简介

DokuWiki 支持 Plugin (插件)。可以到 DokuWiki Plugins 查找并下载插件。

常用的插件

插件安装的一般方法

1、使用 Wiki管理界面中的 插件管理器 进行安装

2、手工安装

  1. 下载压缩文件
  2. 解压缩并上传至 <dokuwiki>/lib/plugins 目录
  3. 根据需要修改模版 (并非所有插件都需要此步骤)

一些插件可以使用 Wiki管理界面中的 配置管理器 进行配置,如:

  • Blog
  • Tag
  • Feed
  • BookmarkMe

常用插件的使用方法

下面收集了一些常用插件的使用方法:

Box Plugin

Syntax

The full syntax:

<box width classes colours | title text> contents text </box>

  • width — any legal CSS width value
  • classes — any number of classes which use the styles in your template or the plugin's own stylesheet to determine the look of the box. The box plugins comes with the following classes already defined:
    • round — box will have rounded corners
    • blue — blue colour scheme
    • red — red colour scheme
    • green — green colour scheme
    • orange — orange colour scheme
    • left — float the box left within the wiki page
    • right — float the box right within the wiki page

if no classes are specified the default styles will be used, that is square corners in a colour scheme based on the default Dokuwiki colour scheme.

  • colours — 1-4 colours in CSS hex or rgb notation, e.g. #F00 #fcab94 rgb(255,255,0). The colours are applied in order to:
    1. content background
    2. title background
    3. outer box background
    4. borders

if less than four colours are specified, the first colour is used for the missing colours.

  • title text — text (including dokuwiki markup) displayed above the box contents, with distinct style.
  • caption text — text (no markup allowed) displayed below the box contents, with distinct style.

The opening <box … > including the title must all appear on one line. The box contents can appear over as many lines as are needed.

Example

A simple box:

<box> the box contents </box>

the box contents

Some more complex boxes

<box 80% round orange|a title> the box contents</box>

a title

the box contents

<box 50% left blue>the box contents</box|a caption>

the box contents

a caption

<box 60% round #f99 #fc9 #fcc #f60|title>the box contents></box|caption>

title

the box contents>

caption

See the plugin in action here. The sample page shows all the styles available with the plugin.

Note Plugin

Syntax

<note [important|warning|tip]>
……
</note>

Example

<note>
This is my note ! Remember it !!
</note>

This is my note ! Remember it !!

<note important>
Warning ! You're about to lose your mind ;-)
</note>

Warning ! You're about to lose your mind ;-)

<note tip>
The clues are in the images.
</note>

The clues are in the images.

<note warning>
Beware of the dog when you open the door !!
</note>

Beware of the dog when you open the door !!

<note warning>
Beware of the dog when you open the door !!
<note tip>
The clues are in the images.
</note>
</note>

Beware of the dog when you open the door !!

The clues are in the images.

Folded Plugin

Usage & Example

Inline:

This is example ++text | with some of it only shown when you unfold it++. 
And after that the text just continues to flow in the same paragraph.

This is example text. And after that the text just continues to flow in the same paragraph.

Block:

This is example text.

++++ Title |

| This table | is only shown | when you unfold the block |

{{page>some other wiki page}}

++++

This is example text.

Title

Code Plugin

Syntax

<code lang number |[fh] text |[sh]>
{code to highlight}
</code>
  • lang” (if present) specifies the given code's (programming-) language;
  • number” (if present) specifies the first number to use when numbering the given code's lines;
  • the first ”|” (if present) delimits the first argument(s) from the remaining ones which are used to produce a header or footer above/below the high­ligh­ted code;
  • a ”h” (for “header”)1) following immediately the pipe cha­rac­ter cau­ses the remaining ”text” to get placed above the code, a ”f” (for “foot”)2) places the ”text” below the code (note that this flag is optional; if omitted it de­faults to ”f”);
  • the ”text” is used as-is with the additional benefit of get­ting wrapped by an anchor tag which allows for addressing the code from other pages.
  • the second ”|” (if present) delimits the header/footer text;
  • a ”s”(for “show”, the default) or ”h”(for “hide”) character (if present) controls the code block's initial folding state.
  • the ”{code to highlight}” is either the plain text to process or a pointer to an external_files.

Example

ex1:

<code>
some text
and more
</code>
some text
and more

ex2:

<code 1>
some text
and more
</code>
1: some text
2: and more

ex3:

<code JavaScript 12|Listing 2>
var de = function() {
return (typeof(window.de) == 'object') ? window.de : {};
}();
</code>
12: var de = function() {
13: return (typeof(window.de) == 'object') ? window.de : {};
14: }();

Listing 2

ex4:

<code JavaScript 12|h Listing 2>
var de = function() {
return (typeof(window.de) == 'object') ? window.de : {};
}();
</code>

Listing 2

12: var de = function() {
13: return (typeof(window.de) == 'object') ? window.de : {};
14: }();

ex5:

<code console>
$ sudo apt-get update
$ sudo apt-get upgrade
</code>
$ sudo apt-get update
$ sudo apt-get upgrade

ex6:

<code html 1|t The DokuWiki Start-Page>
extern> http://wiki.splitbrain.org/
</code>

The DokuWiki Start-Page

  1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2:  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
  4:  lang="en" dir="ltr">
  5: <head>
  6:   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7:   <title>
  8:     dokuwiki    [DokuWiki]
  9:   </title>
 10:
 11:   <meta name="generator" content="DokuWiki snapshot? unknown" />
 12: <meta name="robots" content="index,follow" />
 13: <meta name="date" content="2010-01-15T11:39:25+0100" />
 14: <meta name="keywords" content="dokuwiki" />
 15: <link rel="search" type="application/opensearchdescription+xml" href="/lib/exe/opensearch.php" title="DokuWiki" />
 16: <link rel="start" href="/" />
 17: <link rel="contents" href="/dokuwiki?do=index" title="Index" />
 18: <link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/feed.php" />
 19: <link rel="alternate" type="application/rss+xml" title="Current Namespace" href="/feed.php?mode=list&amp;ns=" />
 20: <link rel="alternate" type="text/html" title="Plain HTML" href="/_export/xhtml/dokuwiki" />
 21: <link rel="alternate" type="text/plain" title="Wiki Markup" href="/_export/raw/dokuwiki" />
 22: <link rel="canonical" href="http://www.dokuwiki.org/dokuwiki" />
 23: <link rel="stylesheet" media="screen" type="text/css" href="/lib/exe/css.php?t=default&amp;tseed=1267119731" />
 24: <link rel="stylesheet" media="all" type="text/css" href="/lib/exe/css.php?s=all&amp;t=default&amp;tseed=1267119731" />
 25: <link rel="stylesheet" media="print" type="text/css" href="/lib/exe/css.php?s=print&amp;t=default&amp;tseed=1267119731" />
 26: <script type="text/javascript" charset="utf-8" ><!--//--><![CDATA[//><!--
 27: var NS='';var JSINFO = {"id":"dokuwiki","namespace":""};
 28: //--><!]]></script>
 29: <script type="text/javascript" charset="utf-8" src="/lib/exe/js.php?tseed=1267119731" ></script>
 30: <script type="text/javascript" charset="utf-8" ><!--//--><![CDATA[//><!--
 31: addInitEvent(function(){
 32:     for ( i=0; i < document.forms.length; i++ ) {
 33:         if (document.forms[i].method == 'post') {
 34:             var myElement = document.createElement('input');
 35:             myElement.setAttribute('type', 'hidden');
 36:             myElement.name = 'bb2_screener_';
 37:             myElement.value = '1268276063 208.97.171.4';
 38:             document.forms[i].appendChild(myElement);
 39:         }
 40:     }
 41: });
 42: //--><!]]></script>
 43:
 44:   <link rel="shortcut icon" href="/lib/tpl/default/images/favicon.ico" />
 45:
 46:   <meta name="verify-v1" content="OVxl3gsCv2MhZqh1cBQyl0JytWXSwXMjyvwc+4w3WtA=" />
 47: <script type="text/javascript">
 48: var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
 49: document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 50: </script>
 51: <script type="text/javascript">
 52: var pageTracker = _gat._getTracker("UA-83791-1");
 53: pageTracker._trackPageview();
 54: </script>
 55: </head>
 56:
 57: <body>
 58: <div class="dokuwiki">
 59:
 60:   <div class="stylehead">
 61:
 62:     <div class="header">
 63:       <div class="pagename">
 64:         [[<a href="/dokuwiki?do=backlink"  title="Backlinks">dokuwiki</a>]]
 65:       </div>
 66:       <div class="logo">
 67:         <a href="/"  name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[H]">DokuWiki</a>      </div>
 68:
 69:       <div class="clearer"></div>
 70:     </div>
 71:
 72:
 73:     <div class="bar" id="bar__top">
 74:       <div class="bar-left" id="bar__topleft">
 75:         <form class="button btn_source" method="post" action="/dokuwiki"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="" /><input type="submit" value="Show pagesource" class="button" accesskey="v" title="Show pagesource [V]" /></div></form>        <form class="button btn_revs" method="get" action="/dokuwiki"><div class="no"><input type="hidden" name="do" value="revisions" /><input type="submit" value="Old revisions" class="button" accesskey="o" title="Old revisions [O]" /></div></form>      </div>
 76:
 77:       <div class="bar-right" id="bar__topright">
 78:         <form class="button btn_recent" method="get" action="/dokuwiki"><div class="no"><input type="hidden" name="do" value="recent" /><input type="submit" value="Recent changes" class="button" accesskey="r" title="Recent changes [R]" /></div></form>        <form action="/" accept-charset="utf-8" class="search" id="dw__search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>&nbsp;
 79:       </div>
 80:
 81:       <div class="clearer"></div>
 82:     </div>
 83:
 84:         <div class="breadcrumbs">
 85:       <span class="bchead">Trace:</span> <span class="bcsep">&raquo;</span> <span class="curid"><a href="/dokuwiki"  class="breadcrumbs" title="dokuwiki">dokuwiki</a></span>          </div>
 86:
 87:
 88:   </div>
 89:
 90:   <div class="plugin_translation"><span>Translations of this page<sup><a href="/localization" class="wikilink1" title="localization">?</a></sup>:</span> <form action="/" id="translation__dropdown"><select name="id" class="wikilink1"><option value="dokuwiki" selected="selected" class="wikilink1" title="English">en</option><option value="ca:dokuwiki" class="wikilink1" title="Català">ca</option><option value="cs:dokuwiki" class="wikilink1" title="česky">cs</option><option value="da:dokuwiki" class="wikilink1" title="dansk">da</option><option value="de:dokuwiki" class="wikilink1" title="Deutsch">de</option><option value="el:dokuwiki" class="wikilink1" title="Ελληνικά">el</option><option value="eo:dokuwiki" class="wikilink1" title="Esperanto">eo</option><option value="es:dokuwiki" class="wikilink1" title="español">es</option><option value="fr:dokuwiki" class="wikilink1" title="français">fr</option><option value="hu:dokuwiki" class="wikilink1" title="Magyar">hu</option><option value="it:dokuwiki" class="wikilink1" title="Italiano">it</option><option value="ja:dokuwiki" class="wikilink1" title="日本語">ja</option><option value="ko:dokuwiki" class="wikilink1" title="한국어">ko</option><option value="lt:dokuwiki" class="wikilink1" title="lietuvių kalba">lt</option><option value="nl:dokuwiki" class="wikilink1" title="Nederlands">nl</option><option value="no:dokuwiki" class="wikilink1" title="Norsk">no</option><option value="pl:dokuwiki" class="wikilink1" title="polski">pl</option><option value="pt-br:dokuwiki" class="wikilink1" title="">pt-br</option><option value="ru:dokuwiki" class="wikilink1" title="Русский">ru</option><option value="sr:dokuwiki" class="wikilink2" title="српски језик">sr</option><option value="sv:dokuwiki" class="wikilink1" title="svenska">sv</option><option value="uk:dokuwiki" class="wikilink2" title="Українська">uk</option><option value="zh:dokuwiki" class="wikilink1" title="中文">zh</option><option value="zh-tw:dokuwiki" class="wikilink1" title="">zh-tw</option></select><input name="go" type="submit" value="&rarr;" /></form></div>
 91:   <div class="page">
 92:     <!-- wikipage start -->
 93:     <!-- TOC START -->
 94: <div class="toc">
 95: <div class="tocheader toctoggle" id="toc__header">Table of Contents</div>
 96: <div id="toc__inside">
 97:
 98: <ul class="toc">
 99: <li class="level1"><div class="li"><span class="li"><a href="#dokuwiki" class="toc">DokuWiki</a></span></div>
100: <ul class="toc">
101: <li class="level2"><div class="li"><span class="li"><a href="#download" class="toc">Download</a></span></div></li>
102: <li class="level2"><div class="li"><span class="li"><a href="#read_more" class="toc">Read More</a></span></div></li>
103: <li class="level2"><div class="li"><span class="li"><a href="#copyright" class="toc">Copyright</a></span></div></li></ul>
104: </li></ul>
105: </div>
106: </div>
107: <!-- TOC END -->
108:
109: <h1 class="sectionedit1"><a name="dokuwiki" id="dokuwiki">DokuWiki</a></h1>
110: <div class="level1">
111:
112: <p>
113:
114: <a href="http://www.dokuwiki.org/wiki%3Adokuwiki" class="media" title="http://www.dokuwiki.org/wiki%3Adokuwiki"><img src="/_media/wiki:dokuwiki-128.png" class="medialeft" align="left" alt="" /></a> DokuWiki is a standards compliant, simple to use <a href="http://en.wikipedia.org/wiki/Wiki" class="interwiki iw_wp" title="http://en.wikipedia.org/wiki/Wiki">Wiki</a>, mainly aimed at creating documentation of any kind. It is targeted at developer teams, workgroups and small companies. It has a simple but powerful <a href="/wiki:syntax" class="wikilink1" title="wiki:syntax">syntax</a> which makes sure the datafiles remain readable outside the Wiki and eases the creation of structured texts. All data is stored in plain text files – no database is required.
115: </p>
116:
117: <p>
118: Read the <a href="http://www.dokuwiki.org/manual" class="interwiki iw_doku" title="http://www.dokuwiki.org/manual">DokuWiki Manual</a> to unleash the full power of DokuWiki.
119: </p>
120:
121: </div>
122:
123: <h2 class="sectionedit2"><a name="download" id="download">Download</a></h2>
124: <div class="level2">
125:
126: <p>
127:
128: DokuWiki is available at <a href="http://www.splitbrain.org/go/dokuwiki" class="urlextern" title="http://www.splitbrain.org/go/dokuwiki">http://www.splitbrain.org/go/dokuwiki</a>
129: </p>
130:
131: </div>
132:
133: <h2 class="sectionedit3"><a name="read_more" id="read_more">Read More</a></h2>
134: <div class="level2">
135:
136: <p>
137:
138: All documentation and additional information besides the <a href="/syntax" class="wikilink1" title="syntax">syntax description</a> is maintained in the DokuWiki at <a href="http://www.dokuwiki.org/" class="interwiki iw_doku" title="http://www.dokuwiki.org/">www.dokuwiki.org</a>.
139: </p>
140:
141: <p>
142: <strong>About DokuWiki</strong>
143:
144: </p>
145: <ul>
146: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/features" class="interwiki iw_doku" title="http://www.dokuwiki.org/features">A feature list</a> <img src="/lib/images/smileys/icon_exclaim.gif" class="middle" alt=":!:" /></div>
147: </li>
148: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/users" class="interwiki iw_doku" title="http://www.dokuwiki.org/users">Happy Users</a></div>
149: </li>
150: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/press" class="interwiki iw_doku" title="http://www.dokuwiki.org/press">Who wrote about it</a></div>
151: </li>
152: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/blogroll" class="interwiki iw_doku" title="http://www.dokuwiki.org/blogroll">What Bloggers think</a></div>
153: </li>
154: <li class="level1"><div class="li"> <a href="http://www.wikimatrix.org/show/DokuWiki" class="urlextern" title="http://www.wikimatrix.org/show/DokuWiki">Compare it with other wiki software</a></div>
155: </li>
156: </ul>
157:
158: <p>
159:
160: <strong>Installing DokuWiki</strong>
161:
162: </p>
163: <ul>
164: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/requirements" class="interwiki iw_doku" title="http://www.dokuwiki.org/requirements">System Requirements</a></div>
165: </li>
166: <li class="level1"><div class="li"> <a href="http://www.splitbrain.org/go/dokuwiki" class="urlextern" title="http://www.splitbrain.org/go/dokuwiki">Download DokuWiki</a> <img src="/lib/images/smileys/icon_exclaim.gif" class="middle" alt=":!:" /></div>
167: </li>
168: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/changes" class="interwiki iw_doku" title="http://www.dokuwiki.org/changes">Change Log</a></div>
169: </li>
170: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/Install" class="interwiki iw_doku" title="http://www.dokuwiki.org/Install">How to install or upgrade</a> <img src="/lib/images/smileys/icon_exclaim.gif" class="middle" alt=":!:" /></div>
171: </li>
172: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/config" class="interwiki iw_doku" title="http://www.dokuwiki.org/config">Configuration</a></div>
173: </li>
174: </ul>
175:
176: <p>
177:
178: <strong>Using DokuWiki</strong>
179:
180: </p>
181: <ul>
182: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/syntax" class="interwiki iw_doku" title="http://www.dokuwiki.org/syntax">Wiki Syntax</a></div>
183: </li>
184: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/manual" class="interwiki iw_doku" title="http://www.dokuwiki.org/manual">The manual</a> <img src="/lib/images/smileys/icon_exclaim.gif" class="middle" alt=":!:" /></div>
185: </li>
186: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/FAQ" class="interwiki iw_doku" title="http://www.dokuwiki.org/FAQ">Frequently Asked Questions (FAQ)</a></div>
187: </li>
188: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/glossary" class="interwiki iw_doku" title="http://www.dokuwiki.org/glossary">Glossary</a></div>
189: </li>
190: <li class="level1"><div class="li"> <a href="http://search.dokuwiki.org" class="urlextern" title="http://search.dokuwiki.org">Search for DokuWiki help and documentation</a></div>
191: </li>
192: </ul>
193:
194: <p>
195:
196: <strong>Customizing DokuWiki</strong>
197:
198: </p>
199: <ul>
200: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/tips" class="interwiki iw_doku" title="http://www.dokuwiki.org/tips">Tips and Tricks</a></div>
201: </li>
202: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/Template" class="interwiki iw_doku" title="http://www.dokuwiki.org/Template">How to create and use templates</a></div>
203: </li>
204: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/plugins" class="interwiki iw_doku" title="http://www.dokuwiki.org/plugins">Installing plugins</a></div>
205: </li>
206: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/development" class="interwiki iw_doku" title="http://www.dokuwiki.org/development">Development Resources</a></div>
207: </li>
208: </ul>
209:
210: <p>
211:
212: <strong>DokuWiki Feedback and Community</strong>
213:
214: </p>
215: <ul>
216: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/newsletter" class="interwiki iw_doku" title="http://www.dokuwiki.org/newsletter">Subscribe to the newsletter</a> <img src="/lib/images/smileys/icon_exclaim.gif" class="middle" alt=":!:" /></div>
217: </li>
218: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/mailinglist" class="interwiki iw_doku" title="http://www.dokuwiki.org/mailinglist">Join the mailing list</a></div>
219: </li>
220: <li class="level1"><div class="li"> <a href="http://forum.dokuwiki.org" class="urlextern" title="http://forum.dokuwiki.org">Check out the user forum</a></div>
221: </li>
222: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/irc" class="interwiki iw_doku" title="http://www.dokuwiki.org/irc">Talk to other users in the IRC channel</a></div>
223: </li>
224: <li class="level1"><div class="li"> <a href="http://bugs.splitbrain.org/index.php?project=1" class="urlextern" title="http://bugs.splitbrain.org/index.php?project=1">Submit bugs and feature wishes</a></div>
225: </li>
226: <li class="level1"><div class="li"> <a href="http://www.wikimatrix.org/forum/viewforum.php?id=10" class="urlextern" title="http://www.wikimatrix.org/forum/viewforum.php?id=10">Share your experiences in the WikiMatrix forum</a></div>
227: </li>
228: <li class="level1"><div class="li"> <a href="http://www.dokuwiki.org/thanks" class="interwiki iw_doku" title="http://www.dokuwiki.org/thanks">Some humble thanks</a></div>
229: </li>
230: </ul>
231:
232: </div>
233:
234: <h2 class="sectionedit4"><a name="copyright" id="copyright">Copyright</a></h2>
235: <div class="level2">
236:
237: <p>
238:
239: 2004-2010 © Andreas Gohr <a href="mailto:andi%20%5Bat%5D%20splitbrain%20%5Bdot%5D%20org" class="mail JSnocheck" title="andi [at] splitbrain [dot] org">andi [at] splitbrain [dot] org</a><sup><a href="#fn__1" name="fnt__1" id="fnt__1" class="fn_top">1)</a></sup>
240: </p>
241:
242: <p>
243: The DokuWiki engine is licensed under <a href="http://www.gnu.org/licenses/gpl.html" class="urlextern" title="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> Version 2. If you use DokuWiki in your company, consider <a href="http://www.dokuwiki.org/donate" class="interwiki iw_doku" title="http://www.dokuwiki.org/donate">donating</a> a few bucks <img src="/lib/images/smileys/icon_wink.gif" class="middle" alt=";-)" />.
244: </p>
245:
246: <p>
247: Not sure what this means? See the <a href="http://www.dokuwiki.org/faq%3Alicense" class="interwiki iw_doku" title="http://www.dokuwiki.org/faq%3Alicense">FAQ on the Licenses</a>.
248: </p>
249:
250: </div>
251: <div class="footnotes">
252: <div class="fn"><sup><a href="#fnt__1" id="fn__1" name="fn__1" class="fn_bot">1)</a></sup>
253: Please do not contact me for help and support – use the <a href="http://www.dokuwiki.org/mailinglist" class="interwiki iw_doku" title="http://www.dokuwiki.org/mailinglist">mailinglist</a> or <a href="http://forum.dokuwiki.org" class="urlextern" title="http://forum.dokuwiki.org">forum</a> instead</div>
254: </div>
255:
256:     <!-- wikipage stop -->
257:   </div>
258:
259:   <div class="clearer">&nbsp;</div>
260:
261:
262:   <div class="stylefoot">
263:
264:     <div class="meta">
265:       <div class="user">
266:               </div>
267:       <div class="doc">
268:         dokuwiki.txt &middot; Last modified: 2010/01/15 11:39 (external edit)      </div>
269:     </div>
270:
271:
272:     <div class="bar" id="bar__bottom">
273:       <div class="bar-left" id="bar__bottomleft">
274:         <form class="button btn_source" method="post" action="/dokuwiki"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="" /><input type="submit" value="Show pagesource" class="button" accesskey="v" title="Show pagesource [V]" /></div></form>        <form class="button btn_revs" method="get" action="/dokuwiki"><div class="no"><input type="hidden" name="do" value="revisions" /><input type="submit" value="Old revisions" class="button" accesskey="o" title="Old revisions [O]" /></div></form>              </div>
275:       <div class="bar-right" id="bar__bottomright">
276:                                 <form class="button btn_login" method="get" action="/dokuwiki"><div class="no"><input type="hidden" name="do" value="login" /><input type="hidden" name="sectok" value="fd0cab67bdf5724ef938d87896d81e3e" /><input type="submit" value="Login" class="button" title="Login" /></div></form>        <form class="button btn_index" method="get" action="/dokuwiki"><div class="no"><input type="hidden" name="do" value="index" /><input type="submit" value="Index" class="button" accesskey="x" title="Index [X]" /></div></form>        <a class="nolink" href="#dokuwiki__top"><input type="button" class="button" value="Back to top" onclick="window.scrollTo(0, 0)" title="Back to top" /></a>&nbsp;
277:       </div>
278:       <div class="clearer"></div>
279:     </div>
280:
281:   </div>
282:
283:   <div class="license">Except where otherwise noted, content on this wiki is licensed under the following license:<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="license" class="urlextern">CC Attribution-Noncommercial-Share Alike 3.0 Unported</a></div>
284: </div>
285: <div style="margin: 0.5em" class="dokuwiki">DokuWiki is currently sponsored by: AOE media GmbH - <a class="urlextern" href="http://www.aoemedia.de/typo3-agentur.html">TYPO3 Agentur</a></div>
286: <div class="footerinc">
287:   <a href="http://www.splitbrain.org/personal#imprint" style="float:right; text-decoration: none; color:#333">Imprint</a>
288:
289:   <a  href="/feed.php" title="Recent changes RSS feed"><img src="/lib/tpl/default/images/button-rss.png" width="80" height="15" alt="Recent changes RSS feed" /></a>
290:
291:         <a  href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="license" title="CC Attribution-Noncommercial-Share Alike 3.0 Unported"><img src="/lib/images/license/button/cc-by-nc-sa.png" width="80" height="15" alt="" /></a>
292:
293:   <a  href="http://www.dokuwiki.org/donate" title="Donate"><img src="/lib/tpl/default/images/button-donate.gif" alt="Donate" width="80" height="15" /></a>
294:
295:   <a  href="http://www.php.net" title="Powered by PHP"><img src="/lib/tpl/default/images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a>
296:
297:   <a  href="http://validator.w3.org/check/referer" title="Valid XHTML 1.0"><img src="/lib/tpl/default/images/button-xhtml.png" width="80" height="15" alt="Valid XHTML 1.0" /></a>
298:
299:   <a  href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS"><img src="/lib/tpl/default/images/button-css.png" width="80" height="15" alt="Valid CSS" /></a>
300:
301:   <a  href="http://dokuwiki.org/" title="Driven by DokuWiki"><img src="/lib/tpl/default/images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
302:
303:
304:
305: </div>
306: <div style="width: 529px; height: 23px; background: transparent url(http://update.dokuwiki.org/dwtb/back.png) top left no-repeat; position: absolute; top: 0; left: 50%; margin-left: -225px; padding: 2px 10px 0 10px; font: 11px Arial;"><form method="get" action="http://search.dokuwiki.org/"><a href="http://www.dokuwiki.org/" title="Read the DokuWiki documentation" style="color:#000; text-decoration: none;"><img src="http://update.dokuwiki.org/dwtb/wiki.png" alt="Wiki" border="0" /></a><a href="http://forum.dokuwiki.org" title="Ask questions in the Dokuwiki forum"><img src="http://update.dokuwiki.org/dwtb/forum.png" alt="Forum" border="0" /></a><a href="http://irc.dokuwiki.org" title="Check IRC chat logs or join the chat"><img src="http://update.dokuwiki.org/dwtb/irc.png" alt="IRC" border="0" /></a><a href="http://bugs.splitbrain.org" title="Found a bug? Report it in the Bugtracker"><img src="http://update.dokuwiki.org/dwtb/bugs.png" alt="Bugs" border="0" /></a><a href="http://github.com/splitbrain/dokuwiki" title="Access the most recent git patches"><img src="http://update.dokuwiki.org/dwtb/git.png" alt="Git" border="0" /></a><a href="http://dev.splitbrain.org/reference/dokuwiki/" title="Cross-Reference of the DokuWiki source code"><img src="http://update.dokuwiki.org/dwtb/xref.png" alt="XRef" border="0" /></a><a href="http://translate.dokuwiki.org" title="Help translating the DokuWiki interface"><img src="http://update.dokuwiki.org/dwtb/translate.png" alt="Translate" border="0" /></a><input type="text" name="q" title="Search all DokuWiki sites at once" style="border: none; background: transparent url(http://update.dokuwiki.org/dwtb/searchbox.png) top left no-repeat; vertical-align: top; font: 10px Arial; width: 111px; height: 17px; margin: 0; padding: 2px 4px; display: inline;" /><input type="image" src="http://update.dokuwiki.org/dwtb/search.png" alt="Search" title="Search all DokuWiki sites at once" /></form></div>
307:
308: <div class="no"><img src="/lib/exe/indexer.php?id=dokuwiki&amp;1268276063" width="1" height="1" alt=""  /></div>
309: </body>
310: </html>

若您在 http://code.google.com 使用 SVN 存储程序源代码,可以使用 Repository Plugin 将存储在 SVN 库中的代码文件以加亮方式显示在 DokuWiki 的页面中。

Keyboard Plugin

Syntax

Enclose the name of a key, or a combination of keys, separated by a dash (-), in a key tag, like this:

<key>Key</key> or <key>C-x</key>
  • The text inside the key tag is split at the occurrences of - (dash).
  • Each part is trimmed (surrounding whitespace removed) and known shortcuts or key names are substituted. E.g. C becomes Ctrl, Left becomes &larr; etc.
  • The substitutions are language specific. So, e.g. in German, C becomes Strg and Del becomes Entf. Only English and German are supported at the moment. Feel free to write additional language files and send them in for inclusion.
  • If no substitution was found, the first letter is capitalized and special HTML chars are replaced with entities.
  • The substitution table only has key aliases that begin with a capital letter. So lower letters will not be substituted, only capitalized and, for example, C-c becomes Ctrl-C
  • If you want to express the dash (-) key, use Minus.
  • If you don't want any trimming, alias or language substitution, or capitalization, enclose your key name in single quotes.

Example

  • Ctrl+Alt+Del to reboot. (<key>C-A-del</key>)
  • Ctrl+C to copy text to the clipboard. (<key>C - c</key>)
  • Ctrl+X to cut text and put it into the clipboard. (<key>C-x</key>)
  • Ctrl+V to paste text from the clipboard. (<key>C-v</key>)
  • Ctrl+Enter to insert a page break. (<key>C-enter</key>)
  • Ctrl+Shift+ to select from current cursor position to end of a word. (<key>C-S-Right</key>)
  • Ctrl+Shift+ to select from current cursor position to the beginning of a word. (<key>C-S-Left</key>)
  • Ctrl+Page↑ to go one screen page up. (<key>C-PageUp</key>)
  • Ctrl+ (<key>C-Minus</key>)
  • any key to exit. (<key>'any key'</key>)

Hidden Comment Plugin

Syntax

/* Hidden some text */
/**
 * Hidden some text line 1
 * Hidden some text line 2
 * Hidden some text line 3
 */

Example

The text /* between the slash-asterik and asterisk-slash */ is hidden

The text is hidden

/**
 * @todo: rewrite this section to reflect changes made recently
 *
 * this is a longer note
 */

(未显示段落注释)

参考

1) or ”t” for “top”
2) or ”b” for “bottom”
  • Bookmark at
  • Bookmark "Dokuwiki 的插件" at del.icio.us
  • Bookmark "Dokuwiki 的插件" at Digg
  • Bookmark "Dokuwiki 的插件" at Furl
  • Bookmark "Dokuwiki 的插件" at Reddit
  • Bookmark "Dokuwiki 的插件" at Ask
  • Bookmark "Dokuwiki 的插件" at BlinkList
  • Bookmark "Dokuwiki 的插件" at blogmarks
  • Bookmark "Dokuwiki 的插件" at Blogg-Buzz
  • Bookmark "Dokuwiki 的插件" at Google
  • Bookmark "Dokuwiki 的插件" at Ma.gnolia
  • Bookmark "Dokuwiki 的插件" at Netscape
  • Bookmark "Dokuwiki 的插件" at ppnow
  • Bookmark "Dokuwiki 的插件" at Rojo
  • Bookmark "Dokuwiki 的插件" at Shadows
  • Bookmark "Dokuwiki 的插件" at Simpy
  • Bookmark "Dokuwiki 的插件" at Socializer
  • Bookmark "Dokuwiki 的插件" at Spurl
  • Bookmark "Dokuwiki 的插件" at StumbleUpon
  • Bookmark "Dokuwiki 的插件" at Tailrank
  • Bookmark "Dokuwiki 的插件" at Technorati
  • Bookmark "Dokuwiki 的插件" at Live Bookmarks
  • Bookmark "Dokuwiki 的插件" at Wists
  • Bookmark "Dokuwiki 的插件" at Yahoo! Myweb
  • Bookmark "Dokuwiki 的插件" at BobrDobr
  • Bookmark "Dokuwiki 的插件" at Memori
  • Bookmark "Dokuwiki 的插件" at Faves
  • Bookmark "Dokuwiki 的插件" at Favorites
  • Bookmark "Dokuwiki 的插件" at Facebook
  • Bookmark "Dokuwiki 的插件" at Newsvine
  • Bookmark "Dokuwiki 的插件" at Yahoo! Bookmarks
  • Bookmark "Dokuwiki 的插件" at Twitter
  • Bookmark "Dokuwiki 的插件" at myAOL
  • Bookmark "Dokuwiki 的插件" at Slashdot
  • Bookmark "Dokuwiki 的插件" at Fark
  • Bookmark "Dokuwiki 的插件" at RawSugar
  • Bookmark "Dokuwiki 的插件" at LinkaGoGo
  • Bookmark "Dokuwiki 的插件" at Mister Wong
  • Bookmark "Dokuwiki 的插件" at Wink
  • Bookmark "Dokuwiki 的插件" at BackFlip
  • Bookmark "Dokuwiki 的插件" at Diigo
  • Bookmark "Dokuwiki 的插件" at Segnalo
  • Bookmark "Dokuwiki 的插件" at Netvouz
  • Bookmark "Dokuwiki 的插件" at DropJack
  • Bookmark "Dokuwiki 的插件" at Feed Me Links
  • Bookmark "Dokuwiki 的插件" at funP
  • Bookmark "Dokuwiki 的插件" at HEMiDEMi
guide/dokuwiki/dokuwiki_plugin.txt · 最后更改: 2009/01/13 13:29 由 osmond
Recent changes RSS feed Creative Commons License Donate Driven by DokuWiki