WOW thank yo Damon for taking the time to put all this together much 
appreciated

On Saturday, May 2, 2020 at 6:53:21 PM UTC+3, Damon Pritchett wrote:
>
> Hey Tony,
>
> The tabs macro is built into Tiddlywiki so I just used it as is. I just 
> took advantage of it. I borrowed a few things from HCHaase and created some 
> other tiddlers to be used in the tabs macro. Their function is similar to 
> what you've accomplished, just in a different fashion. I don't have a 
> github site or anything so I've just copied the code below. The first 
> snippet is the main tiddler with the tabs macro and tagged ViewTemplate. 
> The other code snippets are each of the tiddlers used in the tab macro.
>
> Here's the main tiddler:
>
> <$list filter="[all[current]tag[Railroads]]" variable="dummy">
> <div style="font-size: 0.9em;">
>
>   <<tabs "[[Railroad Footnotes]] [[Railroad Predecessors]] [[Railroad 
> Successors]] [[Railroad Cross-references]] [[Railroad Status Checkboxes]]" 
> "Railroad Footnotes" "$:/state/rrfootertab" "footertabs">></div>
> </$list>
>
>
> The Railroad Footnotes tiddler simply contains <<showfnotes>> as I use the 
> RefNotes plugin from Mohammad.
>
> Here is the Railroad Predecessors tiddler:
>
> <!-- below is a modified version of HC Haase TOC generic with his reveal 
> widget replaced with a details widget -->
>
>
> <!-- tags heading count and toc-->
> <$list filter='[tag<currentTiddler>limit[1]]'  variable=null>
> <$count filter='[tag<currentTiddler>]'/> Predecessors of: ''<
> <currentTiddler>>''
> <br>
> </$list>
> <$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> 
> sort="sort[title]" />
>
> Here is the Railroad Successors tiddler:
>
> <!-- use kin filter to find succession of tags -->
> <$list filter='[all[current]title<currentTiddler>
> kin:tags:from[]!is[system]!title[Railroads]!title<currentTiddler>limit[1]]' 
> variable=null>
> Successors to ''<<currentTiddler>>'':
> <br>
> </$list>
> <ul>
>   <$list filter="[title<currentTiddler>
> kin:tags:from[]!is[system]!title[Railroads]!title<currentTiddler>]"> ->
>     <$link><$view field="title"/>
>     </$link>
>   </$list>
> </ul>
>
> Railroad Cross-References:
>
> <!-- backlinks heading count and toc-->
> <$list filter='[all[current]backlinks[]limit[1]]' variable=null>
> <$count filter='[all[current]backlinks[]]'/> Link(s) to ''<
> <currentTiddler>>''
> <br>
> </$list>
> <ul>
> <$list 
> filter="[!is[system]all[current]backlinks[]!tag[hide]!tag[outlines]sort[title]]
>  
> -[is[current]]">
>   <li>
>   <$link>
>    <$view field="title"/>
>   </$link>
>   <$appear show="{{$:/core/images/unfold-button}}" 
> hide="{{$:/core/images/fold-button}}">
>     <$transclude field="text" mode="block" />
>   </$appear>
>   </li>
> </$list>
> </ul>
>
>
> <!-- list fields in this tiddler heading count and toc-->
> <$list filter='[list{!!title}limit[1]]' variable=null>
>  ''<<currentTiddler>>'' is listing
> <br>
> </$list>
> <<list-links filter:"[list{!!title}]">>
>
>
> <!-- listed in other tiddlers heading count and toc-->
> <$list filter='[all[current]listed[]!is[system]limit[1]]' variable=null>
>  ''<<currentTiddler>>'' is listed in
> <br>
> </$list>
> <<list-links filter:"[all[current]listed[]!is[system]]">>
>
> Status Checkboxes:
>
> <!-- Check boxes to set certain fields to yes or no -->
> <table class="table-borderless">
>   <tr>
>     <td><$checkbox field="summaryinfo" checked="yes" unchecked="no" 
> default="no">Summary?</$checkbox></td>
>     <td><$checkbox field="psearch" checked="yes" unchecked="no" 
> default="no">Prelim Search?</$checkbox></td>
>     <td><$checkbox field="fsearch" checked="yes" unchecked="no" 
> default="no">Final Search?</$checkbox></td>
>     <td><$checkbox field="routemap" checked="yes" unchecked="no" 
> default="no">Map?</$checkbox></td>
>     <td><$checkbox field="textdraft" checked="yes" unchecked="no" 
> default="no">Draft?</$checkbox></td>
>     <td><$checkbox field="textfinal" checked="yes" unchecked="no" 
> default="no">Final?</$checkbox></td>
>     <td> </td>
>     <td> </td>
>     <td> </td>
>   </tr>
>   <tr>
>     <td><$macrocall $name=toggle-in-field tiddler=<<currentTiddler>> 
> field=rrfield item=Steam label=Steam /></td>
>     <td><$macrocall $name=toggle-in-field tiddler=<<currentTiddler>> 
> field=rrfield item=Paper label=Paper /></td>
>     <td><$macrocall $name=toggle-in-field tiddler=<<currentTiddler>> 
> field=rrfield item=Constructed label=Constructed /></td>
>     <td><$macrocall $name=toggle-in-field tiddler=<<currentTiddler>> 
> field=rrfield item=Street label=Street /></td>
>     <td><$macrocall $name=toggle-in-field tiddler=<<currentTiddler>> 
> field=rrfield item=Interurban label=Interurban /></td>
>     <td><$macrocall $name=toggle-in-field tiddler=<<currentTiddler>> 
> field=rrfield item=Depot label=Depot /></td>
>     <td><$macrocall $name=toggle-in-field tiddler=<<currentTiddler>> 
> field=rrfield item=Terminal label=Terminal /></td>
>     <td><$macrocall $name=toggle-in-field tiddler=<<currentTiddler>> 
> field=rrfield item=Bridge label=Bridge /></td>
>     <td><$macrocall $name=toggle-in-field tiddler=<<currentTiddler>> 
> field=rrfield item=Absent label=Absent /></td>
>   </tr>
> </table>
>
> Take a look at the code and please comment if you notice anything that 
> could be improved or if there are any issues that I haven't come across yet 
> (that also goes for any other folks out there - comments welcome). I'm 
> pretty much a newbie myself, so I know I'm not doing things in the most 
> efficient way.
>
> Cheers,
>
> Damon
>
>
>
>
>
>
>
>
>
>
>
> On Friday, May 1, 2020 at 11:55:51 PM UTC-7, Tony K wrote:
>>
>> Hello Damon 
>>
>> Thanks for the kind words 
>>
>> I'm totally new to this and I don't even know what tab macro are 😁 
>>
>> Do you share yours somewhere? If so I'd be interested in taking a look 
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/54d8c17e-2da0-4f36-9b23-e40ed9b8b7e0%40googlegroups.com.

Reply via email to