Mohammad,
Good idea with the data tiddler as well.
So many ways in tiddlywiki.
Regards
Tony
On Wednesday, September 18, 2019 at 10:44:32 PM UTC+10, Mohammad wrote:
>
> Tony!
> This solution you proposed is even better! I may then suggest to use a
> simple data tiddler or JSON
> stores all
Added to TW-Scripts
https://kookma.github.io/TW-Scripts/#Alternate%20Message%20of%20the%20Day%20Generator
--Mohammad
On Wednesday, September 18, 2019 at 4:21:15 PM UTC+4:30, Mohammad wrote:
>
> \define tid() x$(item)$
>
>
> <$set name="dd" value=<> >
> <$list
Tony!
This solution you proposed is even better! I may then suggest to use a
simple data tiddler or JSON
stores all messages with property names msg-1 msg-2 or simply 1, 2, 3,...
wikitext allowed in property value in data tiddlers, so one can also style
the text.
Thanks Tony for your great
And..
\define msg-field() msg-<
\define msg-tiddler() tiddlername
then in any location
<$transclued tiddler=<> field=<> />
store the messages in fields msg-1 msg-2 In tiddler name.
In this way you could even have alternative tiddlers with another set of
messages for the day. Even 12 for
Mohammad
Yet another approach.
Love it
Tony
--
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+unsubscr...@googlegroups.com.
To view this discussion on
\define tid() x$(item)$
<$set name="dd" value=<> >
<$list filter="[tag[message]removeprefix[message ]match]" variable=item>
<$transclude tiddler=<> mode=block/>
--assumption
- message tiddler have title like message xx where xx is 1 2. ... 31
- message tiddler have been tagged with
Melvin,
Hood on you for taking the JavaScript challenge. I am sure it will help you and
our community.
Of course you can see I mat and others always like a coding challenge and we
can't help ourselves.
Tony
--
You received this message because you are subscribed to the Google Groups
Wow, that's beautiful :)
Op wo 18 sep. 2019 om 11:48 schreef TonyM :
> Post script
>
> Mat you method looks close to a "case" structure.
>
> Love it
> Tony
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from
Post script
Mat you method looks close to a "case" structure.
Love it
Tony
--
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
Nice Mat
I love it when one persons idea is made even more elegant by another.
It is also a great source of code methods and patterns which are easier to
learn than reverse engineering.
Thanks
Tony
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki"
I made this, only to see that Tony is on the same path - i.e simply use the
SetWidget *select* parameter. And AFAICT no need for a wikify outside.
<$set
name="messages"
select=<>
filter="
[[Message 1]]
[[Message 2]]
[[Message 3]]
[[Message 4]]
...">
<>
<:-)
--
You received this message
I believe this is possible with pure wikitext!
One solution:
I have 32 tiddlers each contains a message
Each tiddler have a field called day and message of day one has 1 as the
day value
Write a list widget with a filter to extract the day number of current data
Match against field value of
Hi Melvin,
Thank you very much. The filter makes it very useful for an end user like
me. I used it for my cookbook, which recipe to prepare each day the next
month - no matter who in the family will be preparing the food, they will
be linked to the correct recipe.
Birthe
--
You received
Hey Tony,
I suppose to each their own :P
I just learned how to create JS macro's. I finally understand enough of TW
to have an idea of what that even means. The csvtiddlers.js file was really
helpful to see how to deal with filter expressions in JS. Also, while
reading the source is a bit
Minor edit
On Wednesday, September 18, 2019 at 10:59:50 AM UTC+10, TonyM wrote:
>
> Melvin,
>
> You could mimic the Javascript approach quite closely, Because my
> Javascript is somewhat vague and it is more involved to add it to
> tiddlywiki I always use other methods.
>
> \define
Melvin,
You could mimic the Javascript approach quite closely, Because my
Javascript is somewhat vague and it is more involved to add it to
tiddlywiki I always use other methods.
\define list-of-messages() [[Message 1]] [[Message 2]] [[Message 3]] [[
Message 4]]
or even
\define
I like it-- that I have a use for : )
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web
17 matches
Mail list logo