Page MenuHomePhabricator

Links to empty pages should show up as uncreated
Closed, ResolvedPublic

Description

Author: ashley

Description:
Currently, a link to a page that doesn't exist is rendered on the page
differently from a page that does exist. I propose that a page that exists, but
its current revision is empty, be considered an empty page when links to it are
rendered.

This would allow "soft delete" whereby a page that has been emptied can be
considered "deleted", and yet its history would remain.


Version: unspecified
Severity: enhancement

Details

Reference
bz2288

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:33 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz2288.
bzimport added a subscriber: Unknown Object (MLST).

ashley wrote:

Correction:
I propose that a page that exists, but its current revision is empty, be
considered non-existing when links to it are rendered.

magnusrk+wiki wrote:

I'd like to see this myself. With the improved stub handling (length field in page table) it shouldn't be hard to do.

gangleri wrote:

question: How this would deal with empty templates.

see bug 826 comment #2

The workaround is to use an existing but empty template as the parameter, so the
text becomes "{{blank_template|y|z}}", and (since Template:Blank_template
contains no text) is rendered blank. I see no reason why this behaviour will
ever change, as it is not a side-effect at all: the template is simply being
included; if it contained the single letter "A", the result would be the single
letter "A". Passing extra parameters to a template has no effect, and nor

should it.

robchur wrote:

*** This bug has been marked as a duplicate of 3843 ***

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:15 AM