I've been experimenting with trying to implement some "fun" features on my wiki after having been inspired by some of the "quote generators" on RationalWiki, and I was wondering if there is any way to make a "story generator" on MediaWiki.
Specifically, I wanted to type a bunch of words into a series of boxes, click enter, and either a new page or a popup window would show the autogenerated story based on the forms I filled out.
The below website is basically what I'd like to create in MediaWiki:
http://www.world-english.org/instantstory.htm
I was wondering if this is possible, and if so, what and how would I need to go about creating it?
The best you could do with vanilla MW is to create a template with the story text, and call the template with appropriate variables. E.g.:
Template:Story: One day while I was {{{1}}} in the {{{2}}} a {{{3}}} fell through the roof.
Any page: {{story|sleeping|kitchen|dog}}
For something more user-friendly, you could probably use the Semantic MediaWiki extension; I'm not sure if there's anything more specific that could let you achieve this.
That actually looks like a great idea for what I'd like to do, since I'm still trying to figure out Semantic Forms, and this looks like a good alternative for stock MediaWiki.
As for that template, it's pretty much what I had in mind for this story generator idea, so thank you for the help, Matma.
However, I'd wondering if I could implement the template in the below manner somehow:
I'd like to provide a page with the instruction on how to use the silly story generator, then an input box (I have the InputBox extension) when the template can be added, and the result can be shown on another page or window.
Either that, or transcluded into a section below the Inputbox which can be cleared off and purged for reuse.
I'm not averse to installing any extensions if I have to to make this work (I assume I'd probably need the Labeled Section Transclusion Extension or something similar for the above idea)
To: mediawiki-l@lists.wikimedia.org Date: Wed, 13 Mar 2013 17:57:06 +0100 From: matma.rex@gmail.com Subject: Re: [MediaWiki-l] Was wondering if I could make a "story generator" in MediaWiki?
The best you could do with vanilla MW is to create a template with the story text, and call the template with appropriate variables. E.g.:
Template:Story: One day while I was {{{1}}} in the {{{2}}} a {{{3}}} fell through the roof.
Any page: {{story|sleeping|kitchen|dog}}
For something more user-friendly, you could probably use the Semantic MediaWiki extension; I'm not sure if there's anything more specific that could let you achieve this.
-- Matma Rex
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org