Page MenuHomePhabricator

Cannot add a template within <ref> tags in VE
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  1. Go to an article that contains citations.
  2. Click the Edit button to edit it in Visual Editor.
  3. Click on a citation footnote.
  4. Insert a template such as this one: https://en.wikipedia.org/wiki/Template:Creative_Commons_text_attribution_notice

What happens?:

The template is added after the </ref> tag of the citation.

What should have happened instead?:

The template should be added before the </ref> tag.

Software version (skip for WMF-hosted wikis like Wikipedia):

Wikipedia

Other information (browser name/version, screenshots, etc.):

In the free content movement, we spend a lot of energy trying to get institutions to release content under Wikipedia-compatible licenses, but within Wikipedia re-use of that content is actually hampered by technical limitations such as this one.

See prior discussion at https://en.wikipedia.org/wiki/Help_talk:Citation_Style_1#Can_someone_add_Creative_Commons_parameters_to_the_Cite_template? and https://en.wikipedia.org/wiki/Wikipedia:Teahouse/Questions/Archive_1200#Adding_template_within_ref_tags_in_VE