GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing phabricator.wikimedia.org — T4700 Pre-save transform skips extensions using wikitext (gallery, references, footnotes, Cite, status indicators, pipe trick, subst, signatures)
Assigned To None Authored By
Referenced Files
Description ProblemThe PST features in wikitext are things like ~~~~ (becomes a signature on-save), pipe trick on links [[Title (disambig)|]] (becomes [[Title (disambig)|Title]] on save), and {{subst:#time:}} which can insert the current date. These can be used in templates and in passing text, but not inside extension tags such as <ref> or <gallery>. Use cases
Details
Related Changes in Gerrit: Customize query in gerrit
Related Objects Search...
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Ammarpad raised the priority of this task from High to Needs Triage.Dec 30 2019, 4:48 PM2019-12-30 16:48:44 (UTC+0) Ammarpad merged a task: T241586: VisualEditor should pre-parse subst: wikitext in autovalues while loading templateData. Comment ActionsNeeds proper reassessment of priority Comment Actions Not sure why this needs triage now. It's a long standing broken part of the system, which should have been fixed a long time ago. If the foundation can't fix it in 14 years, and with, I suppose, about $1bn to spent, I despair of having anythung useful done. Certainly lowering the priority won't help, and raising it seems unlikely to either. Comment Actions TOKEN FOR RICH! Ciencia_Al_Poder updated the task description. (Show Details)Jan 6 2020, 11:35 AM2020-01-06 11:35:15 (UTC+0) Comment Actions @Rich_Farmbrough: Please bring up meta-level discussions on priorities or who should spend money on what in a better suited place. Also see https://www.mediawiki.org/wiki/Bug_management/Development_prioritization about prioritization and wrong expectations. Thanks for your understanding. Comment Actions @Aklapper You refer @Rich_Farmbrough to https://www.mediawiki.org/wiki/Bug_management/Development_prioritization - but that's a very long essay with multiple claims. Which of them do you think applies to this bug? "Hence there are many tasks which will stay unresolved forever. It is unrealistic to expect all tasks to ever get fixed.", perhaps? Or perhaps Rich has seen it, and has noted that it suggests "sometimes the best bet is ... to convince someone else (maintainers, developers, external developers) to write that software patch." More generally, please be specific, not vague, just as you enjoin others to be Comment Actions @Pigsonthewing: I'm not sure if I get the question correctly, sorry... I replied to a comment mentioning "should have been a fixed long time ago" and "Priority". Comment Actions The whole page cannot apply, since the two quotes I gave involve mutually exclusive outcomes. Comment Actions Here's another possible use case that is blocked by this bug. Aklapper removed subscribers: • Delrona, Brickimedia, • Purodha and 2 others.Apr 7 2023, 6:03 PM2023-04-07 18:03:29 (UTC+0) IKhitron subscribed. Comment Actions This problem has just been raised again in a discussion at https://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard/Incidents#Srich32977_and_FAITACCOMPLI where the subst'ed template "Format ISBN" is seen as a solution to a problem ... but does not, currently, work within <ref> tags. So I add my voice here to urge that this problem should be fixed ASAP for the benefit of readers and editors. AradoAr196 subscribed. Comment Actions Change 981193 had a related patch set uploaded (by Thomas-topway-it; author: Thomas-topway-it): [mediawiki/core@REL1_39] parsing of nested tabs with 'parse-wikitext' attribute, see phabricator T4700 and T3310 Restricted Application removed a project: Patch-Needs-Improvement. · View Herald TranscriptDec 8 2023, 9:09 AM2023-12-08 09:09:11 (UTC+0) Comment Actions hello, I have created the following patch https://gerrit.wikimedia.org/r/c/mediawiki/core/+/981193 that may solve the issue without modifying the parser see also https://phabricator.wikimedia.org/T3310 Pppery edited projects, added: Patch-Needs-Improvement; removed: Patch-For-Review.Jun 14 2024, 6:38 PM2024-06-14 18:38:54 (UTC+0) Comment Actions Once resolved, please correct/remove the mention of the bug in the lede of Wikipedia:Substitution. Thank you! Comment Actions Is this bug seriously twenty years old? Is there some reason we can't fix it? Comment Actions @JPxG_: Hi, age of a ticket is always irrelevant - issues do not get more likely fixed only because they get older. You can find the creation data of this ticket under "Authored By" above. You can find reasons in the review of the latest patch mentioned in this ticket; if you'd like to see this or another issue fixed then please provide code changes for review. For general questions, please use https://www.mediawiki.org/wiki/Talk:Phabricator/Help . Thanks for your understanding. Comment Actions
It's less a case of why can't we?, more a case of why hasn't it been?. The first priority should be to pinpoint which part of the code is responsible for the problem. However, there aren't any notes here indicating what the root cause might be. While troubleshooting code is often easier than writing it from scratch, some direction is needed to proceed efficiently. There have been previous attempts to resolve this issue, but unfortunately, those efforts were unsuccessful. Comment Actions I just figured out that a unresolved long-standing issue affecting c:Commons:Photo_challenge is due this this bug from 2005. When we create new page for the monthly photo challenge we automatically preload it from Commons:Photo_challenge/preload page, where we set up a bunch of "subst:" commands to correctly fill most of the fields. All of those work except for couple of "{{subst:FULLPAGENAMEE}}" statements which for some reason never work. I was just experimenting with them and after long debugging session discovered that what prevent those from working are <gallery.</gallery> brackets. I wonder how many other volunteers waste their time rediscovering this 20 year old bug. Sjoerddebruin subscribed. Comment Actions Hi. Just a question. Is this bug the reason why we at svwiki have to make updates like this every year, or is our problem solvable in some other way? Thanks! Comment Actions
There is no bug, but expected behavior of pre wikitext tag which prevent any wikitext inside it. If you want to use {{CURRENTYEAR}} magic word, you should find another way to both indent and prevent wikitext. There are several options, here is one: wikitext: == Nyval/Omval/Återval aktuell månad och år == <<nowiki/>section begin="{{CURRENTYEAR}}"/> <<nowiki/>small>Valet bör inte avslutas före den {<nowiki/>{Byt:#timel: j F Y "kl". H.i (T) | +7 days}}.</small> {<nowiki/>{Byt:Nominering |användarnamn= |till= Administratör/Administratör och byråkrat/gränssnittsadministratör/IP-kontrollant |valtyp= Nyval/Omval/Återval |självnominerad= Ja/Nej |motivering= Varför ~~<nowiki/>~~ |länk= Länk till kandidatens bekräftelse (utgår vid självnominering) }} <<nowiki/>section end="{{CURRENTYEAR}}"/> If needed, please continue the discussion elsewhere (eventually pinging me) to avoid flooding with off-topic messages. Comment Actions I'm not sure if it's been mentioned in detail, so here's what I've noticed. The bug is gone during editing via VisualEditor and appears after saving the edit.
So VisualEditor seems to be doing something right. It uses the {{subst:}}'s properly even inside <ref>'s. But then something fails while saving the page. Comment Actions Well, yeah, the error is in saving the page, and it's an error based on the order of operations. To fix this, we need to work out what the operations are, and change the order in which they're executed. So, what needs to be done is some code analysis to identify that. Sorry if that is obvious, but I think it best to state the problem in the simplest way possible. Mvolz changed the status of subtask T415296: Respect 'autovalue' in TemplateData in Citoid Extension's Automatic tab from Open to Stalled.Jun 17 2026, 2:40 PM2026-06-17 14:40:24 (UTC+0) Mvolz subscribed. Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |