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-03-10 10:36:49 +00:00
|
|
|
<% 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 %>
|
2016-10-08 09:05:34 +00:00
|
|
|
\end
|
2018-04-24 21:08:20 +00:00
|
|
|
|
2024-03-10 10:36:49 +00:00
|
|
|
\procedure .deprecated-since(version, superseded:"TODO-Link")
|
|
|
|
<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">
|
|
|
|
{{$:/core/images/warning}}
|
|
|
|
<span class="tc-tiny-gap">Deprecated since:</span>
|
|
|
|
<$text text=<<version>>/>
|
|
|
|
</$link>
|
|
|
|
<span class="tc-tiny-gap-left">
|
|
|
|
(see <$link class="tc-tiny-gap-left" to=<<superseded>>><$text text=<<superseded>>/></$link>)
|
|
|
|
</span>
|
2018-04-24 21:08:20 +00:00
|
|
|
\end
|