Hi there,
I like to design a template that puts the page into a certain category when used .
But I do not like the template itself to appear in that category.
Therefore the option [[Category:MyCategory]] on the template page will not do the trick.
I am sure the solution is easy but somehow .
Regards
A. Cremer
On 11/01/07, a. cremer albert.cremer@online.de wrote:
I like to design a template that puts the page into a certain category when used . But I do not like the template itself to appear in that category.
<includeonly>[[Category:Foo]]</includeonly>
"includeonly" is one of a series of confusingly-similar tags which have magical and sometimes crackpot properties; this one means, "whatever's between these tags is ONLY rendered/processed/otherwise parsed when this page is included".
Rob Church
Hello A. (?),
simply use this in the template: <includeonly> [[Category:Maincategory]] </includeonly>
Of course, instead if "Maincategory" you can choose another one.
Regards, Jan
a. cremer schrieb:
Hi there,
I like to design a template that puts the page into a certain category when used .
But I do not like the template itself to appear in that category.
Therefore the option [[Category:MyCategory]] on the template page will not do the trick.
I am sure the solution is easy but somehow .
Regards
A. Cremer
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org