Having used and looked inside both Media Wiki and its enterprise fork BlueSpice, I can't really recommend either if you need anything more serious than just "minimum viable wiki features".
A few years back we temporarily switched from using Confluence to Xwiki, which worked okay for a while, but then different small and medium issues kept adding up until we had to go back to Confluence and swallow the increased price (sixfold in a span of 3 or so years). This was with Xwiki 8 though, the current version 12 might have improved things, I should try it again really.
Having used and looked inside both Media Wiki and its enterprise fork BlueSpice, I can't really recommend either if you need anything more serious than just "minimum viable wiki features".
A few years back we temporarily switched from using Confluence to Xwiki, which worked okay for a while, but then different small and medium issues kept adding up until we had to go back to Confluence and swallow the increased price (sixfold in a span of 3 or so years). This was with Xwiki 8 though, the current version 12 might have improved things, I should try it again really.