Informace získané z dokuwiki
~~INFO:helpermethods~~
Provides discussion funtionality for wiki pages
$discussion = plugin_load('helper', 'discussion');| Description | returns the header of the comments column for pagelist | |
|---|---|---|
| Return value | header | string |
| Description | returns the link to the discussion section with number of comments | |
|---|---|---|
| Parameters | id | string |
| number of comments (optional) | integer | |
| Return value | link | string |
| Description | returns pages with discussion sections, sorted by recent comments | |
|---|---|---|
| Parameters | namespace | string |
| number (optional) | integer | |
| Return value | pages | array |
| Description | returns recently added or edited comments individually | |
|---|---|---|
| Parameters | namespace | string |
| number (optional) | integer | |
| Return value | pages | array |
| Description | check if current user is member of moderator groups | |
|---|---|---|
| Return value | isModerator | boolean |
Foldable page sections
$folded = plugin_load('helper', 'folded');| Description | Returns the next folded ID. | |
|---|---|---|
Functions to include another page in a wiki page
$include = plugin_load('helper', 'include');| Description | overrides standard values for showfooter and firstseconly settings | |
|---|---|---|
| Parameters | flags | array |
Lists pages in a nice formatted way
$pagelist = plugin_load('helper', 'pagelist');| Description | (optional) adds an extra column for plugin data | |
|---|---|---|
| Parameters | plugin name | string |
| column key | string | |
| Description | (optional) override value of an existing column, value equal to false disables column | |
|---|---|---|
| Parameters | column key | string |
| value | int|bool | |
| Description | (optional) Provide header data, if not given default values or [plugin]->th() is used | |
|---|---|---|
| Parameters | column key | string |
| value | int|bool | |
| Description | (optional) overrides default flags, or en/disable existing columns | |
|---|---|---|
| Parameters | flags | array |
| Return value | success | boolean |
| Description | (required) prepares the table header for the page list | |
|---|---|---|
| Description | (required) adds a page to the list | |
|---|---|---|
| Parameters | page attributes, 'id' required, others optional | array |
| Description | (required) returns the XHTML output | |
|---|---|---|
| Return value | xhtml | string |
This plugin records the search words and displays stats in the admin section
$searchstats = plugin_load('helper', 'searchstats');| Description | returns search word array | |
|---|---|---|
| Parameters | number of words | integer |
| Return value | words | array |
| Description | returns folder where data is saved | |
|---|---|---|
| Return value | savefolder | string |
tag wiki pages
$tag = plugin_load('helper', 'tag');| Description | takes an array of sortflags and overrides predefined value | |
|---|---|---|
| Parameters | name | string |
| Description | returns the header for the tags column for pagelist | |
|---|---|---|
| Return value | header | string |
| Description | returns the tag links of a given page | |
|---|---|---|
| Parameters | id | string |
| Return value | links | string |
| Description | generates tag links for given words | |
|---|---|---|
| Parameters | tags | array |
| Return value | links | string |
| Description | returns a list of pages tagged with the given keyword | |
|---|---|---|
| Parameters | namespace (optional) | string |
| number (not used) | integer | |
| tag (required) | string | |
| Return value | pages | array |
| Description | refines an array of pages with tags | |
|---|---|---|
| Parameters | pages to refine | array |
| refinement tags | string | |
| Return value | pages | array |
| Description | returns a list of tags with their number of occurrences | |
|---|---|---|
| Parameters | list of tags to get the occurrences for | array |
| namespaces to which the search shall be restricted | array | |
| if all tags shall be returned (then the first parameter is ignored) | boolean | |
| if the namespaces shall be searched recursively | boolean | |
| Return value | tags | array |
~~INFO:helperplugins~~
~~INFO:rendererplugins~~
~~INFO:actionplugins~~
~~INFO:adminplugins~~
~~INFO:syntaxplugins~~
~~INFO:syntaxtypes~~
| container | listblock, table, gfm_listblock, gfm_table, gfm_quote, gfm_hr, plugin_folded_div |
| baseonly | header, gfm_header |
| formatting | strong, emphasis, underline, monospace, subscript, superscript, deleted, footnote, gfm_emphasis, gfm_emphasis_underscore, gfm_strong_underscore, gfm_emphasis_strong, gfm_emphasis_strong_underscore, gfm_deleted, gfm_backtick_single, gfm_backtick_double, plugin_color, plugin_folded_header, plugin_folded_span, plugin_include_closelastsecedit, plugin_include_editbtn, plugin_include_footer, plugin_include_header, plugin_include_locallink, plugin_include_readmore, plugin_include_wrap, plugin_wrap_div, plugin_wrap_divblock, plugin_wrap_divwrap, plugin_wrap_span, plugin_wrap_spaninline, plugin_wrap_spanwrap |
| substition | acronym, smiley, wordblock, entity, camelcaselink, internallink, media, externallink, linebreak, emaillink, windowssharelink, filelink, notoc, nocache, multiplyentity, quotes, rss, gfm_link, gfm_media, gfm_escape, gfm_linebreak, gfm_html_entity, plugin_cellbg, plugin_discussion_comments, plugin_discussion_threads, plugin_include_include, plugin_include_sorttag, plugin_info, plugin_pagelist, plugin_statdisplay, plugin_tag_count, plugin_tag_searchtags, plugin_tag_tag, plugin_tag_tagpage, plugin_tag_topic, plugin_wrap_closesection |
| protected | preformatted, code, file, gfm_code, gfm_file |
| disabled | unformatted |
| paragraphs | eol |
~~INFO:syntaxmodes~~
| listblock | 10 |
| preformatted | 20 |
| notoc | 30 |
| nocache | 40 |
| plugin_folded_header | 50 |
| plugin_include_closelastsecedit | |
| plugin_include_editbtn | |
| plugin_include_header | |
| plugin_include_locallink | |
| plugin_include_readmore | |
| plugin_include_wrap | |
| header | |
| table | 60 |
| strong | 70 |
| emphasis | 80 |
| underline | 90 |
| monospace | 100 |
| subscript | 110 |
| superscript | 120 |
| deleted | 130 |
| plugin_include_sorttag | 139 |
| linebreak | 140 |
| footnote | 150 |
| plugin_info | 155 |
| plugin_statdisplay | |
| plugin_color | 158 |
| gfm_hr | 160 |
| plugin_pagelist | 168 |
| unformatted | 170 |
| plugin_wrap_closesection | 195 |
| plugin_wrap_div | |
| plugin_wrap_divblock | |
| plugin_wrap_divwrap | |
| plugin_wrap_span | |
| plugin_wrap_spaninline | |
| plugin_wrap_spanwrap | |
| plugin_cellbg | 200 |
| code | |
| file | 210 |
| gfm_quote | 220 |
| plugin_discussion_comments | 230 |
| smiley | |
| acronym | 240 |
| entity | 260 |
| multiplyentity | 270 |
| quotes | 280 |
| plugin_tag_searchtags | 295 |
| plugin_tag_topic | |
| plugin_include_footer | 300 |
| internallink | |
| plugin_include_include | 303 |
| plugin_tag_count | 305 |
| plugin_tag_tag | |
| plugin_tag_tagpage | |
| plugin_discussion_threads | 306 |
| rss | 310 |
| media | 320 |
| externallink | 330 |
| emaillink | 340 |
| windowssharelink | 350 |
| eol | 370 |
| plugin_folded_div | 404 |
| plugin_folded_span | 405 |