Last modified: 2014-09-23 19:44:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16623, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14623 - useful preload parameters for title/edit summary, etc.
useful preload parameters for title/edit summary, etc.
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
InputBox (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-23 12:21 UTC by FT2
Modified: 2014-09-23 19:44 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
"Title for new section" part of bug fixed (861 bytes, patch)
2012-03-03 18:45 UTC, Bagariavivek
Details

Description FT2 2008-06-23 12:21:28 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". 

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)
Comment 1 FT2 2008-06-23 12:23:28 UTC
(Should be easy, it's just "preloaded text" parameters, as already exists)
Comment 2 Mark A. Hershberger 2011-06-14 00:22:34 UTC
unassigned Trevor from Inputbox extension.
Comment 3 Bagariavivek 2012-03-03 18:16:50 UTC
(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
Comment 4 Bagariavivek 2012-03-03 18:45:44 UTC
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
Comment 5 Sumana Harihareswara 2012-03-22 19:49:53 UTC
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!
Comment 6 Bagariavivek 2012-04-06 17:02:34 UTC
Gerrit Patch-

https://gerrit.wikimedia.org/r/#change,4434
Comment 7 Sumana Harihareswara 2012-05-25 03:19:14 UTC
Vivek, please see the comments at https://gerrit.wikimedia.org/r/#/c/4433/ and respond.  You have trailing whitespace.
Comment 8 Bagariavivek 2012-05-25 09:03:57 UTC
I had submitted a new gerrit patch - https://gerrit.wikimedia.org/r/#/c/4434/. It was abandoned.
Comment 9 Sumana Harihareswara 2012-05-25 09:07:38 UTC
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
Comment 10 Bagariavivek 2012-05-25 09:15:10 UTC
I had submitted a new gerrit patch - https://gerrit.wikimedia.org/r/#/c/4434/. It was abandoned.
Comment 11 Bagariavivek 2012-05-25 09:16:51 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links