User:Barre/MediaWiki/Extensions/kw site map: Difference between revisions
(kw_site_map doc) |
m (add trace) |
||
Line 1: | Line 1: | ||
{{User:Barre/Template/Header}} | |||
<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|pre=0|wiki_markup=1|collapse_par=1|preg_match=/.*\/\*\s*(==.*?)^\*\//sm</kw_include_file> | <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|pre=0|wiki_markup=1|collapse_par=1|preg_match=/.*\/\*\s*(==.*?)^\*\//sm</kw_include_file> | ||
Revision as of 19:19, 21 February 2005
<kw_bread_crumbs>prefix=» |small=1|bgcolor=F9F9F9|trim_prefix=User:|on_top_hack=1</kw_bread_crumbs> <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.