Skip to content

Conversation

@botantony
Copy link
Contributor

MediaWiki format supports magic words. These are basically built-in templates (or LaTeX commands, if you’re unfamiliar with MediaWiki). This Pull Request introduces support for behavior switches, which is one of the three types of magic words. Since they’re exclusively used for wiki-specific purposes (like __NOEDITSECTION__ removes the Edit button next to section headers), they can be simply discarded

While it would be great to add support for other magic word types, it’s significantly more complex. I plan to work on it during my vacation when I have more free time

@botantony botantony marked this pull request as draft December 20, 2025 23:21
MediaWiki format supports [magic
words](https://www.mediawiki.org/wiki/Help:Magic_words). These are
basically built-in templates (or LaTeX commands, if you’re unfamiliar
with MediaWiki). This Pull Request introduces support for behavior
switches, which is one of the three types of magic words. Since they’re
exclusively used for wiki-specific purposes (like `__NOEDITSECTION__`
removes the `Edit` button next to section headers), they can be simply
discarded

While it would be great to add support for other magic word types, it’s
significantly more complex. I plan to work on it during my vacation when
I have more free time

Signed-off-by: botantony <antonsm21@gmail.com>
@botantony botantony force-pushed the mediawiki-support-behavior-switches branch from 9c8dfc5 to a71f22a Compare December 20, 2025 23:51
@botantony botantony marked this pull request as ready for review December 20, 2025 23:51
Signed-off-by: botantony <antonsm21@gmail.com>
@botantony botantony force-pushed the mediawiki-support-behavior-switches branch from cc7bcbf to df7cd81 Compare December 21, 2025 00:59
@jgm jgm merged commit af27e8a into jgm:main Dec 21, 2025
7 of 10 checks passed
@botantony botantony deleted the mediawiki-support-behavior-switches branch December 21, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants