Hi!
Thank you so much for your suggestion! I'll work on it.
Meanwhile what remains is that if I want to specify a range of tiddlers
among the articles to quote, for example I want to refer to Article X to
Article Y, how should I tell forEachTiddler to grab the specified range?
I would imagine to use the "script" clause in forEachTiddler to get the
start point X and final article Y into the function, and maybe a loop of
"for (n=x; n>y; n++)..." to process each one, and return the whole bunch of
tiddlers to be written in the output, but I have difficulty to figure out
the right code...
whatever於 2012年12月28日星期五UTC+8下午11時11分44秒寫道:
>
> Hi!
>
> <<forEachTiddler where 'tiddler.tags.contains("yourTag")' sortBy
> 'tiddler.title' ascending write '"\+\+\+["+tiddler.title.replace(/
> CC§/, "")+"]...<<tiddler "+tiddler.title+">\>===\n"'>>
>
> That should do it, I think. You'll have to check how the TW sorts the
> XX-1 tiddlers. You might also have to potentially escape "") like
> \"\").
> w
>
> On 27 dec., 15:48, "G.J.Robert" <[email protected]> wrote:
> > Hi, I'm editing a wiki for my legal study notebook. I have copied
> various
> > statutes and separate them into tiddlers by each article/clause. And I
> > often use AliasPlugin, NestedSlidersPlugin and <<tiddler>> transclusion
> to
> > make inline popups to refer to relevant articles in my notes. Here is a
> > problem I hope to resolve: how to refer to a range of articles in just
> one
> > macro call?
> >
> > ex. For a certain issue I would like to refer to §73 to §85 of our Civil
> > Code, and I have all the articles with numbers as tiddler titles in
> place,
> > from CC§1 to CC§XXXX. Now, how do I write a ForEachTiddler macro call to
> > transclude §73 to §85 at once? i.e. I hope to have the generated output
> > written as sth. like
> >
> > +++[73]...<<tiddler CC§73>>===
> > +++[74]...<<tiddler CC§74>>===
> > +++[75]...<<tiddler CC§75>>===
> > +++[76]...<<tiddler CC§76>>===
> > ...
> > +++[85]...<<tiddler CC§85>>===
> >
> > to get all the sliders as references.
> >
> > Mind if I ask, because I'm very bad at coding and not sure how to get
> the
> > right array from the titles of tiddlers to make an array and use some
> kind
> > of loop to grab the range I want. I have tried a couple of times in vain
> so
> > decided to seek for help. And also, I may not be able to understand and
> use
> > the syntax of ForEachTiddler macro correctly.
> >
> > Any hints/tips? Thanks!
> >
> > ----
> > More advanced scenario: if there are certain newly inserted articles
> named
> > as sth like CC§75-1, CC§75-2 after §75 and before §76, can these be
> sorted
> > correctly and included in the range too?
> >
> > +++[73]...<<tiddler CC§73>>===
> > +++[74]...<<tiddler CC§74>>===
> > +++[75]...<<tiddler CC§75>>===
> > +++[73]...<<tiddler CC§75-1>>===
> > +++[73]...<<tiddler CC§75-2>>===
> > +++[76]...<<tiddler CC§76>>===
> > ...
> > +++[85]...<<tiddler CC§85>>===
> >
> > I've heard that in Germany or other countries inserted articles are
> > numbered using alphabets like 75a, 75b, but unfortunately we use -1, -2,
> -3
> > in our country...
>
--
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/-/yQfVQTKVvZsJ.
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.