I happened to be looking at this today in another context. While it’s a little convoluted, it is actually possible to pass non-default parameters (such as wiki) to new posts. It took me a little while to figure this out, so someone else may find it useful. There are four things you need to do:
Set wiki to true when creating the post record in the store.
Add wiki to the serialized composer properties via Composer.serializeOnCreate.
Use PostRevisor.track_topic_field(:wiki) to add wiki as a permitted param in the posts_controller.
Save the wiki opt to the Post using the post_created event.
This discussion is several years old, but I came upon it after realizing that organizing my forum as a wiki would be really cool. @peternlewis has captured well what I would have in mind too. It’s not just allowing wiki functionality in individual posts–its having my discourse site act like a wikipedia like wiki. Like he said:
As an admin I checked to see if I could install DiscoTOC and it was not in the list of available plugins.
Thanks but sadly we are Prolog programmers, specifically SWI-Prolog (Discourse forum) and while there is some ability to do some Prolog with CodePen, it is no where near what can be done with Prolog and since it was not specifically SWI-Prolog, it was not used. SWI-Prolog does have an online tool called SWISH, but even this is handicapped for security reasons from doing what can be fully done with Prolog; if you know how much you can do with LISP being homoiconic then you get the idea. I did try to integate SWISH with an Iframe and some other ideas but could not get any of them to work as desired; I did get something working but it was not practical, screen width IIRC.
Again, thanks for the feedback it was much appreciated.
Is the way to create a wiki site with discourse just to have each wikipage be a discourse wiki-fied post?
Seems strange to think that a single post could take on the characteristics of a wikipage: multiple users can edit, it will be edited over weeks or more, and can grow very large (hard to imagine a single post that looks like this). But to give users the experience of creating wikipages, is the actual solution with discourse to allow them to create posts that have been wiki-fied?
look promising. Trying them now and will update once I reach a success or failure.
Since this post is moving more toward being off-topic I will just update in the post so as not to distract from the main thread.
I did get the table of contents to work but since knowledge-explorer is a plugin not available with our current Discourse plan, could not implement that , e.g. https://meta.discourse.org/knowledge-explorer
Might be possible but Jan W. suggested an alternative.
In clicking More info was taken to a GitHub issue which is not really an issue as it is part of the SWI-Prolog roadmap, so the issues are more of a forum for discussion of ideas and desires instead of problems or bugs. Following along the GitHub topic it is apparent that progress was made but that certain technical difficulties were never resolved thus leaving the idea partially working but impractical for common use. As Jan W. worked on this it was obviously considered of importance and something that is desired to have fully functional. I asked Jan W. about the status of SWI-Prolog ported to WebAssembly and if there would be any known limitations to using it in a Discourse page (ref). He purposed an alternative that relies on SWISH.