On Sun, Dec 23, 2012 at 11:19 PM, Benny Lichtner <[email protected]> wrote:
> Sticking a category link in a wiki page automatically adds that wiki page
> to the corresponding category page. For example, inserting
> [[Category:Puppies]] adds the page to the Puppies category.
>
> Is it possible to achieve the same result with something like
> [[Category:{{#puppiesfunc}}]], where {{#puppiesfunc}} is replaced by
> "Puppies"? I guess I'm wondering how the automatic population of category
> pages works under the hood.

Can you state the actual problem you're trying to solve instead of the
way you want to solve it?

Anyway, maybe you're looking for addTrackingCategory()
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/parser/Parser.php;hb=c86a77bc4860b5fad2e70b473ef525844034b127#l4005

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to