Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue where $parameters did nothing with no $transclude #8203

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

flibbles
Copy link
Contributor

Discovered this problem when creating a new TiddlyMap release.

If you try to directly render a tiddler (such as by using $tw.wiki.renderTiddler) that has \parameters or <$parameters> in it, the parameters widget will do nothing. It'll look up its parent tree, find no transclude to possibly pull arguments from, and just disable itself.

I'm not sure this should be expected behavior. For instance, TiddlyMap now has to do a weird workaround for this just so it can render the $:/core/images/tag-button into a usable form for svg icons. I would think expected behavior for $parameters would be to use its default parameters in such a case. It certainly makes sense for icons.

Copy link

vercel bot commented May 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tiddlywiki5 ✅ Ready (Inspect) Visit Preview May 22, 2024 4:07am

@Jermolene
Copy link
Member

Thank you @flibbles I agree, this is a very worthwhile fix.

@Jermolene Jermolene merged commit 3522729 into TiddlyWiki:master Jun 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants