Last modified: 2014-09-23 19:44:24 UTC
Could benefit from a parameter to pre-load a given default into the section title/edit summary. At present this is always blank.
A more serious problem is that the title, and main text, to be pre-loaded may differ depending whether "type=comment" finds the page exists or not. A lot of pages have the format "header followed by repeated standard sections". So if the "type=comment" finds the page doesn't exist, it may need to preload a template including the header and a title saying "creating page for X". if it does exist then it would preload a template without the template and a title saying "adding section for X".
title = <text> ; sets the default text which will be preloaded into the title/edit summary input box.
and also for type=comment:
title_newpage = <text>
default_newpage = <wikipage>
to allow preloading of different defaults if the page doesn't exist. (Ignored for other types)
(Should be easy, it's just "preloaded text" parameters, as already exists)
unassigned Trevor from Inputbox extension.
(In reply to comment #0)
> So if the "type=comment" finds the page doesn't exist, it may need to preload a
> template including the header and a title saying "creating page for X". if it
> does exist then it would preload a template without the template and a title
> saying "adding section for X".
According to this if the user enters a page which doesn't exist we must allow him to create that page with header saying "creating page for X"..but below you want to have default page and deafault title if user enters a page which doesnt exist.
> title_newpage = <text>
> default_newpage = <wikipage>
> to allow preloading of different defaults if the page doesn't exist. (Ignored
> for other types)
I may have understood it wrong so please do correct me
Created attachment 10168 [details]
"Title for new section" part of bug fixed
Added preloadtitle parameter which will be the *default preload-title* for the *new section* of the page
Vivek, if you haven't already, please get a Gerrit account
and submit your change as a merge request into Git.
Vivek, please see the comments at https://gerrit.wikimedia.org/r/#/c/4433/ and respond. You have trailing whitespace.
I had submitted a new gerrit patch - https://gerrit.wikimedia.org/r/#/c/4434/. It was abandoned.
Vivek, yes, Reedy abandoned it because he thought it was a duplicate of changeset 4433. Please instead revise and resubmit ("amend") 4433 to get rid of the whitespace. If you cannot figure out how to do that, please abandon changeset 4433 yourself and resubmit it as a new changeset.
I have abandoned the change in gerrit patch - 4433. I will submit a new patch once i reach home( in 2 days ). Please ignore the above message, it was by mistake.