这是本文档旧的修订版!


语法插件

Adminstrative GUI to find all sorts of orphaned or wanted pages and media. This works using AJAX instead of loading everything into one page.

$multiorphan = plugin_load('helper', 'multiorphan');
Descriptionreturns pages with discussion sections, sorted by recent comments
Parametersnamespacestring
number (optional)integer
Return valuepagesarray
Description

Provides discussion funtionality for wiki pages

$discussion = plugin_load('helper', 'discussion');
Descriptionreturns the header of the comments column for pagelist
Return valueheaderstring
Descriptionreturns the link to the discussion section with number of comments
Parametersidstring
number of comments (optional)integer
Return valuelinkstring
Descriptionreturns pages with discussion sections, sorted by recent comments
Parametersnamespacestring
number (optional)integer
Return valuepagesarray
Descriptionreturns recently added or edited comments individually
Parametersnamespacestring
number (optional)integer
Return valuepagesarray

Lists pages in a nice formatted way

$pagelist = plugin_load('helper', 'pagelist');
Descriptionadds an extra column for plugin data
Parametersplugin namestring
column keystring
Descriptionoverrides standard values for showfooter and firstseconly settings
Parametersflagsarray
Return valuesuccessboolean
Descriptionprepares the table header for the page list
Descriptionadds a page to the list
Parameterspage attributes, 'id' required, others optionalarray
Descriptionreturns the XHTML output
Return valuexhtmlstring

tag wiki pages

$tag = plugin_load('helper', 'tag');
Descriptionreturns the header for the tags column for pagelist
Return valueheaderstring
Descriptionreturns the tag links of a given page
Parametersidstring
Return valuelinksstring
Descriptiongenerates tag links for given words
Parameterstagsarray
Return valuelinksstring
Descriptionreturns a list of pages tagged with the given keyword
Parametersnamespace (optional)string
number (not used)integer
tag (required)string
Return valuepagesarray
Descriptionrefines an array of pages with tags
Parameterspages to refinearray
refinement tagsstring
Return valuepagesarray
Descriptionreturns a list of tags with their number of occurrences
Parameterslist of tags to get the occurrences forarray
namespaces to which the search shall be restrictedarray
if all tags shall be returned (then the first parameter is ignored)boolean
if the namespaces shall be searched recursivelyboolean
Return valuetagsarray

Provides toolbar button+popup for template insertion; can track and insert sinppet updates

$snippets = plugin_load('helper', 'snippets');
Descriptionchecks metadata for most recent version of $id
Parametersidstring
Return valuetimestampinteger
Descriptioncheck if snippet inserted in a page was updated to most recent version
Parametersidstring
snippetstring
Return valuetimstampboolean
Descriptionsets and updates timestamp of snippet in metafile of page where snippet is inserted
Parametersidstring
snippetstring
set_timeint
Descriptioninserts updated snippet into page
Parametersresult (reference)string
page_idstring

Functions to include another page in a wiki page

$include = plugin_load('helper', 'include');
Descriptionoverrides standard values for showfooter and firstseconly settings
Parametersflagsarray
  • wiki/语法插件.1524198188.txt.gz
  • 最后更改: 6年前
  • showzonezhu