This is neat!  One small footnote, in case someone else is as sloppy
as I have been when combining substitution and transclusion
(that is, when using <<tiddler with: >>):

In order for Eric's code to find all instances of transclusion, it
seems to be important to include a space after the colon, as in:
<<tiddler myTiddler with: myOption>>

cmari

On Jul 14, 2:05 am, Alex Hough <r.a.ho...@googlemail.com> wrote:
> Thanks Mark and Eric.
> I'll have a play with both of these.
>
> ALex
>
> 2009/7/14 Eric Shulman <elsdes...@gmail.com>:
>
>
>
>
>
> >> 'Referneces' in the toolbar shows what links to a tiddler. I wondered
> >> if there was a way of showing where a tiddler was transcluded to.
>
> > Try this bit of 'pure' HTML:
> > ------------------------
> > <html><hide linebreaks>
> > <a href="javascript:;" title="list tiddlers that have transcluded this
> > tiddler" onclick="
> >        var t=story.findContainingTiddler(this).getAttribute('tiddler');
> >        var m=new RegExp('\<\<tiddler (\\[\\[)?'+t+'(\\]\\])?( with: .*)?\>
> > \>','');
> >        var s=store.search(m,'text','excludeLists');
> >        var out=[];
> >        if (!s.length) out.push('no matching tiddlers');
> >        for (var i=0;i<s.length;i++) out.push(s[i].title);
> >        var p=Popup.create(this);
> >        var d=createTiddlyElement(p,'div');
> >        var s=d.style;
> >        s.padding='2px'; s.textAlignment='left';
> >        wikify(out.join('\n'),d);
> >        Popup.show();
> >        event.cancelBubble=true;
> >        if (event.stopPropagation) event.stopPropagation();
> >        return false;
> > ">transcluded by</a></html>
> > ------------------------
>
> > enjoy,
> > -e
>
> --http://www.multiurl.com/g/64
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to