Page MenuHomePhabricator

Simple extension to append to a wiki page
Open, LowPublicFeature

Description

Author: mike.lifeguard+bugs

Description:
I'd like an extension that simply appends a line or multiple lines to a wiki page, preferably using AJAX. This is to avoid downloading the whole page text and then sending it back to the server.

It should insert a textbox on the page like Extension:LogEntry does using <AppendLine /> or <AppendLines /> for single-/multi-input respectively.

In the simplest form, it is exactly like "echo string >> file", but the one and only feature I can think of would be to define a string to insert before/after: <AppendLine insertBefore="whatever" /> or <AppendLines insertAfter="something else" />. If you wanted, you could add <PrependLine /> variants of all of this as well -- careful with the insertBefore/insertAfter in that case :)

This would need to be deployed on Wikimedia sites.

Thanks to anyone who takes this on.


Version: unspecified
Severity: enhancement

Details

Reference
bz20435

Event Timeline

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

This would probably be best implemented as a JavaScript Gadget; the API has an append operation which could be easily used by such a tool.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.

I'm not sure that's a duplicate: it seems like it wants ?section=append to add a new untitled section at the end of the page (with the normal editing form). This task sounds like it's more about a in-page textbox.

The MediaWiki-extensions-Commentbox extension provides a textbox with which to append text to a page, maybe that's closer to this request?