mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-26 10:00:34 +00:00
bbd0f7841b
Thanks to @xcazin for the most excellent suggestion.
21 lines
852 B
Plaintext
21 lines
852 B
Plaintext
title: $:/editions/tw5.com/EditTemplate/Sources
|
|
tags: $:/tags/EditTemplate
|
|
list-after: $:/core/ui/EditTemplate/title
|
|
|
|
\define makeGitHubLink()
|
|
https://github.com/Jermolene/TiddlyWiki5/edit/master/editions/tw5.com/tiddlers/$(githubLink)$
|
|
\end
|
|
\define innerMakeGitHubLink(linkText)
|
|
<$set name="githubLink" value={{$:/config/OriginalTiddlerPaths##$(draftOfTiddler)$}}>
|
|
<a href=<<makeGitHubLink>> class="tw-tiddlylink-external" target="_blank">$linkText$</a>
|
|
</$set>
|
|
\end
|
|
\define outerMakeGitHubLink(linkText)
|
|
<$set name="draftOfTiddler" value={{$(currentTiddler)$!!draft.of}}>
|
|
<<innerMakeGitHubLink "$linkText$">>
|
|
</$set>
|
|
\end
|
|
<div class="tw-improvement-banner">
|
|
{{$:/core/images/star-filled}} Can you help us improve this documentation? [[Find out how|Improving TiddlyWiki Documentation]] to edit <<outerMakeGitHubLink "this tiddler on ~GitHub">>
|
|
</div>
|