Page MenuHomePhabricator

useful preload parameters for title/edit summary, etc.
Closed, ResolvedPublic

Description

Author: FT2.wiki

Description:
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".

Ideally:

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)


Version: unspecified
Severity: enhancement

Details

Reference
bz14623

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:08 PM
bzimport set Reference to bz14623.
bzimport added a subscriber: Unknown Object (MLST).

FT2.wiki wrote:

(Should be easy, it's just "preloaded text" parameters, as already exists)

unassigned Trevor from Inputbox extension.

vivekee047 wrote:

(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

vivekee047 wrote:

"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

Attached:

sumanah wrote:

Vivek, if you haven't already, please get a Gerrit account

https://www.mediawiki.org/wiki/Project:Labsconsole_accounts

and submit your change as a merge request into Git.

https://www.mediawiki.org/wiki/Git/Workflow

Thanks!

sumanah wrote:

Vivek, please see the comments at https://gerrit.wikimedia.org/r/#/c/4433/ and respond. You have trailing whitespace.

vivekee047 wrote:

I had submitted a new gerrit patch - https://gerrit.wikimedia.org/r/#/c/4434/. It was abandoned.

sumanah wrote:

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.

Instructions: https://www.mediawiki.org/wiki/Git/Workflow#Amending_a_change

vivekee047 wrote:

I had submitted a new gerrit patch - https://gerrit.wikimedia.org/r/#/c/4434/. It was abandoned.

vivekee047 wrote:

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.

Umherirrender claimed this task.
Umherirrender subscribed.

It is possible to use preload/preloadparams[] parameter

Umherirrender set Security to None.
Umherirrender removed a subscriber: wikibugs-l-list.