Wiki

Clone wiki

graphingwiki / Documentation

(Documentation split into three parts due to bitbucket bug that prevents rendering of too long pages. Next parts: part1 and part2)

Graphingwiki

  • Graphingwiki is a semantic extension to http://moinmo.in wiki.
  • It is used to give wiki pages semantic data
  • It can visualize data (draw graphs, radar charts, dynamic tables)

Key Related Metadata

Metatable

  • Most likely the most important macro of them all, see MetaTable for further details.

InterMetaTable

  • Dynamic table for showing data from different collab instances. Works bit like MetaTable, but has different syntax. See InterMetaTable for further details.

Poll

Creates a poll widget with given choises.

<Poll(yes, no, maybe, I don't care)>>

MetaTagCloud

Generates a tag cloud about meta keys or values. Takes MetaTable argument, with the following additions:

metaMaxTags how many tags to show (defaults to 50)
metaShowMode={keys,values} to show either meta keys or their values in the tag cloud

LinkedIn

Displays incoming links towards the page in question. With meta argument it displays link types as well.

<<LinkedIn([meta])>>

MetaSelection

MetaSelection takes MetaTable arguments and creates a selection list where all selected columns are presented as links leading to the page in question. This is best used in combination with CSS that makes this look as a selection UI.

E.g.

<<MetaSelection(MyMenu=True, <<rank, ||Menu picture||Menu label||)>>

MetaSelection takes additional optional argument addpagename that adds pagename as the last ''column'' to the resulting links. This argument has to be last one.

MetaMatrix

The syntax is

<<MetaMatrix(Metatable args, ||y axis||x axis||foo||bar||, addpagename)>>

Where

  • Metatable args = Standard metatable args for selecting pages
  • y axis = meta key for the y axis
  • x axis = meta key for the x axis
  • foo, bar, ... = keys to take in the table cells
  • addpagename = optional argument for including the page name

GetMetaData

<<GetMetaData(Page, Key)>>-macro, where Key is the meta key.

MetaSearch

Suitable for embedding Meta values, see MetaSearch.

MetaValueDistribution

MetaValueDistribution(<metatableargs>, SortOrder)-macro, where !SortOrder is optional and can be either 'value' or 'count'.

Counts distribution of the meta values for the given set of pages and key selected with MetaTableArgs.

E.g.

<<MetaValueDistribution(CategoryOrganisation, Liason=fenris, ||Region||)>>

Metacount

Count pages matching selection by MetaTable arg.

<<MetaCount(<metatableargs>)>>

Returns string "N matches for '<metatableargs>'".

<<MetaCount(<metatableargs>,gwikisilent)>>

Return only number of matches.

NewPage Macro Override

NewPage(template, button, parent, pageform | editmetaform | editmeta)

Furthermore:

  • <parent> can be set to @INCLUDINGPAGE so that parent page is set to page including a page with NewPage macro, this is useful if you include editing area to a set of page objects with aim to create subpages from the edit controls

Include Macro Override

New features:

  • Including nonexisting pages with an editlink
  • Specifying a template for editing, eg. <<Include(Case183/nonexisting,,,editlink,template="HelpTemplate")>>
  • Specifying a revision for included pages, eg. <<Include(FrontPage,,,editlink,rev=1)>>

AttachTree

See AttachTree.

CountWords

It counts words and characters (in the wiki markup).

Invite

There is an invite action and a supporting macro to facilitate inviting people over email to view certain wiki pages.

Invite macro has support for custom invite templates and button texts.

Usage example:

Create drop-down menu with two different template values to choose from. Template argument takes three options (template for new users, template for old users, label for drop down menu) that are separated by semicolon.

<<Invite(template=InviteNewTemplate;InviteOldTemplate;original, template=InviteNewTemplate2;InviteOldTemplate2;custom)>>

Use custom template and show own text on invite button and label.

<<Invite(template=InviteNewTemplate2;InviteOldTemplate2, text=Invite with custom template, button_text=do it!)>>

Updated