[Mediawiki-l] Substituting Template Content On Page Creation

developer dev at vismaya.info
Wed Sep 6 19:18:56 UTC 2006


You could try adding a link to the navigation bar, the link could contain
the query string parameters [url] that you need.

Not sure if this is what you need.

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Tom Purl
Sent: 07 September 2006 12:17 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Substituting Template Content On Page Creation

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 05/09/2006


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/438 - Release Date: 05/09/2006
 




More information about the MediaWiki-l mailing list