mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-11 18:50:28 +00:00
41 lines
1.1 KiB
Plaintext
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
|