[tw] Re: Macros to show different results all depending on a single field value?

2016-06-11 Thread Måns
Example: Gender macros at tiddlyspot.com Den lørdag den 11. juni 2016 kl. 23.42.12 UTC+2 skrev Måns: > > Hi Matabele > > Thank you very much :-) > > I don't quite understand how to use the "myVariable" bit? - or get the > idea behind "emptyValue" as opposed

[tw] Re: Macros to show different results all depending on a single field value?

2016-06-11 Thread Måns
Hi Matabele Thank you very much :-) I don't quite understand how to use the "myVariable" bit? - or get the idea behind "emptyValue" as opposed to writing: filter="[all[current]field:gender[]]" value="Missing value for gender"? - therefore I had to create a very long tiddler to get 12 simple

[tw] Re: Macros to show different results all depending on a single field value?

2016-06-11 Thread Matabele
Hi Mans This kind of conditional can be fairly simply achieved using the SetWidget -- the widget will choose either a 'value' or an 'emptyValue' depending upon the output of the filter expression. <$set name="myVariable" filter="[all[current]field:gender[male]]" value="It's male"

[tw] Re: Macros to show different results all depending on a single field value?

2016-06-11 Thread Måns
Hi cp a Thanks a lot :-) Cheers Måns Den lørdag den 11. juni 2016 kl. 02.09.50 UTC+2 skrev c pa: > > \define Get_He_She(gender) > {{He_She##$gender$$}} > \end > > \define Get_Him_Her(gender) > {{Him_Her##$gender$$}} > \end > > Create tiddlers > > title: "He_She" > text: " > # This

[tw] Re: Macros to show different results all depending on a single field value?

2016-06-10 Thread 'c pa' via TiddlyWiki
\define Get_He_She(gender) {{He_She##$gender$$}} \end \define Get_Him_Her(gender) {{Him_Her##$gender$$}} \end Create tiddlers title: "He_She" text: " # This tiddler is a Data Dictionary that translates gender designations to personal pronouns male: He female: She " type: Data

[tw] Re: Macros to show different results all depending on a single field value?

2016-06-10 Thread Mat
Just the other day I was fiddling with some stuff based on the "if-sidebar" macro found in $:/core/macros/CSS I think the ideas used in that would work for your case. <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from