Page MenuHomePhabricator

Allow wikis to overwrite default output of "References list"
Open, Needs TriagePublicFeature

Description

Currently, the "References list" generates the <references /> tag by default. Since most wikis (~500) use custom reference list templates, there should be an option to override this default and insert a custom template through this button.

firefox_PkR69i8uOF.png (286×89 px, 3 KB)

GIF:
lypxywHTky.gif (986×817 px, 337 KB)

Event Timeline

Nemoralis renamed this task from Allow wikis to overwrite output of "References list" to Allow wikis to overwrite default output of "References list".Nov 25 2024, 10:59 AM
Nemoralis added a project: VisualEditor.

In general, we'd really prefer that {{reflist}}-style templates not be used, because they make it extremely difficult for us to ever support list-defined references. See the venerable T52896, and more recently the bug that meant T356471 had to get reverted.

T377043 might be of interest, which did a survey of reasons to use {{reflist}}. It (mostly) concluded that <references> has been improved a bunch since the original {{reflist}} templates were made, and <references responsive> in particular (the default) removes the main reason for a reflist template, which was baking in column-rendering.

As a result, we're relatively more motivated to do things that make <references> more appealing if you ask for them, compared to making it easier to use {{reflist}}. 😅 E.g. late last year I adjusted css so that said responsive wasn't a bit less-likely-to-wrap than {{reflist}}, and those are now equivalent.

(Perhaps also worth noting that for enwiki there's no official guidance about which you should use (wp:use_reflist wasn't adopted), and recently a consensus was reached to replace {{reflist|refs=...}} with a plain <references>...)