显示源文件讨论修订记录反向链接回到顶部 Share via Share via... Twitter LinkedIn Facebook Pinterest Telegram WhatsApp Yammer Reddit最近更改Send via e-Mail打印Permalink网站编辑简单视频教程 × 目录 语法插件 重定向 图像弹出 引用块 时间线 HtmlMetaTags 这是本文档旧的修订版! 语法插件 本站使用dokuwiki,dokuwiki基本语法见Dokuwiki基本语法 未来也许会使用 plugin:medialist plugin:svgpureinsert plugin:photogallery plugin:nspages plugin:snippeter plugin:include plugin:tablewidth plugin:exttab3 plugin:tablelayout 下面列出本百科使用的语法扩展插件的简单使用说明: 重定向 语法详见plugin:pageredirect ~~REDIRECT>namespace:page~~ ~~REDIRECT>http://example.com~~ 图像弹出 {{popup>%IMAGE/PAGE%?[%SIZE%]&[keepOpen]|[%TEXT/IMAGE%]}} Note: [?%SIZE%] and [%TEXT/IMAGE%] are optional parameters. 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. keepOpenonly 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. <popupscript> /* JavaScript */ </popupscript> 引用块 语法详见plugin:blockquote <blockquote> There is nothing either good or bad, but thinking makes it so. <cite>William Shakespeare, "Hamlet", Act 2 scene 2</cite> </blockquote> <blockquote> There is nothing either good or bad, but thinking makes it so. <cite>William Shakespeare, “Hamlet”, Act 2 scene 2</cite> </blockquote> 时间线 语法详见plugin:csstimeline <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> My first timeline entry04.12.2014 Within the description, you can even use Wiki markup My second timeline entry06.01.2015 This one is rendered at the other side of the timeline HtmlMetaTags 语法详见plugin:htmlmetatags {{htmlmetatags>metatag-robots=() metatag-keywords=(apfel,bananne,birne) metatag-description=(Allgemeiner Obstbauer) metatag-media-og:image=(:wiki:image.jpg) metatag-og:description=(anything else) metatag-og:any=(anything else 2) }} 效果: <meta name="robots" content="noindex,nofollow"/> <meta name="keywords" content="apfel,bananne,birne"/> <meta name="description" content="Allgemeiner Obstbauer"/> <meta property="og:image" content="http://localhost/lib/exe/fetch.php?media=wiki:image.jpg"/> <meta property="og:description" content="anything else"/> <meta property="og:any" content="anything else 2"/> wiki/语法插件.1528994258.txt.gz 最后更改: 6年前由 showzonezhu 登录