--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/71fe27de-65a8-4eff-b2b6-de802e3641aen%40googlegroups.com.

I have attached a sample doc from ExcelThe same sequence: purpose, syntax, arguments (in/out parameters), remarks, examples
In that thread I volunteered to at least mock up a POC to gather thoughts. As Jeremy correctly pointed out, it'd be of no use to do just 1 widget, we'd have to do them all. So, I mocked up something flexible here (Documentation — Syntax for Widgets (tiddlyhost.com) ) for people to give thoughts on. It might make sense to add a Disqus plugin or something if this gets traction, but I haven't put anything there yet.
While it seemed pretty cut and dry at first, it turns out there's a need for some subjective thoughts / preferences on how to handle things.
For example, I think I'd like to show the full widget, even if the "content" is ignored, to illustrate that fact,
but some may disagree and we'd have to think about how to show the "closed" version?
like <$link/> rather than <$link></$link>.
Next would be how best to distinguish the difference between required attributes and optional ones.
Most other documentation seems to use things like square brackets [] or angle brackets <> for this stuff, but that would get confusing in TiddlyWiki, so I'm leaning towards either color (red for required, green for optional) or more gently bold for required, italic for optional.
It'd be a good deal of work to go through this with this, and there are a bunch of decisions to be made I'm realizing after trying to do a few things, like best way to handle when say either tiddler/field/index is required - how to format that? I built the syntax area as a macro and put the data in fields, so we tweak things easily.
So, I'm essentially posting this to gauge interest and get ideas. Because it'd be so much work, I don't want to start wasting time at something that either nobody cares much about, or that wouldn't get implemented anyways.
Also I'll mention that Mohammad actually brought up filter operators originally and I agree that could use the same treatment, so if this was successful I/we could apply the same effort into those.
For the part where one of multiple attributes is required, what about e.g.,
- <$action-setfield $tiddler="tid" ($field="field" | $index = "index" | text field) $value="value" />
On Thursday, May 27, 2021 at 2:56:35 AM UTC-4 TiddlyTweeter wrote:Mohammad wrote:I have attached a sample doc from ExcelThe same sequence: purpose, syntax, arguments (in/out parameters), remarks, examples
Ha. Very good example!And, YES. We are all Sinners, and especially Microsoft :-)TT
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9936c0a8-f090-4973-bdc6-d4551b5e5879n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e126ce9d-38b6-4d15-83ff-9108397b070dn%40googlegroups.com.
Review here:So on the site now I show a V1 (original), V2 (adding the metasyntactic variables), and V3 with them, but splitting each attribute into a new line. It's not clear to me which is best because I change my mind depending on how many attributes there are. While V3 I think makes it easier to read for widgets with MANY attributes, I wonder then if it's worth just combining the syntax and attribute table altogether since it'd probably fit all side by side (think syntax as col1 of a table with the description, defaults as other columns...
Examples - more complex = Edit-text
... using either <$reveal>... or <details>... to hide sections so its not too overwhelming and the end-user can expand only the sections they need to see.
TiddlyTweeter wrote:... using either <$reveal>... or <details>... to hide sections so its not too overwhelming and the end-user can expand only the sections they need to see.
At the moment Jeremy doesn't accept PRs that contain the <details> element, because it doesn't store open/close state.I think, we need a <$details> widget, that can handle persistent state, in the core first.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0c6f9683-e1de-49ff-a61c-04986da6eaa1n%40googlegroups.com.