Can't set page categories with a .wikitext file
Status: Beta
Brought to you by:
worden
Consider the following example source:
<source-file filename="datapage.mk">
categories.maked.wikitext:
echo "[[:Category:bar]] [[Category:bar]]" > $@
</source-file>
<project-file filename="categories.maked.wikitext"/>
<source-file filename="categories.wikitext">
[[:Category:foo]] [[Category:foo]]
</source-file>
It seems each of the two files ought to add a category to any page that contains them, but they don't. The category links render fine, but the category assignments don't appear to do anything.
I don't know if this can be done, but it would be helpful.
Anonymous
Thank you! I'm pretty sure I can do this.
Should be fixed now. You might have to use action=purge to force pages to be reparsed.
So as I move to a different, asynchronous process for building and retrieving project files, I think this may turn back into a problem.
It's going to
I might be able to make it work, but I wonder if it would be easier to have you do it a different way... Can the code that generates the project-file tags to insert in pages also generate category links directly?