My last submission ;-) Next....
-------------------------------------
<script>
        var out=['| !Script by Shulman, Mårtensson & Gray |\>|']; var
who='';
        var tids=store.getTiddlers('modifier');
        for (i=0; i<tids.length; i++) { var t=tids[i];
                if (who!=t.modifier) {
                        who=t.modifier;
                        out.push('| modified by """'+who+'""": |
\>|');
                }
                out.push('|[['+t.title+']]|'+t.modified.formatString
('YYYY.0MM.0DD-DDD 0hh:0mm:0ss')+" |"+'');
        }
        return out.join('\n');
</script>
---------------------------------------

Morris

On Nov 10, 8:01 pm, Måns <[email protected]> wrote:
> Thanks Morris - I didn't know that..
> So taught by Alex H's thread: (prevent wikification in a 
> script)http://groups.google.dk/group/tiddlywiki/browse_thread/thread/86dcc6f...
> I've added three double quotes on each side of '+who+' to prevent
> wikification of usernames:
>
>                         out.push('by """'+who+'""":');
>                 }
>                 out.push('*[['+t.title+']] '+t.modified.formatString
> ('YYYY.0MM.0DD - DDD 0hh:0mm:0ss')+'');
>
> The opposite solution (always to wikify/link to a tiddler with
> username as title) would be something like:
>
>                out.push('by [['+who+']]:');
>                 }
>                 out.push('*[['+t.title+']] '+t.modified.formatString
> ('YYYY.0MM.0DD - DDD 0hh:0mm:0ss')+'');
>
> Regards Måns Mårtensson
>
> On 10 Nov., 05:46, Morris Gray <[email protected]> wrote:
>
> > You might like to try:
>
> > out.push('*[['+t.title+']] '+t.modified.formatString('YYYY.0MM.0DD -
> > DDD 0hh:0mm:0ss')+'');
>
> > This will make it a bit more tidy.
>
> >  Morris
>
> > On Nov 9, 11:51 pm, Måns <[email protected]> wrote:
>
> > > Hi Gibson
>
> > > try:
> > > out.push('*[['+t.title+']]'+t.modified+'');
>
> > > regards Måns Mårtensson
>
> > > On 9 Nov., 10:05, Gibson <[email protected]> wrote:
>
> > > > Hi,
>
> > > > Thanks for that - it's great for getting the "who" part :)
>
> > > > Can you tell me how I'd add the date at the side of the output line
> > > > out.push('*[['+t.title+']]');  ?
>
> > > > Thanks again,
> > > > -G-
>
> > > > On Nov 6, 8:27 pm, Måns <[email protected]> wrote:
>
> > > > > Hi Gibson
>
> > > > > Try
>
> > > > > <script>
> > > > >         var out=[]; var who='';
> > > > >         var tids=store.getTiddlers('modifier');
> > > > >         for (i=0; i<tids.length; i++) { var t=tids[i];
> > > > >                 if (who!=t.modifier) {
> > > > >                         who=t.modifier;
> > > > >                         out.push('by '+who+':');
> > > > >                 }
> > > > >                 out.push('*[['+t.title+']]');
> > > > >         }
> > > > >         return out.join('\n');
> > > > > </script>
>
> > > > > Regards Måns Mårtensson
>
> > > > > On 6 Nov., 16:13, Gibson <[email protected]> wrote:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to