Last modified: 2008-06-12 13:08:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 14459 - EDIT: more shortcut options wanted
EDIT: more shortcut options wanted
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-07 08:56 UTC by Carl Fürstenberg
Modified: 2008-06-12 13:08 UTC (History)
2 users (show)

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


Attachments

Description Carl Fürstenberg 2008-06-07 08:56:17 UTC
Following options I want to be implemented, this to make it easier to do usual things to commons things:

append=text:
Appends a string to the section/page

prepend=text:
Prepend a string to the section/page

sectionprepend=text:
Prepends a string to the section, but after the section header


Those should be able to work in unison, and override the text parameter (or make it throw an error if both text and the above is given);

Example:

api.php?action=edit&title=Foo&section=2&sectionprepend={{begin foo}}&append={{end foo}}
Comment 1 Roan Kattouw 2008-06-11 20:43:14 UTC
(In reply to comment #0)
> Following options I want to be implemented, this to make it easier to do usual
> things to commons things:
> 
> append=text:
> Appends a string to the section/page
> 
> prepend=text:
> Prepend a string to the section/page

Those sound doable, I'm on it.

> sectionprepend=text:
> Prepends a string to the section, but after the section header
> 
That's probably not as easy, since it involves parsing the section text to some degree to find out what the section header is. I can't guarantee I'll implement this.
Comment 2 Roan Kattouw 2008-06-12 13:08:39 UTC
appendtext and prependtext parameters added in r36235. They work for sections too, although prependtext won't do what you expect (it'll prepend your stuff before the section header, appending your stuff to the previous section). Also, keep in mind that no newlines or spaces are added between prependtext, the old content and appendtext; if you want them, add spaces or newlines to the end of prependtext and/or the beginning of appendtext yourself.

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


Navigation
Links