User:Barre/MediaWiki/Extensions/kw site map

From KitwarePublic
< User:Barre‎ | MediaWiki‎ | Extensions
Revision as of 22:29, 18 February 2005 by Barre (talk | contribs) (kw_site_map doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

<kw_include_file>url=http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/scripts/media-wiki-extensions/kwSiteMap.php?content-type=text%2Fplain&root=kwGridWeb%7Cpre=0%7Cwiki_markup=1%7Ccollapse_par=1%7Cpreg_match=/.*\/\*\s*(==.*?)^\*\//sm</kw_include_file>

Examples

The following code collects and displays all the pages belonging to the kwGrid category. Categories (and namespaces) can be used to group pages into the same project:

<kw_site_map>cat_equal=KwGrid</kw_site_map>

This code lists all the pages the current user has contributed to, excluding the images and the templates (provided that the user did put his templates in the usual Template: namespace) :

<kw_site_map>author_equal=I|!ns_equal=Template|!ns_equal=Image</kw_site_map>

This example shows all the medias and images in the Wiki. Note that the Image: prefix is automatically removed for clarity:

<kw_site_map>ns_equal=Image|trim_prefix=Image:|nb_cols=3</kw_site_map>

Also check how this extension is used to build site maps in the kwGrid project site map page.