plugintag.txt

来自「wiki建站资源 java编写的 很好用」· 文本 代码 · 共 39 行

TXT
39
字号
Allows you to insert any of the [JSPWikiPlugin]s directly into the template.

----

!Usage

{{{
<wiki:Plugin plugin="<plugin class>" args="<argument string>">
  <optional plugin body>
</wiki:Plugin>
}}}

!Parameters

;__plugin__:  The fully-fledged class name of the plugin.  If the plugin is one of the standard plugins that come with the JSPWiki distribution OR it's package name has been added to jspwiki.properties (see jspwiki.plugin.searchPath), then you can use also the class name directly.

;__args__: The argument string to the plugin, as if you were giving it on the page itself.

To include a body to the plugin, include it in the body of the tag.

!Example
{{{
<wiki:Plugin plugin="Counter" args="name='foo'" />
}}}

Inserts the [CounterPlugin], with its name set to 'foo'.

{{{
<wiki:Plugin plugin="FooBar" args="name='foo'">
   I am body text.
</wiki:Plugin>
}}}

Inserts the ~FooBar plugin, with the arguments "name" set to "foo", and the plugin body set to "I am body text".

----

Back to [JSPWikiTags].

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?