It's best experienced - and the tiddler says it better than pasting it here.
Please drag the attached tiddler into https://tiddlywiki.com/ and import.
In the side bar, Click the the Recent tab, and open the tiddler.
\define transclude-inneranchor(tiddler:"",field:"text",mode:"block")<span id={{{ [[$(storyTiddler)$]addsuffix<__tiddler__>encodeuricomponent[]addprefix[#]] }}}><$transclude tiddler=<<__tiddler__>> field=<<__field__>> mode=<<__mode__>>/></span>\end\define transclude-innerlink(tiddler:"")<a href={{{ [[$(storyTiddler)$]addsuffix<__tiddler__>encodeuricomponent[]addprefix[##]] }}}>link to inner-transcluded $tiddler$</a>\end
\define intlink(id:"", link:"TTT", next:"", previous:"", top:"")
!!! <a id="#$id$"> ''$link$''</a><small>
Ā <a href="##$next$">Next</a>
<$reveal type="nomatch" stateTitle="$previous$" text="">
<a href="##$previous$">Previous</a>
</$reveal>
<a href="##$top$">Top</a>
</small>
<style>
body {
Ā counter-reset: section;
}
h3::before {
Ā counter-increment: section;
Ā content: counter(section) ".";
}
</style>
\end
<<intlink Ā id:"s002" link:"Funny Quotes" next:"s003" previous:"s001" top:"s000">>
On 1 Mar 2019, at 12:27, S. S. <sachde...@gmail.com> wrote:
It's best experienced - and the tiddler says it better than pasting it here.
Please drag the attached tiddler into https://tiddlywiki.com/ and import.
In the side bar, Click the the Recent tab, and open the tiddler.
Click the links at the top and within the tiddler, and then please read it right to the very end to understand what is being shown.
Thanks.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/52893c8d-3aa6-4318-923c-ca15237e7bf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Section Names using ID for internal Links.tid>
\define inneranchor(place:"top")
<span id={{{ [[$(storyTiddler)$]addprefix[$place$-of-tiddler-]encodeuricomponent[]addprefix[#]] }}}></span>
\end
\define inner-link(place:"top" name:"Top")
<a href={{{ [[$(storyTiddler)$]addprefix[$place$-of-tiddler-]encodeuricomponent[]addprefix[##]] }}}>$name$</a>
\end
<<inneranchor>>
<<inner-link bottom Bottom>>
\define inneranchor(place:"top")
<span id={{{ [[$(storyTiddler)$]addprefix[$place$-of-tiddler-]encodeuricomponent[]addprefix[#]] }}}></span>
\end
\define inner-link(place:"top" name:"Top")
<a href={{{ [[$(storyTiddler)$]addprefix[$place$-of-tiddler-]encodeuricomponent[]addprefix[##]] }}}>$name$</a>
\end
<<inneranchor bottom>>
<<inner-link>>
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/57b988a5-b91f-416a-96ae-cc090dcdbb16%40googlegroups.com.
<Top and Bottom of Tiddler Template.json>
On my phone, navigating to https://00ss.github.io/documentation/tiddlywiki.html#Internal%20Links%20using%20HTML
and clicking the ID links does rarely lead to the right position in the document. (It did once, I think, but not reproduceable.)
Android 9, Chrome/Opera
All the best,
Thomas
If transclusions create multiple instances of theid
, navigation will take place to the first instance found that satisfies the above criteria.
<a href=<<qualify ##h1>> >Link to My Heading</a>
<h1 id=<<qualify #h1>> > My Heading</h1>
<a href=<<qualify ##h1.1>> >Link to My Heading 1.1</a>
<h1 id=<<qualify #h1.1>> > My Heading h1.1</h1>
<h1 id=<<qualify #Heading-h1>> > <<qualify #Heading-h1>></h1><br><br><br><br><br><br><br><br><br><br>
<h2 id=<<qualify #Heading-h2>> > <<qualify #Heading-h2>></h2><br><br><br><br><br><br><br><br><br><br>
<a href=<<qualify ##Heading-h1>> >Link to My Heading h1</a><br><br>
<a href=<<qualify ##Heading-h2>> >Link to My Heading h2</a>
That is one way to do it, but any html tag that can accept the I'd parameter will work. The anchor could be in <table> for example. The link will jump to the line with the I'd in it. So it could jump to something before your
!heading
Regards
Tony
<p id="#heading-01" />
! My Heading 01
<a id="#heading-02"></a>
! My Heading 02
<section id="#heading-03">
! My Heading 03
More text
</section>