In created pages, "Free text" areas are not marked off to keep them separate from Sections.
As a result, any free-text underneath a section will get loaded into that section's input-box on "Edit with form".
This applies to any text under a section: So, if you manually put a Category tag at the bottom of the page, when user goes to edit page with form, the Category tag will get loaded into the last section box, where the user might delete or alter it, thus removing the page from your intended Category.
{F22484307}
The author says [[ https://www.mediawiki.org/wiki/Extension_talk:Page_Forms#BUGS?_How_To_Put_Static_WikiText_into_Created_Page? | this isn't a bug ]]-- i disagree. Page_Forms and native MW features should be compatible, not break each other. Page_Forms should not break a mediawiki page. Standard mediawiki features (like category tags) should not break page_forms.
By MW standards, when a page is normally rendered, category-tags at bottom of source are never included in last section. MW KNOWS they are NOT part of the last section. But your extension doesn't know they are not part of the last section.
Free-text invading the section should reasonably not happen. ''You offer free-text as a separate entity.'' Therefor, your extension should mark-off the free-text in some way. Or at least '''''ignore category tags!''''' Your extension should respect MW standards. Your extension breaks MW.
Possible fixes:
- **Best**: extension sections should ignore category and any other wikitext that MediaWiki sections would also ignore.
- Mark off free-text areas, so the Form knows they are separate from sections
- Mark off the entire form region, so users can safely put text both above and below the form region, and the form will ignore it.