[Mediawiki-l] Making it easier to add

Jamie Bliss astronouth7303 at gmail.com
Tue Jan 25 21:52:53 UTC 2005


On Mon, 24 Jan 2005 21:09:00 +0900, D_C <d3ntaku at gmail.com> wrote:
> Not really, as the user has to find "talk" (what is it, like enter a chat room?)
> Then, they have to find another link "edit this page".
> What I would like to see is a big fat empty <TextArea> with a submit
> button - that makes it really obvious where to add your stuff. Two
> obscure links, and then a full up textarea is pretty intimidating (to
> my mum).

I don't think this would be terribly difficult. You just have to
insert a section in the generated HTML that mirrors the "+" link form.

The basic form of the HTML is:

<form id="editform" name="editform" method="post"
action="/wiki/index.php?title=%TALK_URL%&amp;action=submit"
enctype="multipart/form-data">
Subject (optional): <input tabindex='1' type='text' value=""
name="wpSummary" maxlength='200' size='60' /><br />
<textarea tabindex='1' accesskey="," name="wpTextbox1" rows='25'
cols='80' style="width:100%"></textarea><br />
<input tabindex='5' id='wpSave' type='submit' value="Save page"
name="wpSave" accesskey="s" title="Save your changes [alt-s]"/>
<input tabindex='6' id='wpPreview' type='submit' value="Show preview"
name="wpPreview" accesskey="p" title="Preview your changes, please use
this before saving! [alt-p]"/>
<em><a href="/wiki/index.php/%PAGE_URL%" title="%PAGE%">Cancel</a></em> |
 <em><a target="helpwindow"
href="/wiki/index.php/Help:Editing">Editing help</a> (opens in new
window)</em>
<input type='hidden' value="new" name="wpSection" />
<input type='hidden' value="" name="wpEdittime" />
</form>

(There are variables: %TALK%, %TALK_URL%, %PAGE%, %PAGE_URL%. %TALK%
is the talk page, %PAGE% is the page this is on. The %*_URL% means
it's URL encoded.)

Though finding the apropriate object that handles it and using that
would be a much better aproach.

-- Jamie
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!



More information about the MediaWiki-l mailing list