Community Wishlist Survey 2017/Editing/Wikitext substitutions should work in ref and gallery blocks

Wikitext substitutions should work in ref and gallery blocks

  • Problem: Links ending in |]], substitutions with {{subst: and tilde-timestamps (~~~~~) don't behave as expected within <ref> and <gallery> blocks. (Amongst others.)
  • Who would benefit: Article wikitext editors.
  • Proposed solution: Resolve that substitution and pipe tricks work inside other mediawiki tag extensions
  • More comments: More generally speaking: common wikitext substitutions that editors would expect to work in all reader-visible places, do not work in some contexts.

    mw:Extension:Cite has not evolved with other components of wikiediting. Substitution (subst:) and pipe tricks from inside custom tags like <ref> fail unless one pushes with more complicated use of {{#tag:}}. Such use can be problematic due to the misinterpretation of | and {{!}}. To note that the identified problem also applies to use of <poem>.

  • Phabricator tickets: T4700: Pre-save transform skips extensions using wikitext (gallery, references, footnotes, Cite, status indicators, pipe trick, subst, signatures)
  • Proposer: bdijkstra (talk) 16:49, 8 November 2017 (UTC)Reply[reply]

DiscussionEdit

VotingEdit