Shiraz Plugin Update 2.5.4 - 2.8.1

Shiraz has got a new update

Revision 2.6.5

!! Revision 2.6.5

  • ‘‘Date: [2022.10.12]’’
  • [NEW] Colorful Node Explorer is added
  • [New] Node Explorer back transclusion filter added.

The help from discussions in other threads by @Yaisog, @telumire, @atronoush, @saqimtiaz are highly appreciated.

2 Likes

@Mohammad I was just reviewing Shiraz and realised one thing that reduces my use is finding the details quickly when I need it. I realised that a cheat sheet with “minimal but sufficient information”, in a single tiddler would be helpful, and could be included in the plugin.

The tutorial is great for learning yet is appropriately, somewhat verbose. Cases such as “Alert with horizontal divider” is useful illustration but need not be mentioned in a cheat sheet because it is “just” using a --- or <hr> in the content.

  • I just thought I would mention this. because as a fan of Shiraz Wine and TiddlyWiki tools, I want everyone to benefit from your lovely work.
1 Like

Thank you
This suggestion. I added this to my to-do list. But the way I welcome any contribution in this regard

Shiraz has got a new update.

The Node Explorer has improved. Thank you @talha131

Revision 2.7.0

For all changes see ChangeLog

2 Likes

Shiraz just got a new update.

Code and demo

Revision 2.7.2

  • Date: [2022.12.27]
  • [NEW] Callout subplugin link is added on first page
  • [FIXED] Template $:/plugins/kookma/shiraz/templates/body/email correctly handles email addresses
  • [FIXED] The dblock is hidden in preview pane
  • [FIXED] Slider header changed from h2 to h3
  • [FIXED] Now styles for details are specific to Shiraz details, not global
  • [FIXED] Wikilink (e.g from CamelCase words) is disabled for slider and details title

For all changes see ChangeLog

Shiraz Callout is a cherrypicked from Shiraz 3.0

Demo: Shiraz Callout 0.5.2 — admonitions static and collapsible
Code: GitHub - kookma/TW-Shiraz: Shiraz is a small Tiddlywiki 5 plugin contains macros, stylesheets, templates, snippets, images, static tables, dynamic tables and acts as a starter kit.

Callout

Collapsible callout

5 Likes

@Mohammad can similar styling be added to section editor also ?

Yes, you can do it!
PR are welcome!

Hey all, callout-details is a powerful successor to telmiger’s details widget, and shares the advantage of being easily exported to static-html details markup.

Its only downside is that it’s not convenient for super-complex non-transcluded content. You’ll have to transclude anything other than simple text strings – or else do funny """ or <div> bookends if you want to jam multi-line dropdown-content into the same enclosing tiddler.

But it’s tremendously flexible, style-wise: it puts a variety of standard (yet of course configurable) “admonition” styles at your fingertips — both with and without details-collapsability.

If you’re interested enough in this, you may well be running telmiger’s details widget already. And converting to shiraz callout-details may take some time (going through to do excise/transclusion fixes as needed).

Minor problem for using both during transition: the css for telmiger’s details widget conflicts with css for Shiraz callout-details: callout-details summary bars render with text overlapping icons (and they also lose the visual caret-icon cue for collapsable GUI):

image

Quick solution: put the following in a tiddler tagged $:/tags/stylesheet, thus cancelling out the offending bit of telmiger’s css (whose negative text-indent causes both the icon overlap and the disappearance of caret-icon):

 details > summary {
   text-indent: 0em;
}

-Springer

1 Like

Hi @Springer

I think the problem is with @telmiger details widget.
As we discussed, the $details has some styles for details html element! like

details{
....
....

}

This affects all details elements in a wiki. I would recommend using name space here like

tl-details{
....
....

}

let’s see what Thomas thinks here!

Perhaps you did not see that I had already found the bit of responsible css in the details widget – and was posting the small bit of code needed to get the two solutions to play well together?

Hi @Springer

I saw your solution! but that solution affects all details in a wiki so it absolutely has side effects.

The callout plugin uses namespace for CSS styling! so, it works fine and does not change the styles of other details elements.
That problem is with $details widget plugin! You will have such problem in any wiki in that the $details widget has been installed.
It is not a good practice to change property of a standard html element globally! We only do this in stylesheet like normalize.css. So, please wait to see what @telmiger thinks on this.

Hi @Springer, thank you for exploring this and for providing a fix at the same time.

When I wrote the Details plugin, not all browsers were equally good at supporting the details HTML element. So the not so good practice mentioned by @Mohammad was a feature in my eyes at that time, fixing the quirks of browsers for all details elements in a wiki, hand written as well as generated by my widget.

I think Springer is on the right track by switching from my Details plugin to a – for her use – better and newer solution. Her temporary fix makes the transition smoother, so I am grateful for the comment and hope other people on the same path will find it.

Cheers and happy new year,
Thomas

1 Like

The details widget did that and so much more! It has played an essential role in every project I’ve developed, for a few years now. I still think for some uses it’s the most powerful tool, since it’s very easy to generate and edit complex structures (including nesting details) all within the same tiddler.

Many thanks for chiming in!

-Springer


It seems that there are still some css compatibility issues on ios, android phones have not been tested

Can you test Shiraz by the demo page on GitHub or install in an empty.html?
I am afraid other plugins like detail widget cause such behaviour!

I think it is also the problem of this widget

test-callout It seems that there is still this problem in the test in the empty tiddlywiki, callout plugins However this page is normal on ios

Shiraz and one of its children (Shiraz Formatter) have got new updates.

Revision 2.7.5

  • Mar 8th, 2023
  • [NEW] Dynamic table tags template has a new variable sv-exlude-tags to exclude specified tags from displaying in table
  • [NEW] Documents updated, new examples to quick table were added
  • [FIXED] Small typos in variable parameter in some code tiddlers. Thanks to Elise Springer.
  • [FIXED] The background color of mono macro now supports dark palettes.
2 Likes