Page MenuHomePhabricator

A special page for the render action
Closed, DeclinedPublicFeature

Description

Feature summary

Redirect from Special:RenderPage/$1 to index.php?title=$1&action=render.

Use cases

  1. (This is not specifically intended for use on WMF wikis) My personal, primary use case is setting a rendered page as MediaWiki:Mainpage. With this trick, it is possible to create a full main page without any navigation elements. Of course, this can be done with CSS too, but I think using Special:RenderPage is a more straight forward solution.
  1. [{{fullurl:An Article|action=render}} Render] wikitext make an external link, and It seems to be harmful in some context to readers, while [[Special:RenderPage/An Article]] is an internal link.

Event Timeline

Change 895374 had a related patch set uploaded (by Lens0021; author: Lens0021):

[mediawiki/core@master] Create redirect Special Pages for render action

https://gerrit.wikimedia.org/r/895374

Lens0021 renamed this task from Special pages for render to A special page for the render action.Mar 14 2023, 2:09 PM
Lens0021 claimed this task.
Lens0021 updated the task description. (Show Details)

[{{fullurl:An Article|action=render}} Render] wikitext make an external link, and It seems to be harmful in some context to readers

You can remove the external link symbol, otherwise the link has no difference with the supposed internal link

<span class="plainlinks">[{{fullurl:Article|action=render}} Render]<span>

So will this ticket be rejected? The first listed reason still has value to me. Extension:TemplateStyles has some limitations when it comes to removing navigation elements, MediaWiki:Common.css is global and can cause performance issues, and I don't want to try a third-party solution like a custom extension.

Rendered content can have an almost arbitrary look. Allowing the main page to be any rendered page seems like an invitation for trouble - an attacker can set it to a rendered fake main page that looks like the original but the links lead elsewhere and facilitate phishing. Also there are many other places where a title can be used and is expected to be safe (e.g. returnto=). I think such functionality would make more sense in an extension than as something available by default on any wiki. What's the problem with that approach?

Change 895374 abandoned by Lens0021:

[mediawiki/core@master] Create redirect Special Pages for render action

Reason:

https://gerrit.wikimedia.org/r/895374

I will look for another solution to my problem, thank you Tgr and jbllrobson.