Thanks, the preload parameter that can be used by the inputbox does indeed exactly what i need...BUT what i actually want is not creating a page through an inputbox, but through an image: 1) the user clicks on the image 2) the newly created page appears in front of the user with the predefined text in the edit box of this new page.
In order for the user to be able to create a new page by clicking on an image, i use the following template (called "hotspot"):
<div style="position: relative; height: {{{Height}}}; width: {{{Height}}}; overflow: hidden;"> <div style="position: absolute; top: 0; left: 0; font-size: 100px; height: {{{Height}}}; width: {{{Height}}}; overflow: hidden; line-height: 100px; z-index: 3;">[[:{{{Link}}}| ]] </div> <div style="position: absolute; top: 0; left: 0; z-index: 2;"> [[Image:{{{Image}}}|{{{Height}}}|{{{Link}}}]] </div> </div>
So the image is put on the wiki e.g. in this way:
{{hotspot | | Image = image.gif | Link = new-page-to-be-made | Height = 81px }}
What i would like to achieve now is to put a preload-parameter into it (just like is done with the inputbox), so the above becomes:
{{hotspot | | Image = image.gif | Link = new-page-to-be-made | Height = 81px | Preload= the-preloaded-text }}
Does somebody know whether i can achieve this by adapting the "hotspot"-template or is there another way?
Many thanks in advance!
JAN
2006/3/30, Brion Vibber brion@pobox.com:
Jan Vanoverpelt wrote:
Does MediaWiki allows to automatically put a certain text in advance on
a
non-existing page? What I am trying to do is this: when users click on a picture, a (link to a) new page is generated with the name "{{PAGENAME}}-more-detailed-name".
Is it possible to already put automatically some text (e.g.
"{{template}}")
on this new (non existing) page?
http://meta.wikimedia.org/wiki/Help:Inputbox
-- brion vibber (brion @ pobox.com)
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l