2022-10-07 15:57:19 +00:00
|
|
|
code-body: yes
|
2016-10-08 09:05:34 +00:00
|
|
|
created: 20161008085627406
|
2024-03-10 10:36:49 +00:00
|
|
|
modified: 20240229155633000
|
2016-10-08 09:05:34 +00:00
|
|
|
tags: $:/tags/Macro
|
2018-04-24 21:08:20 +00:00
|
|
|
title: $:/editions/tw5.com/version-macros
|
|
|
|
type: text/vnd.tiddlywiki
|
2016-10-08 09:05:34 +00:00
|
|
|
|
2024-03-10 10:36:49 +00:00
|
|
|
\whitespace trim
|
|
|
|
|
|
|
|
\function tf.from-version-reference() 5.3.0
|
2024-02-24 09:26:41 +00:00
|
|
|
|
|
|
|
\procedure .from-version-template(class, text)
|
2024-03-10 10:36:49 +00:00
|
|
|
<$link to={{{ [<version>addprefix[Release ]] }}} class=<<class>> >
|
|
|
|
<span class="tc-tiny-gap-right">
|
|
|
|
{{$:/core/images/info-button}}
|
|
|
|
</span>
|
|
|
|
<<text>><<version>>
|
|
|
|
</$link>
|
2024-02-24 09:26:41 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
\procedure .from-version(version)
|
2024-09-02 15:51:15 +00:00
|
|
|
<%if [<version>compare:version:gteq<tf.from-version-reference>] %>
|
2024-03-10 10:36:49 +00:00
|
|
|
<<.from-version-template "doc-from-version doc-from-version-new" "New in v">>
|
2024-09-02 15:51:15 +00:00
|
|
|
<%else%>
|
2024-03-10 10:36:49 +00:00
|
|
|
<<.from-version-template "doc-from-version" "Introduced in v">>
|
2024-09-02 15:51:15 +00:00
|
|
|
<%endif%>
|
2016-10-08 09:05:34 +00:00
|
|
|
\end
|
2018-04-24 21:08:20 +00:00
|
|
|
|
2024-08-27 14:42:13 +00:00
|
|
|
\procedure .deprecated-since(version, superseded:"")
|
2024-03-10 10:36:49 +00:00
|
|
|
<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">
|
|
|
|
{{$:/core/images/warning}}
|
2024-08-27 14:42:13 +00:00
|
|
|
<span class="tc-tiny-gap">Deprecated from </span>
|
|
|
|
v<$text text=<<version>>/>
|
2024-03-10 10:36:49 +00:00
|
|
|
</$link>
|
2024-08-27 14:42:13 +00:00
|
|
|
<%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%>
|
2018-04-24 21:08:20 +00:00
|
|
|
\end
|