Resize Core Icon

Hi experts,

i found here https://tiddlywiki.com/#Core%20Icons the documentation how to implement the core icons and how to use the parameters.

I want to use the icons somewhere in the text to describe the users how to use the buttons.

If I use
{{$:/core/images/add-comment}}

the icon is shown full size.

If I try this as described in tiddlywiki.com
{{$:/core/images/add-comment|32px}}

only the text {{$:/core/images/add-comment|32px}} appear :frowning:

The same situation is I use other parameters like

{{$:/core/images/new-journal-button|48px|17}}

If I use the complete code, copied from tiddlywiki

{{$:/core/images/new-journal-button|48px|17}}
<$transclude $tiddler="$:/core/images/new-journal-button" day="17"/>

The error message Recursive transclusion error in transclude widget appear.

What I do wrong?

@stefan_from_germany are you doing this on TW v5.3.0? The parameterized transclusions and icon parameters were introduced in v5.3.0. On versions below, the code {{$:/core/images/add-comment|32px}} won’t work, and display the raw text instead.

There are ways of easily resizing the icon on older versions, if that is what you need.

Hi @vilc ,

I am using 5.26

Stefan

The parametrized transclusion {{$:/core/images/add-comment|32px}} will not work in this case. If you don’t want to update to the v5.3.0, there are some workarounds to resize the icons, see these posts:

Feel free to ask if you have further questions.

@vilc

THANK YOU for your help.

1 Like

You may want to wait for this first:

When giving a size too icons try 1em or using rem then they are scalable.