[Mediawiki-l] Substituting Template Content On Page Creation

Kevin J. Scott k.scott at ieee.org
Wed Sep 6 19:06:34 UTC 2006


Sounds like you need the highly-acclaimed Inputbox extension...which is
actually how I came to learn of the nifty things you can throw into an edit
URL like &preload= and &editintro=.


http://meta.wikimedia.org/wiki/Help:Inputbox




On 9/6/06, Tom Purl <tom at tompurl.com> wrote:
>
> Thanks Kevin, that worked really well!
>
> I have one more constraint, however.  I'm building a simple data-entry
> "application" using MediaWiki, and the people who will be creating and
> editing these pages probably won't want to fiddle with the address bar
> in their browser.
>
> Does anyone know if there is a way to do this by clicking on a single
> link or button?  It would even be fine if it was a two-step process, as
> long as that process was farily simple and intuitive.  Also, I'm open to
> editing some PHP or creating a special page if that's necessary.
>
> Thanks again!
>
> Tom Purl
>
> > Add this to your page edit URL:    &preload=Template:BigDoc
> >
> > ..Kev
> >
> >
> > On 9/6/06, Tom Purl < tom at tompurl.com > wrote:
> >>
> >> I have a wiki Template called Template:BigDoc with something like the
> >> following:
> >>
> >>     This is the top of the document.
> >>
> >>     Field Value A: (fill in a value)
> >>     Field Value B: (fill in a value)
> >>
> >>     This is the bottom line of the document.
> >>
> >> I would like to create a document based on Template:BigDoc multiple
> >> times
> >> a day.  This is how I currently do that:
> >>
> >> 1. Create a new document.
> >> 2. Enter the following into the document:
> >>    * {{subst:BigDoc}}
> >> 3. Save that document.
> >> 4. Re-edit that document
> >> 5. I then see my template text, which I edit.
> >>
> >> It would be nice if I could eliminate a couple of these steps when
> >> creating a document based on a template.  Ideally, I would even like to
> >> be
> >> able to start editing a document based on a template using one click.
> >>
> >> Does anyone know if this is possible with MediaWiki?
> >>
> >> Thanks in advance!
> >>
> >> Tom Purl
> >> _______________________________________________
> >> MediaWiki-l mailing list
> >> MediaWiki-l at Wikimedia.org
> >> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
> >>
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l at Wikimedia.org
> > http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
> >
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>



More information about the MediaWiki-l mailing list