差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
wiki:语法插件 [2018/04/20 12:23] showzonezhu |
wiki:语法插件 [2018/07/10 15:52] (当前版本) showzonezhu |
||
---|---|---|---|
行 1: | 行 1: | ||
====== 语法插件 ====== | ====== 语法插件 ====== | ||
+ | 本站使用dokuwiki,dokuwiki基本语法见[[wiki:syntax|Dokuwiki基本语法]]\\ | ||
- | ~~INFO:syntaxplugins~~ | + | <WRAP center round box 90%> |
- | ~~INFO:helpermethods~~ | + | 未来也许会使用 |
+ | * [[doku>plugin:medialist]] | ||
+ | * [[doku>plugin:svgpureinsert]] | ||
+ | * [[doku>plugin:photogallery]] | ||
+ | * [[doku>plugin:nspages]] | ||
+ | * [[doku>plugin:snippeter]] | ||
+ | * [[doku>plugin:include]] | ||
+ | * [[doku>plugin:tablewidth]] | ||
+ | * [[doku>plugin:exttab3]] | ||
+ | * **[[doku>plugin:tablelayout]]** | ||
+ | * [[doku>plugin:cellbg]] | ||
+ | * [[doku>plugin:dirpictures]] | ||
+ | * [[doku>plugin:toctweak]] 自定义目录样式 | ||
+ | </WRAP> | ||
+ | |||
+ | 下面列出本百科使用的语法扩展插件的简单使用说明: | ||
+ | |||
+ | ===== 重定向 ===== | ||
+ | 语法详见[[doku>plugin:pageredirect]] | ||
+ | <code>~~REDIRECT>namespace:page~~ | ||
+ | ~~REDIRECT>http://example.com~~</code> | ||
+ | ===== HtmlMetaTags ===== | ||
+ | 语法详见[[doku>plugin:htmlmetatags]] | ||
+ | <code>{{htmlmetatags>metatag-robots=(index,follow) | ||
+ | metatag-keywords=(apfel,bananne,birne) | ||
+ | metatag-description=(Allgemeiner Obstbauer) | ||
+ | }}</code> | ||
+ | 效果: | ||
+ | <code html> | ||
+ | <meta name="robots" content="index,follow"/> | ||
+ | <meta name="keywords" content="apfel,bananne,birne"/> | ||
+ | <meta name="description" content="Allgemeiner Obstbauer"/> | ||
+ | </code> | ||
+ | ===== 图像弹出 ===== | ||
+ | |||
+ | <code>{{popup>%IMAGE/PAGE%?[%SIZE%]&[keepOpen]|[%TEXT/IMAGE%]}} | ||
+ | Note: [?%SIZE%] and [%TEXT/IMAGE%] are optional parameters.</code> | ||
+ | ^Option ^Description^ | ||
+ | |%IMAGE/PAGE%| an image or a page as you know it from DokuWiki| | ||
+ | |%SIZE% (optional)| Width and height (optional) in px. Example: 200×300| | ||
+ | |keepOpen (optional)| All links in a page opened via a popup will also open in a popup.| | ||
+ | |%TEXT/IMAGE% (optional)| Here you can set the name or an additional image. This will be displayed to the user as link to click on for the popup| | ||
+ | Hints: | ||
+ | |||
+ | * ? is required when using either %SIZE%or keepOpen | ||
+ | * &is required in between when using both options. | ||
+ | * ''keepOpen''only has an effect when using a page id, never with an image. | ||
+ | ##Extra JavaScript for loaded pages | ||
+ | |||
+ | You can add JavaScript that is being executed for pages that load in a popup. The script has to be placed in the page to load. it will not get executed anywhere else. You have to enable this. | ||
+ | <code> | ||
+ | <popupscript> | ||
+ | /* JavaScript */ | ||
+ | </popupscript> | ||
+ | </code> | ||
+ | |||
+ | ===== 时间线 ===== | ||
+ | 语法详见[[doku>plugin:csstimeline]] | ||
+ | <code> | ||
+ | <csstimeline> | ||
+ | <entry> | ||
+ | date: 04.12.2014 | ||
+ | title: My first timeline entry | ||
+ | description: Within the description, you can even use Wiki markup | ||
+ | </entry> | ||
+ | <entry> | ||
+ | date: 06.01.2015 | ||
+ | title: My second timeline entry | ||
+ | description: This one is rendered at the other side of the timeline | ||
+ | </entry> | ||
+ | </csstimeline></code> | ||
+ | <csstimeline> | ||
+ | <entry> | ||
+ | date: 04.12.2014 | ||
+ | title: My first timeline entry | ||
+ | description: Within the description, you can even use Wiki markup | ||
+ | </entry> | ||
+ | <entry> | ||
+ | date: 06.01.2015 | ||
+ | title: My second timeline entry | ||
+ | description: This one is rendered at the other side of the timeline | ||
+ | </entry> | ||
+ | </csstimeline> | ||