Hi,
is it possible to configure category output, c.f. in a way that certain namespaces are not included?
Specifically, I would like to create category entries through templates, ie. every page using the template would be automatically in the respective category. The template itself, however, should not show up at the category page.
I searched extensions already but could not find anything appropriate so far. Any suggestions?
Many thanks in advance
Bernhard
On 17 May 2011 at 16:27, Scheid, Bernhard wrote:
Hi,
is it possible to configure category output, c.f. in a way that certain namespaces are not included?
Specifically, I would like to create category entries through templates, ie. every page using the template would be automatically in the respective category. The template itself, however, should not show up at the category page.
I searched extensions already but could not find anything appropriate so far. Any suggestions?
Many thanks in advance
Bernhard _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
An <includeonly>[[Category:Make my day]]</includeonly> in your template is not working for you?
Regards, Andrew
________________________________________ Von: mediawiki-l-bounces@lists.wikimedia.org [mediawiki-l-bounces@lists.wikimedia.org] im Auftrag von Billinghurst [billinghurst@gmail.com] Gesendet: Dienstag, 17. Mai 2011 16:31 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] exclude template from category list
On 17 May 2011 at 16:27, Scheid, Bernhard wrote:
Hi,
is it possible to configure category output, c.f. in a way that certain namespaces are not included?
Specifically, I would like to create category entries through templates, ie. every page using the template would be automatically in the respective category. The template itself, however, should not show up at the category page.
I searched extensions already but could not find anything appropriate so far. Any suggestions?
Many thanks in advance
Bernhard _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
An <includeonly>[[Category:Make my day]]</includeonly> in your template is not working for you?
Regards, Andrew
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Actually not, because I use nested templates. Actually I would need something like $wgNamespacesToBeCategorized (does not exist) in LocalSettings.php or something similar as an extension.
Scheid, Bernhard wrote:
An <includeonly>[[Category:Make my day]]</includeonly> in your template is not working for you?
Actually not, because I use nested templates. Actually I would need something like $wgNamespacesToBeCategorized (does not exist) in LocalSettings.php or something similar as an extension.
I'm also struggling with nested templates and especially nesting <includeonly> tags. I want to create templates using another template like so:
{{Template1 | Parameter }}
As Template1 also creates a category where the newly created template shouldn't be part of this template call has to be surrounded by <includeonly> tags:
<includeonly>{{Template1 | Parameter }}</includeonly>
I haven't found a way yet to include those <includeonly> tags in Template1 itself. I found the following resources which illustrate the problem and give some hints but no final solution AFAIS.
* http://www.mwusers.com/forums/archive/index.php/t-5540.html * http://meta.wikimedia.org/wiki/Help:Template
Any hints appreciated! Frank
nakohdo wrote:
I'm also struggling with nested templates and especially nesting <includeonly> tags. I want to create templates using another template like so:
{{Template1 | Parameter }}
As Template1 also creates a category where the newly created template shouldn't be part of this template call has to be surrounded by <includeonly> tags:
<includeonly>{{Template1 | Parameter }}</includeonly>
I haven't found a way yet to include those<includeonly> tags in Template1 itself. I found the following resources which illustrate the problem and give some hints but no final solution AFAIS.
You could do the category inclusion inside <includeonly> only if the namespace ({{NAMESPACE}}) is not template (use parserfunctions).
Platonides wrote:
You could do the category inclusion inside <includeonly> only if the namespace ({{NAMESPACE}}) is not template (use parserfunctions).
Thanks for the pointer, will look into this.
mediawiki-l@lists.wikimedia.org