1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 18:40:28 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/_tw_shared/doc-utilities/version-macros.tid
Mario Pietsch 59548f066a
[DOCS] Update dev edition to use shared utilities (#8803)
* prepare dev-edition to use _tw_shared doc utilities

* prepare for future dev-edition "private" styles

* move tw5.com documentation utility files to _tw_shared directory
2024-12-05 12:05:17 +00:00

41 lines
1.1 KiB
Plaintext

code-body: yes
created: 20161008085627406
modified: 20240229155633000
tags: $:/tags/Macro
title: $:/editions/tw5.com/version-macros
type: text/vnd.tiddlywiki
\whitespace trim
\function tf.from-version-reference() 5.3.0
\procedure .from-version-template(class, text)
<$link to={{{ [<version>addprefix[Release ]] }}} class=<<class>> >
<span class="tc-tiny-gap-right">
{{$:/core/images/info-button}}
</span>
<<text>><<version>>
</$link>
\end
\procedure .from-version(version)
<%if [<version>compare:version:gteq<tf.from-version-reference>] %>
<<.from-version-template "doc-from-version doc-from-version-new" "New in v">>
<%else%>
<<.from-version-template "doc-from-version" "Introduced in v">>
<%endif%>
\end
\procedure .deprecated-since(version, superseded:"")
<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">
{{$:/core/images/warning}}
<span class="tc-tiny-gap">Deprecated from </span>
v<$text text=<<version>>/>
</$link>
<%if [<superseded>else[]!match[]] %>
<span class="tc-tiny-gap-left">
(see <$link class="tc-tiny-gap-left" to=<<superseded>>><$text text=<<superseded>>/></$link>)
</span>
<%endif%>
\end