User:Barre/MediaWiki/Extensions/kw site map: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(kw_site_map doc)
 
m (fix syntax)
 
(2 intermediate revisions by the same user not shown)
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>


Line 5: Line 6:
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:
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:
<pre>
<pre>
<kw_site_map>cat_equal=KwGrid</kw_site_map>
<kw_site_map>cat=KwGrid</kw_site_map>
</pre>
</pre>


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) :
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) :
<pre>
<pre>
<kw_site_map>author_equal=I|!ns_equal=Template|!ns_equal=Image</kw_site_map>
<kw_site_map>author=I|ns=Template|ns!=Image</kw_site_map>
</pre>
</pre>


This example shows all the medias and images in the Wiki. Note that the Image: prefix is automatically removed for clarity:
This example shows all the medias and images in the Wiki. Note that the Image: prefix is automatically removed for clarity:
<pre>
<pre>
<kw_site_map>ns_equal=Image|trim_prefix=Image:|nb_cols=3</kw_site_map>
<kw_site_map>ns=Image|trim_prefix=Image:|nb_cols=3</kw_site_map>
</pre>
</pre>


Also check how this extension is used to build site maps in the [[KwGrid:Site_Map|kwGrid project site map page]].
Also check how this extension is used to build site maps in the [[KwGrid:Site_Map|kwGrid project site map page]].

Latest revision as of 14:03, 8 March 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=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=I|ns=Template|ns!=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=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.