1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-15 06:14:53 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/system/Sources.tid
Mario Pietsch c2b436371b
Docs: tiddler-info-source - change sources tab to new syntax and add link to pr-creator (#8029)
* tiddler-info-source - change sources tab to new syntax and add link to pr-creator

* remove class from plain text elements as requested
2024-03-10 11:08:00 +00:00

48 lines
1.4 KiB
Plaintext

title: $:/editions/tw5.com/TiddlerInfo/Sources
tags: $:/tags/TiddlerInfo
caption: Sources
code-body: yes
\function static-link-base() [[https://tiddlywiki.com/static/$(title)$.html]substitute[]]
\function github-link-base()
[[https://github.com/Jermolene/TiddlyWiki5/blob/tiddlywiki-com/editions/tw5.com/tiddlers/$(title)$]substitute[]]
\end
\procedure make-static-link()
\whitespace trim
<$set name="title" filter="[<currentTiddler>encodeuricomponent[]encodeuricomponent[]]" select="0">
<a href=<<static-link-base>>
class="tc-tiddlylink-external"
target="_blank"
rel="noopener noreferrer"
>
<$text text=<<static-link-base>>/>
</a>
</$set>
\end
\procedure make-github-link()
<$set name="title" value={{{ [[$:/config/OriginalTiddlerPaths]getindex<currentTiddler>] }}}>
<$set name="title" filter="[<title>encodeuricomponent[]]" select="0">
<a href=<<github-link-base>>
class="tc-tiddlylink-external"
target="_blank"
rel="noopener noreferrer"
>Direct link to <$text text=<<currentTiddler>>/> on github.com</a>
</$set>
</$set>
\end
<$list filter="[all[current]!is[system]!is[shadow]]">
A static HTML representation of this tiddler is available at the URL:
* <<make-static-link>>
Help us to improve the documentation by suggesting changes to this tiddler using the [[TiddlyWiki Docs PR Maker|https://saqimtiaz.github.io/tw5-docs-pr-maker/]]
* <<make-github-link>>
</$list>