User Tools

Site Tools


docs:plwiki1ex

PlWiki 1.0 - Plugin API examples

Simple use case

kate

IMPORTANT: This knowledge is not saved in cache !!

Adding knowledge to the page

IMPORTANT: cache=“true” so knowledge will be saved.

Goal and scope

jack
jim

Prolog interface

  • list all predicates in selected scope:


'$member'
'$no-null-bytes'
'$pack':pack_dir
'$toplevel':catch
->atomic_list_concat
;atomic_list_concat
absolute_file_name
atom_concat
expand_answer
expand_file_name
expand_query
file_search_path
library_directory
link_xpce:pcehome_
man
prolog_file_type
system:current_prolog_flag
toplevel_variables:expand_answer
toplevel_variables:expand_query
wiki_header

  • list info about selected predicate:

man(jack).
man(jim).

Additional functionality

Plugin automatically saves information about page structure. In each scope several predicates are available:

  • header(Name, Level).
  • internallink(Scope, Url).
  • externallink(Name, Url).


docs/plwiki1ex.txt · Last modified: 2017/09/19 16:31 (external edit)