Инструменты пользователя

Инструменты сайта


wiki:plugin:info

Info Plugin

Совместим с «Докувики»

(bundled)

plugin Displays some information about DokuWiki's internals. (bundled with DokuWiki)

Последнее обновление:
2020-06-04
Предоставляет
Syntax

Description

The plugin serves as simple sample syntax plugin and is included in the DokuWiki distribution. It is able to display some information about DokuWiki's internals, for example a list of installed and enabled plugins.

Syntax

~~INFO:keyword~~
  • keyword can be one of:
    • syntaxmodes — Displays the complete list of parser modes together with their getSort() values. See also syntax plugins.
    • syntaxtypes — Displays which syntax types are used by available plugins. The syntax type determine which syntax may be nested.
    • syntaxplugins — Displays a list of available syntax plugins.
    • adminplugins — Displays a list of available admin plugins.
    • actionplugins — Displays a list of available action plugins.
    • rendererplugins — Displays a list of available render plugins.
    • helperplugins — Displays a list of available helper plugins.
    • helpermethods — Displays documentation of helper plugin class methods along with parameters and return values. One example of a helper plugin supporting this is pagelist.
    • datetime — Shows the current date and time. This will be cached with the page. It can be used for cache debugging.

Examples

~~INFO:syntaxmodes~~

plugin_phpwikify0
listblock10
plugin_tablelayout20
preformatted
notoc30
plugin_dw2pdf_pagesetting40
nocache
plugin_dw2pdf_exportlink41
header50
plugin_diagram_splitter55
table60
plugin_typography_base67
plugin_typography_bgcolor
plugin_typography_fontcolor
plugin_typography_fontfamily
plugin_typography_fontsize
plugin_typography_fontweight
plugin_typography_smallcaps
plugin_typography_webfont
strong70
emphasis80
underline90
plugin_description98
plugin_meta99
plugin_fontawesome_fontawesome100
monospace
plugin_htmlmetatags_syntax110
subscript
superscript120
deleted130
plugin_dbquery_query135
linebreak140
plugin_xref150
footnote
plugin_dbquery_macro155
plugin_info
plugin_pluginrepo_entry
plugin_pluginrepo_news
plugin_pluginrepo_query
plugin_pluginrepo_table
plugin_statdisplay
plugin_translation_notrans
plugin_translation_trans
hr160
plugin_autotooltip165
plugin_pagelist168
unformatted170
plugin_htmlok_phpblock180
plugin_htmlok_phpok
plugin_htmlok_htmlblock190
plugin_htmlok_htmlok
plugin_dokuteaser_closesection195
plugin_dokuteaser_dokuteaser
plugin_htmldetailstag_details
plugin_htmldetailstag_summary
plugin_note
plugin_wrap_closesection
plugin_wrap_div
plugin_wrap_divblock
plugin_wrap_divwrap
plugin_wrap_span
plugin_wrap_spaninline
plugin_wrap_spanwrap
plugin_codeprettify_code199
plugin_cellbg200
plugin_rating
code
file210
quote220
plugin_discussion_comments230
smiley
acronym240
entity260
multiplyentity270
quotes280
plugin_tag_searchtags295
plugin_tag_topic
plugin_icons_breeze299
plugin_icons_fa
plugin_icons_fab
plugin_icons_fl
plugin_icons_flag
plugin_icons_fugue
plugin_icons_glyphicon
plugin_icons_icon
plugin_icons_mdi
plugin_icons_oxygen
plugin_icons_ra
plugin_icons_silk
plugin_icons_typcn
plugin_stars2
internallink300
plugin_gallery_list301
plugin_gallery_main
plugin_tag_count305
plugin_tag_tag
plugin_tag_tagpage
plugin_discussion_threads306
rss310
plugin_diagrams_embed319
plugin_diagrams_mediafile
media320
externallink330
emaillink340
windowssharelink350
eol370
plugin_stepbystep_innerstep410
plugin_stepbystep_step
plugin_diagram_main999

~~INFO:syntaxtypes~~

containerlistblock, table, quote, hr, plugin_diagram_main, plugin_diagram_splitter, plugin_htmldetailstag_details, plugin_htmldetailstag_summary, plugin_note, plugin_tablelayout
baseonlyheader
formattingstrong, emphasis, underline, monospace, subscript, superscript, deleted, footnote, plugin_cellbg, plugin_dokuteaser_dokuteaser, plugin_typography_base, plugin_typography_bgcolor, plugin_typography_fontcolor, plugin_typography_fontfamily, plugin_typography_fontsize, plugin_typography_fontweight, plugin_typography_smallcaps, plugin_typography_webfont, plugin_wrap_div, plugin_wrap_divblock, plugin_wrap_divwrap, plugin_wrap_span, plugin_wrap_spaninline, plugin_wrap_spanwrap
substitionacronym, smiley, wordblock, entity, camelcaselink, internallink, media, externallink, linebreak, emaillink, windowssharelink, filelink, notoc, nocache, multiplyentity, quotes, rss, plugin_autotooltip, plugin_dbquery_macro, plugin_dbquery_query, plugin_description, plugin_diagrams_embed, plugin_diagrams_mediafile, plugin_discussion_comments, plugin_discussion_threads, plugin_dokuteaser_closesection, plugin_dw2pdf_exportlink, plugin_dw2pdf_pagesetting, plugin_fontawesome_fontawesome, plugin_gallery_list, plugin_gallery_main, plugin_htmlmetatags_syntax, plugin_icons_breeze, plugin_icons_fa, plugin_icons_fab, plugin_icons_fl, plugin_icons_flag, plugin_icons_fugue, plugin_icons_glyphicon, plugin_icons_icon, plugin_icons_mdi, plugin_icons_oxygen, plugin_icons_ra, plugin_icons_silk, plugin_icons_typcn, plugin_info, plugin_meta, plugin_pagelist, plugin_pluginrepo_entry, plugin_pluginrepo_news, plugin_pluginrepo_query, plugin_pluginrepo_table, plugin_stars2, plugin_statdisplay, plugin_stepbystep_innerstep, plugin_stepbystep_step, plugin_tag_count, plugin_tag_searchtags, plugin_tag_tag, plugin_tag_tagpage, plugin_tag_topic, plugin_translation_notrans, plugin_translation_trans, plugin_wrap_closesection, plugin_xref
protectedpreformatted, code, file, plugin_codeprettify_code, plugin_htmlok_htmlblock, plugin_htmlok_htmlok, plugin_htmlok_phpblock, plugin_htmlok_phpok, plugin_phpwikify, plugin_rating
disabledunformatted
paragraphseol

'Substition' may look like a typo, but it's not (any more). It's transformed into the “standard”. See this footnote for an explanation. ;-)

~~INFO:syntaxplugins~~

~~INFO:adminplugins~~

~~INFO:actionplugins~~

~~INFO:rendererplugins~~

~~INFO:helperplugins~~

~~INFO:helpermethods~~

Attribute Plugin

Arbitrary attribute definition and storage for user associated data.

$attribute = plugin_load('helper', 'attribute');

$attribute->enumerateAttributes()

DescriptionGenerates a list of known attributes in the specified namespace for a user. If user is present, must be an admin, otherwise defaults to currently logged in user.
Return valueattributesarray

$attribute->enumerateUsers()

DescriptionGenerates a list of users that have assigned attributes in the specified namespace.
Return valueusersarray

$attribute->set()

DescriptionSet the value of an attribute in a specified namespace. Returns boolean success (false if something went wrong). If user is present, must be an admin, otherwise defaults to currently logged in user.
Return valuesuccessboolean

$attribute->exists()

DescriptionChecks if an attribute exists for a user in a given namespace. If user is present, must be an admin, otherwise defaults to currently logged in user.
Return valueexistsboolean

$attribute->del()

DescriptionDeletes attribute data in a specified namespace by its name. If user is present, must be an admin, otherwise defaults to currently logged in user.
Return valuesuccessboolean

$attribute->get()

DescriptionRetrieves a value for an attribute in a specified namespace. Returns retrieved value or null. $success out-parameter can be checked to check success (you may have false, null, 0, or '' as stored value). If user is present, must be an admin, otherwise defaults to currently logged in user.
Return valuevaluemixed

$attribute->purge()

DescriptionDeletes all attribute data for a specified namespace for a user. Only useable by an admin.
Return valuesuccessboolean

Auto-Tooltip

Syntax and helper plugins for tooltips, including automatically generated tips based on page abstract.

$autotooltip = plugin_load('helper', 'autotooltip');

$autotooltip->forText()

DescriptionManually construct a tooltip
Parameterscontentstring
tooltipstring
title (optional)string
preTitle (optional)string
classes (optional)string
textClasses (optional)string
Return valueresultstring

$autotooltip->forWikilink()

DescriptionGenerate a tooltip from a wikilink
Parametersidstring
content (optional)string
preTitle (optional)string
classes (optional)string
textClasses (optional)string
Return valueresultstring

discussion plugin

Provides discussion funtionality for wiki pages

$discussion = plugin_load('helper', 'discussion');

$discussion->th()

Descriptionreturns the header of the comments column for pagelist
Return valueheaderstring

$discussion->td()

Descriptionreturns the link to the discussion section with number of comments
Parametersidstring
number of comments (optional)integer
Return valuelinkstring

$discussion->getThreads()

Descriptionreturns pages with discussion sections, sorted by recent comments
Parametersnamespacestring
number (optional)integer
Return valuepagesarray

$discussion->getComments()

Descriptionreturns recently added or edited comments individually
Parametersnamespacestring
number (optional)integer
Return valuepagesarray

$discussion->isDiscussionModerator()

Descriptioncheck if current user is member of moderator groups
Return valueisModeratorboolean

Pagelist Plugin

Lists pages in a nice formatted way

$pagelist = plugin_load('helper', 'pagelist');

$pagelist->addColumn()

Description(optional) adds an extra column for plugin data
Parametersplugin namestring
column keystring

$pagelist->modifyColumn()

Description(optional) override value of an existing column, value equal to false disables column
Parameterscolumn keystring
valueint|bool

$pagelist->setHeader()

Description(optional) Provide header data, if not given default values or [plugin]->th() is used
Parameterscolumn keystring
valueint|bool

$pagelist->setFlags()

Description(optional) overrides default flags, or en/disable existing columns
Parametersflagsarray
Return valuesuccessboolean

$pagelist->startList()

Description(required) prepares the table header for the page list

$pagelist->addPage()

Description(required) adds a page to the list
Parameterspage attributes, 'id' required, others optionalarray

$pagelist->finishList()

Description(required) returns the XHTML output
Return valuexhtmlstring

Tag Plugin

tag wiki pages

$tag = plugin_load('helper', 'tag');

$tag->overrideSortFlags()

Descriptiontakes an array of sortflags and overrides predefined value
Parametersnamestring

$tag->th()

Descriptionreturns the header for the tags column for pagelist
Return valueheaderstring

$tag->td()

Descriptionreturns the tag links of a given page
Parametersidstring
Return valuelinksstring

$tag->tagLinks()

Descriptiongenerates tag links for given words
Parameterstagsarray
Return valuelinksstring

$tag->getTopic()

Descriptionreturns a list of pages tagged with the given keyword
Parametersnamespace (optional)string
number (not used)integer
tag (required)string
Return valuepagesarray

$tag->tagRefine()

Descriptionrefines an array of pages with tags
Parameterspages to refinearray
refinement tagsstring
Return valuepagesarray

$tag->tagOccurrences()

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
Только авторизованные участники могут оставлять комментарии.
wiki/plugin/info.txt · Последнее изменение: VladPolskiy

Если не указано иное, содержимое этой вики предоставляется на условиях следующей лицензии: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki