Last modified: 2008-06-12 13:08:39 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 T16459, the corresponding Phabricator task for complete and up-to-date bug report information.
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