Jump to content

Topic on API talk:Expandtemplates

Can't disable categories

2
176.195.143.223 (talkcontribs)

I'm using the following format:

/w/api.php?action=expandtemplates&text=***&prop=wikitext&format=json

but categories are still being added to the wikitext. How to disable it?

RobinHood70 (talkcontribs)

Categories will be included if they're part of the actual wikitext. There's no way to disable that other than to use a RegEx replace or similar means. (Keep in mind that unless you're deliberately removing categories from the page, you will have to add them all back in, in their correct locations, if you're going to be saving the text later on.)

Reply to "Can't disable categories"