Page MenuHomePhabricator

Linking to an article in 'edit' mode
Closed, DeclinedPublic

Description

Hello everyone, I have an idea for a new MediaWiki feature:

Linking to an article in the 'edit' mode. Not a normal link like [[foobar]], but a link that adds "&action=edit" to the URL.
At the moment, that works with something like <span class="plainlinks">[{{SERVER}}{{localurl:myarticle|action=edit}} linktext]</span> - which is not nice to read in the source code of a page.

So here are my proposals:
a) Interwiki-Style: something like [[edit:foobar]]
b) Magic-word-Style: {{EDITLINK:foobar}}

What do you think about that? Perhaps that editlink should also have a special color, so that you know it is an editlink.

Thank you for your opinions,

saibot834

Ps.: I'm sorry if I did something wrong, this is the first time I use Bugzilla...


Version: unspecified
Severity: enhancement

Details

Reference
bz11195

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:50 PM
bzimport set Reference to bz11195.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

[{{SERVER}}{{localurl:myarticle|action=edit}} linktext]

Easier with:

[{{fullurl:myarticle|action=edit}} linktext]

And probably easy with a template like {{editlink|myarticle|linktext}}, where Template:Editlink would contain:

[{{fullurl:{{{1}}}|action=edit}} {{{2}}}]

or something similar. Inclined to WONTFIX.

Ok, a template would also work :)

Thanks for your help.