Topic on Project:Support desk

89.244.189.243 (talkcontribs)

Hi there,

i wanna insert a category via a database insert.

my insert: INSERT INTO category (cat_title, cat_pages, cat_subcats, cat_files) VALUES ('$newcat', '1', '0', '0');

When I run this insert, I can see the category and click on it. There comes a Editor and i can edit a page but wehn I save the page I lose both category and the page.

MarkAHershberger (talkcontribs)

Why do you want to do this? Categories that don't have anything in them don't make sense. By the way, I've found it more useful to think of MediaWiki categories as tags rather than your traditional category.

217.8.50.154 (talkcontribs)

Hi there, we have a textfile with categories and want to sync these with the categories in MediaWiki

MarkAHershberger (talkcontribs)

You would be better off using a bot to add the categories to the wiki by editing the appropriate Category page.