[tw] Re: Alias (via AliasPlugin) to make shortcuts for HTML codes, possible?

2012-08-24 Thread G.J.Robert
Wow Dear Lord it's working~ It never occurred to me to work around this way.

Thanks a lot Tobias, you guys rock~ :D

Tobias Beer於 2012年8月23日星期四UTC+8下午4時29分15秒寫道:
>
> Would putting the html wrapper in your alias definition work?
>
> <>
>
> Cheers, Tobias.
>
> Am Donnerstag, 23. August 2012 04:06:04 UTC+2 schrieb G.J.Robert:
>>
>> Hi there,
>>
>> I'm trying to play with the capabilities of AliasPlugin [1]. So far, I 
>> have been successful to make aliases as shortcuts to smileys like
>>
>>> <> (where the tiddler smile is an uploaded image 
>>> via TiddlySpace)
>>>
>> or as shortcuts to simplify complex syntaxes like
>>
>>> <> (prerequisite: 
>>> NestedSlidersPlugin; where the "position:relative" is a trick to make the 
>>> floatingPanel right under the button on TiddlySpace)
>>>
>>
>> I was trying to extend the usage of alias shortcuts further by defining 
>> aliases to render HTML snippets. For example, as with a div with an image 
>> as its background, the HTML code would be something like:
>>
>>> http://domain.com/image.jpg); width: 
>>> XXXpx; height: YYYpx;>abracadabra
>>>
>> and I hope to use an alias
>>
>>> <>
>>>
>> so that I can just type
>>
>>> >
>>>
>> to create the same div as above.
>>
>> However, in my experiment, when I put this <> in the 
>> ... statement block (with HTMLFormattingPlugin installed, for 
>> TiddlyWiki syntax to be mixed within the HTML block), the alias just throws 
>> out the text of http://domain.com/image.jpg); width: XXXpx; height: 
>> YYYpx;>abracadabra (with the URL wikified!), but not making the 
>> real div element.
>>
>> I've also tried to make a simpler alias to insert 0%, and again, 
>> only the literal Parameter input is rendered.
>>
>> *Is it ever possible to make aliases substituting working HTML elements 
>> instead of displaying the literal codes?*
>>
>> (I have also tried to make aliases as shortcuts to insert something like 
>> "rowspan='%0'" to help simplify the syntax of MediaWikiTableFormatterPlugin 
>> [2], also in vain. I guess it's because the aliases cannot be rendered 
>> *before* the formatters?)
>>
>> [1] http://www.tiddlytools.com/#AliasPlugin
>> [2] http://devpad.tiddlyspot.com/#MediaWikiTableFormatterPlugin
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/Kl_IdEl5IvEJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Alias (via AliasPlugin) to make shortcuts for HTML codes, possible?

2012-08-23 Thread Tobias Beer
Would putting the html wrapper in your alias definition work?

<>

Cheers, Tobias.

Am Donnerstag, 23. August 2012 04:06:04 UTC+2 schrieb G.J.Robert:
>
> Hi there,
>
> I'm trying to play with the capabilities of AliasPlugin [1]. So far, I 
> have been successful to make aliases as shortcuts to smileys like
>
>> <> (where the tiddler smile is an uploaded image 
>> via TiddlySpace)
>>
> or as shortcuts to simplify complex syntaxes like
>
>> <> (prerequisite: 
>> NestedSlidersPlugin; where the "position:relative" is a trick to make the 
>> floatingPanel right under the button on TiddlySpace)
>>
>
> I was trying to extend the usage of alias shortcuts further by defining 
> aliases to render HTML snippets. For example, as with a div with an image 
> as its background, the HTML code would be something like:
>
>> http://domain.com/image.jpg); width: 
>> XXXpx; height: YYYpx;>abracadabra
>>
> and I hope to use an alias
>
>> <>
>>
> so that I can just type
>
>> >
>>
> to create the same div as above.
>
> However, in my experiment, when I put this <> in the 
> ... statement block (with HTMLFormattingPlugin installed, for 
> TiddlyWiki syntax to be mixed within the HTML block), the alias just throws 
> out the text of http://domain.com/image.jpg); width: XXXpx; height: 
> YYYpx;>abracadabra (with the URL wikified!), but not making the 
> real div element.
>
> I've also tried to make a simpler alias to insert 0%, and again, 
> only the literal Parameter input is rendered.
>
> *Is it ever possible to make aliases substituting working HTML elements 
> instead of displaying the literal codes?*
>
> (I have also tried to make aliases as shortcuts to insert something like 
> "rowspan='%0'" to help simplify the syntax of MediaWikiTableFormatterPlugin 
> [2], also in vain. I guess it's because the aliases cannot be rendered 
> *before* the formatters?)
>
> [1] http://www.tiddlytools.com/#AliasPlugin
> [2] http://devpad.tiddlyspot.com/#MediaWikiTableFormatterPlugin
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/8i_SgQMYeFwJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.