On Saturday, 13 April 2019 21:16:45 UTC+1, Jed Carty wrote: > I completely
forgot I made that macro and have no idea where it is. > > > > So I may be
able to help if you give me a link to it or the macro code. > > > This is
why I made bob, I am trying to be organised.
\define HelpButton(label, ButtonText:?)
^^(<$button popup="""$:/temp/popup/$(currentTiddler)$/$label$"""
class='tc-btn-invisible tc-tiddlylink'>$ButtonText$</$button>)<$reveal
type='popup' state="""$:/temp/popup/$(currentTiddler)$/$label$"""><div
class='tc-drop-down'
style='width:1500px;max-width:75vw;white-space:pre-wrap;padding:10px;text-align:left;font-size:1.5em;border-radus:0.5em;'><$transclude
field="""$label$"""/></div></$reveal>^^
\end
Usage:
```
This adds a help button that looks like this<<HelpButton demo>>
```
This adds a help button that looks like this<<HelpButton demo>>
```
This adds a help button that looks like this<<HelpButton demo2 'why?'>>
```
This adds a help button that looks like this<<HelpButton demo2 'why?'>>
Contents of the `demo` field: {{!!demo}}
Contents of the `demo2` field: {{!!demo2}}
You make a field for each label that contains the help information. This
can have html and simple wikitext. Since it is a field linebreaks need to
be added using html `<br>` tags.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e2714d38-7ce6-495b-8af4-282f03755659%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.