[go: up one dir, main page]

Page MenuHomePhabricator

Subst inside ref tag doesn't work
Closed, DuplicatePublic

Description

Steps to reproduce

  1. Open some page on wiki (e.g. sandbox on cswiki)
  2. Click "edit source" (OWE)
  3. Click on "reference" button
  4. Insert {{subst:some template}} (e.g. {{subst:str len|abc}}) into the openned dialog and click insert button
  5. Save page

Expected result
Template should be substed and its source code should be saved

Current result
<ref>{{subst:some template}}</ref> is saved instead

Event Timeline

I think that it's a feature, not a bug, but I don't know why this choice. I've known this for a long time.

@Framawiki OK, we should find out why it is a feature and not a bug then if you are right. Who could know this? On cswiki we have got some citation templates, which are created for substituting into ref tags and obviously don't work the way their author intended (e.g. https://cs.wikipedia.org/wiki/Šablona:Citace_koránu)

Jdforrester-WMF added a project: Cite.
Jdforrester-WMF subscribed.

Yes, this is intentional. Because of the (bad) way the references system is designed, it doesn't actually support real wikitext, just a subset of it (and for performance, a quite limited one). The proper fix for this would be moving references to be a proper system; of the ideas around doing that, WikiCite is the most likely to happen (and even that won't be soon).