语法插件

本站使用dokuwiki,dokuwiki基本语法见Dokuwiki基本语法

下面列出本百科使用的语法扩展插件的简单使用说明:

语法详见plugin:pageredirect

~~REDIRECT>namespace:page~~ 
~~REDIRECT>http://example.com~~

语法详见plugin:htmlmetatags

{{htmlmetatags>metatag-robots=(index,follow) 
metatag-keywords=(apfel,bananne,birne) 
metatag-description=(Allgemeiner Obstbauer)
}}

效果:

<meta name="robots" content="index,follow"/>
<meta name="keywords" content="apfel,bananne,birne"/>
<meta name="description" content="Allgemeiner Obstbauer"/>
{{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: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

  • wiki/语法插件.txt
  • 最后更改: 6年前
  • showzonezhu