Abbreviation list: A proof of concept

56 views
Skip to first unread message

Mohammad

unread,
Dec 6, 2018, 3:09:06 PM12/6/18
to tiddl...@googlegroups.com
Abbreviation list

When you use several abbreviations in a tiddler or wiki, you may need to list all those acronyms somewhere in your tiddler.
To do so, I have developed a short macro uses data tiddlers to store the list of terms plus their full explanation and then list
them in an alphabetical order.

A demo has been given here using TW 5.1.18



The main macro here is

\define abbr-list(indexes, dtiddler:"" title:"Abbreviation")
<h2>$title$</h2>
<table class="table-borderless">
<$list filter="$indexes$ +[sort[]]" variable="item">
<tr>
<td style="color:blue;"><<item>></td>
<td><$view tiddler=<<__dtiddler__>> index=<<item>> /></td>
</tr>
</$list>
</table>
\end
<pre><$view /></pre>




In this demo also the abbr macro from Shiraz plugin (https://kookma.github.io/Shiraz/) has been used.



- Mohammad
Reply all
Reply to author
Forward
0 new messages