Page MenuHomePhabricator

Edit summary: automatically convert {{example}} to {{[[Template:Example|example]]}}
Open, LowestPublicFeature

Description

Author: gschriss

Description:
When creating an edit summary, I find that creating a wiki-link to the template
I added helps newcomers understand what it is I have done. Normally words
within double brackets display as plain text, but there is no reason I see that
a link could not be created automatically. For example the following:

/* Some section */ I added the {{Unreferenced}} template

should be interpreted in the history list as:

/* Some section */ I added the {{[[Template:Unreferenced|Unreferenced]]}} template.

Thanks!
George Chriss / GChriss


Version: unspecified
Severity: trivial

Event Timeline

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

r22051 splits Linker::formatComment in two functions:

  • formatAutoComments
  • formatLinksInComment

We can probably add another function to handle templates

BrandonXLF subscribed.

A query shows that there are 6 million unique non-automatic edit summaries that use this syntax https://quarry.wmflabs.org/query/54289 and considering normal links are already handled like this, I don't see why templates shouldn't be.

Change 697900 had a related patch set uploaded (by BrandonXLF; author: BrandonXLF):

[mediawiki/core@master] Format template calls in edit summaries as links

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

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 5 2022, 2:35 PM