Look through the dominant {{reflist}} templates (name may vary) and reverse-engineer all functionality from the template documentation, template source, and any transcluded stylesheets.
* Wikis to study: enwiki, TBD (biggest, RTL, representative sample)...
* Global search query to find reflist template: TBD (copy snippet from other tasks)
Functionality which is passed through the template to <references> will be omitted here when we already have parity. Examples:
* `refs` for list-defined references
* `group`
* `responsive`
* Stylesheets like on [[ https://en.wikipedia.org/wiki/Template:Reflist/styles.css | enwiki ]] are equivalent to global style overrides and were only attached to the template for encapsulation.
* Parameter validation
Multicolumn is not omitted from the survey, but note that the Cite `responsive` feature already provides parity.
* Migration was started in 2015, see {T33597}.
* Note that the configuration variable `$wgCiteResponsiveReferences` sets the default value, it's not a feature flag. The feature is available on all sites.
* This could be ported to community configuration, which might also encourage more sites to enable it as default.
* Interesting that the default threshold of 10 is never overridden.
Survey (in progress):
* enwiki
* [[ https://en.wikipedia.org/wiki/Template:Reflist | {{reflist}} ]]
* multicolumn
* TBD: columns are broken in template docs?
* predefined templates like [[ https://en.wikipedia.org/wiki/Template:Notelist | {{notelist}} ]] come with a default group name, which set the alphabet for its footnotes and are each paired with a specific {{efn}} variant.
* Possible misfeature: can override the footnote markers separately in reflist vs. article. "This should be used with care as it can be confusing to readers."
* Can ignore the unbalanced [[ https://en.wikipedia.org/wiki/Template:Refbegin | {{refbegin}} ]] and [[ https://en.wikipedia.org/wiki/Template:Refend | {{refend}} ]] wrap bibliographic-style citations, but never a reflist.
* frwiki
* [[ https://fr.wikipedia.org/wiki/Mod%C3%A8le:R%C3%A9f%C3%A9rences | {{références}} ]]
* multicolumn
* Automatically change number of columns depending on namespace.
* Some templates add a tracking category when number of columns > 2
* Adds an element for CSS, `div.reference-cadre`
* TBD: what is `tabindex="0"` doing, it seems like a no-op?
* [[ https://fr.wikipedia.org/wiki/Mod%C3%A8le:R%C3%A9f%C3%A9rences_nombreuses | {{références nombreuses}} ]] collapses using a scrolling frame. This is pure CSS, using `height` and `overflow: auto`.
* eswiki
* [[ https://es.wikipedia.org/wiki/Plantilla:Listaref | {{listaref}} ]]
* multicolumn
* set symbols separately from group name
* arwiki
* Sometimes an explicit reflist div is included in wikitext, eg in [[ https://ar.wikipedia.org/w/index.php?title=%D8%B3%D9%88%D8%B1%D8%A9_%D8%A7%D9%84%D8%B4%D9%85%D8%B3&action=edit§ion=19&editintro=%D9%82%D8%A7%D9%84%D8%A8:%D8%AA%D8%A8%D8%B5%D8%B1%D8%A9_%D9%85%D8%AD%D8%AA%D9%88%D9%89_%D9%85%D8%AA%D9%85%D9%8A%D8%B2 | this section ]].
* Uses unbalanced templates like [[ https://ar.wikipedia.org/w/index.php?title=%D9%82%D8%A7%D9%84%D8%A8:%D8%A8%D8%AF%D8%A7%D9%8A%D8%A9_%D8%A7%D9%84%D9%85%D8%B1%D8%A7%D8%AC%D8%B9&action=edit | {{بداية المراجع}} ]] to open a div tag.
* Often doesn't use <references> at all!
* Multicolumn
* Hanging indent styling.
* Collapse to a scrolling box (pure CSS).
* [[ https://ar.wikipedia.org/w/index.php?title=%D9%82%D8%A7%D9%84%D8%A8:%D9%85%D8%B1%D8%A7%D8%AC%D8%B9&action=edit | {{مراجع}} ]]
* Optionally switch containing element to `dir=ltr`
* Set symbol separate from group name
* fawiki
* [[ https://fa.wikipedia.org/wiki/%D8%A7%D9%84%DA%AF%D9%88:%D9%BE%D8%A7%D9%86%D9%88%DB%8C%D8%B3 | {{پانویس}} ]]
* multicolumn
* set symbol separately from group name
* hewiki
* [[ https://he.wikipedia.org/wiki/%D7%AA%D7%91%D7%A0%D7%99%D7%AA:%D7%94%D7%A2%D7%A8%D7%95%D7%AA_%D7%A9%D7%95%D7%9C%D7%99%D7%99%D7%9D | {{הערות שוליים}} ]]
* Container optionally rtl or ltr
* multicolumn
Collected features (in progress):
* `class` and even `style` parameter to pass through additional CSS class names, toggling custom site functionality (eg. collapse and scrolling). This is better than "group" because eg. multiple features could be toggled individually.
* Set footnote symbol alphabet separately from group name.
* We should require that inline footnote markers use the same symbols as the reflist. This avoids the need to provide customizability on the ref tag. TBD: but look at cases where the symbols diverge.
* Configuration to set the default symbols for all groups
Would a scraper run be helpful for analyzing what wikitext is actually produced by the reflist templates, and even counting usages of specific features?
Follow up by roughly estimating the effort to reimplement each behavior in Cite for the <references> tag.