Author: conanchristie
Description:
Proposed patch 1
Although this extension works fine for category links in normal wikitext and simple links embedded in transcluded templates, I found out that if the embedded link was dependent to template parameters, e.g. [[Category:Foo in {{{1}}}]], the extension no longer detects the link and hence did not make the stub page.
I found out that the extension relies on a regex match of /\[\[{$category}:(.+?)(?:\|.*)?\]\]/i to determine catlinks at hook ArticleSaveComplete. Hence, the processing was too early to allow parser to parse the templates to create the correct catlinks, nor does the regex very accurate. The regex itself also caused the fixme about being en-specific, as it did not adequately deal with renamed namespaces.
So I changed the hook to ArticleAfterFetchContent (after parsing), and the detection of catlinks is now through querying the categorylinks table.
Needs to be reviewed; I'm a complete newbie in all this stuff.
Version: unspecified
Severity: normal
attachment AutoCreateCategoryPages.tar ignored as obsolete