Re: [tw5] Re: Template for set field?

2018-08-13 Thread PMario
On Sunday, August 12, 2018 at 7:29:38 PM UTC+2, Mohammad wrote:
>
> So if I defined some css in another tiddler tagged with $:/tags/Stylesheet 
> then can I use them with tiddlerTagClasses?
>

tiddlerTagClasses is an internal variable, that is set by the core. ... You 
should __not__ mess with it!!

You can use the mechanisms described in the docs 
.
 
... There are several possibilities. You should use the 1 that meets your 
needs best.

-m

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/de1f17a3-dc6b-4d42-afc1-d411bd50a063%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Template for set field?

2018-08-12 Thread Mohammad
Thanks Mario.

On Sunday, August 12, 2018 at 1:02:57 PM UTC+4:30, PMario wrote:
>
> Hi, 
>
> see: https://tiddlywiki.com/#How%20to%20apply%20custom%20styles
>
> -m
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/0e04eebd-82c6-43d4-b5c7-8bb59dfa82c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Template for set field?

2018-08-12 Thread PMario
Hi, 

see: https://tiddlywiki.com/#How%20to%20apply%20custom%20styles

-m

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/6fd3c20b-06d6-4f37-9d48-059145d6e03e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Template for set field?

2018-08-11 Thread Mohammad
Jeremy 

The tiddler widget  (https://tiddlywiki.com/#TiddlerWidget) has several 
other features like tiddlerTagClasses 
is it possible to give an example to see how they can be used?

sed been here to facilitate the operation! Could you give some examples to
see how tiddler and its other classes 

On Thursday, August 9, 2018 at 9:57:43 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Stephen
>
> The confusing thing here is that we are manipulating wikitext that will be 
> stored in a tiddler and rendered later. Here’s one version that works, but 
> I’m not sure it’s exactly what you want:
>
> <$tiddler tiddler="$:/state/NewTiddlerForm">
>
> !Title
>
> <$edit-text class='tc-edit-texteditor' field='name_temp' placeholder='Life 
> the Universe and Everything' />
>
> !!Value of Constant
>
> <$edit-text class='tc-edit-texteditor' field='value'/>
>
> <$button>
> Create Tiddler
> <$set name="valuetext" value={{{ [{!!value}addprefix[<$latex 
> text="""]addsuffix[""">]] }}}>
> <$action-setfield $tiddler={{!!name_temp}} text=<> 
> value={{!!value}}/>
> 
> <$action-navigate $to={{!!name_temp}}/>
> 
>
> 
>
>
> Notes:
>
> * If you’re referring to the same tiddler many times, it’s often helpful 
> to use the <$tiddler> widget to set the currentTiddler, and then be able to 
> take advantage of defaults and omit the tiddler title from widgets like the 
> edit widget
> * We use a filtered transclusion with the set widget to create the text 
> value for the new tiddler by taking the value entered by the user and 
> adding a prefix and suffix
>
> Best wishes
>
> Jeremy.
>
>
> On 9 Aug 2018, at 17:21, Ste Wilson > 
> wrote:
>
> Update,
> it seems to be the katex plugin causing the problem as, instead of the 
> variable being placed in the field between double brackets so it can be 
> displayed by the katex plugin the field contains *ParseError: KaTeX parse 
> error: $ within math mode*.
> even thought the data going into the field is valid for Katex.
>
> Get the same error with \define convalue() 
> $${{$:/state/NewTiddlerForm!!value}}$$ 
> as \define convalue() <$latex 
> text="{{$:/state/NewTiddlerForm!!value}}">
>
> My code here:
> \define convalue() <$latex 
> text="{{$:/state/NewTiddlerForm!!value}}">
>
> \define actions()
> <$wikify name="valuetext" text=<>>
> <$action-setfield $tiddler="$:/state/NewTiddlerForm" $field="valuetext" 
> $value=<> />
> 
> \end
>
>
> !Title
> <$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTiddlerForm' 
> field='name_temp' placeholder='Life the Universe and Everything' />
>
> !!Value of Constant
>
> <$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTiddlerForm' 
> field='value'/>
>
> <$button>Create Tiddler
> <>
> <$action-setfield $tiddler={{$:/state/NewTiddlerForm!!name_temp}} 
> text={{$:/state/NewTiddlerForm!!text}} 
> value={{$:/state/NewTiddlerForm!!valuetext}}/>
> <$action-navigate $to={{$:/state/NewTiddlerForm!!name_temp}}/>
> <$action-setfield $tiddler='$:/state/NewTiddlerForm' name_temp='' text='' 
> description='' tags=''/>
> 
>
>
>
> On Thursday, 9 August 2018 12:11:32 UTC+1, Ste Wilson wrote:
>>
>>
>> Hmm, possible bug!
>>
>> The above code from FrD works fine in new tiddliwiki and indeed works on 
>> tiddlywiki.com however id doesn't work in my other wikis.
>> It must be a plugin thought I.
>> Starting with a blank wiki i tested then installed the katex plugin, at 
>> which point it fails to send anything to the output field!
>>
>> Any thoughts?
>>
>> Stephen
>>
>> On Wednesday, 1 August 2018 12:49:16 UTC+1, Ste Wilson wrote:
>>>
>>> Thanks for the response. 
>>> It looks spot on! 
>>> Thank you! 
>>>
>>>
> -- 
> 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+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> 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/fae270d4-c9b7-4e4a-92f4-5ea09f750e17%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/0d0a65b2-157d-4d50-be4d-d1d5deb5bed9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Template for set field?

2018-08-10 Thread Ste Wilson
Wow, that makes things more simple! 
I can definetlty use that. 
Thank you. 

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/e2b5d690-cc14-4130-8522-473918559865%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Template for set field?

2018-08-09 Thread Jeremy Ruston
Hi Stephen

The confusing thing here is that we are manipulating wikitext that will be 
stored in a tiddler and rendered later. Here’s one version that works, but I’m 
not sure it’s exactly what you want:

<$tiddler tiddler="$:/state/NewTiddlerForm">

!Title

<$edit-text class='tc-edit-texteditor' field='name_temp' placeholder='Life the 
Universe and Everything' />

!!Value of Constant

<$edit-text class='tc-edit-texteditor' field='value'/>

<$button>
Create Tiddler
<$set name="valuetext" value={{{ [{!!value}addprefix[<$latex 
text="""]addsuffix[""">]] }}}>
<$action-setfield $tiddler={{!!name_temp}} text=<> 
value={{!!value}}/>

<$action-navigate $to={{!!name_temp}}/>




Notes:

* If you’re referring to the same tiddler many times, it’s often helpful to use 
the <$tiddler> widget to set the currentTiddler, and then be able to take 
advantage of defaults and omit the tiddler title from widgets like the edit 
widget
* We use a filtered transclusion with the set widget to create the text value 
for the new tiddler by taking the value entered by the user and adding a prefix 
and suffix

Best wishes

Jeremy.


> On 9 Aug 2018, at 17:21, Ste Wilson  wrote:
> 
> Update,
> it seems to be the katex plugin causing the problem as, instead of the 
> variable being placed in the field between double brackets so it can be 
> displayed by the katex plugin the field contains ParseError: KaTeX parse 
> error: $ within math mode.
> even thought the data going into the field is valid for Katex.
> 
> Get the same error with \define convalue() 
> $${{$:/state/NewTiddlerForm!!value}}$$ as \define convalue() <$latex 
> text="{{$:/state/NewTiddlerForm!!value}}">
> 
> My code here:
> \define convalue() <$latex text="{{$:/state/NewTiddlerForm!!value}}">
> 
> \define actions()
> <$wikify name="valuetext" text=<>>
> <$action-setfield $tiddler="$:/state/NewTiddlerForm" $field="valuetext" 
> $value=<> />
> 
> \end
> 
> 
> !Title
> <$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTiddlerForm' 
> field='name_temp' placeholder='Life the Universe and Everything' />
> 
> !!Value of Constant
> 
> <$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTiddlerForm' 
> field='value'/>
> 
> <$button>Create Tiddler
> <>
> <$action-setfield $tiddler={{$:/state/NewTiddlerForm!!name_temp}} 
> text={{$:/state/NewTiddlerForm!!text}} 
> value={{$:/state/NewTiddlerForm!!valuetext}}/>
> <$action-navigate $to={{$:/state/NewTiddlerForm!!name_temp}}/>
> <$action-setfield $tiddler='$:/state/NewTiddlerForm' name_temp='' text='' 
> description='' tags=''/>
> 
> 
> 
> 
> On Thursday, 9 August 2018 12:11:32 UTC+1, Ste Wilson wrote:
> 
> Hmm, possible bug!
> 
> The above code from FrD works fine in new tiddliwiki and indeed works on 
> tiddlywiki.com  however id doesn't work in my other 
> wikis.
> It must be a plugin thought I.
> Starting with a blank wiki i tested then installed the katex plugin, at which 
> point it fails to send anything to the output field!
> 
> Any thoughts?
> 
> Stephen
> 
> On Wednesday, 1 August 2018 12:49:16 UTC+1, Ste Wilson wrote:
> Thanks for the response. 
> It looks spot on! 
> Thank you!
> 
> 
> -- 
> 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 post to this group, send email to tiddlywiki@googlegroups.com 
> .
> 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/fae270d4-c9b7-4e4a-92f4-5ea09f750e17%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/3A634C41-0284-4969-AD38-62A5ED3A2749%40gmail.com.
For more options, visit https://groups.google.com/d/optout.