Mohammad,
It would take me too much time at present but its a worthy idea. If your
artefacts use html tables, or images etc... you could use the
https://www.w3schools.com/css/css_counters.asp css counters to increment a
reference number using css, However since these may change I would be
inclined to hard code the reference number in a field in the artefact
tiddler, then use a version of the following untested macros;
\define artifact(tiddlername)
<$tiddler tiddler=$tiddlername$>
{{!!caption}}
<$transclude tiddlername=$tiddlername$/>
{{!!reference}}
</$tiddler>
\end
\define artifact-reference(tiddlername)
<$tiddler tiddler=$tiddlername$>
{{!!reference}} {{!!caption}}
</$tiddler>
\end
Thus you would always reference an artifact by Tiddler name,
<<artifact-reference "tiddlername">> and it will return the reference and
caption only of that artifact tiddler, use this in the body of your text.
<<artifact "tiddlername">> and it will show the actual artefact where you
need it.
Other tricks could take this further like setting a standard to number
artefacts by chapter and section rather than generate them on the fly. You
could then use this in the index to say an artefact appears in Chapter N
section N.
Regards
Tony
On Saturday, December 8, 2018 at 3:05:43 AM UTC+11, Mohammad wrote:
>
> Thank you Jeremy, Mark,
>
> I understood with the current situation of TW, what Olegh explained and
> what I was looked for is not easy to attain with simple scripts in TW.
> The CSS-counter may help but it cannot distinguish repeated items like
> references.
>
> I will look in the web to see what other wikis like Mediawiki do and is it
> possible to solve this case at least partially.
>
>
> --Mohammad
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/8dad3fbb-9bdd-4b36-a6b3-93326eb04cee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.