mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 19:47:20 +00:00
Fix since-version docs macro to make extra information optional
This commit is contained in:
parent
98cd4a09b4
commit
fb9459a0dd
@ -9,6 +9,6 @@ type: text/vnd.tiddlywiki
|
|||||||
<$link to={{{ [<__version__>addprefix[Release ]] }}} class="doc-from-version">{{$:/core/images/warning}} New in: <$text text=<<__version__>>/></$link>
|
<$link to={{{ [<__version__>addprefix[Release ]] }}} class="doc-from-version">{{$:/core/images/warning}} New in: <$text text=<<__version__>>/></$link>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\define .deprecated-since(version, superseded:"TODO-Link")
|
\define .deprecated-since(version, superseded:"")
|
||||||
<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Deprecated since: <$text text=<<__version__>>/></$link> (see <$link to=<<__superseded__>>><$text text=<<__superseded__>>/></$link>)
|
<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Deprecated from v<$text text=<<__version__>>/></$link> <%if [<__superseded__>else[]!match[]] %>(see <$link to=<<__superseded__>>><$text text=<<__superseded__>>/></$link>)<%endif%>
|
||||||
\end
|
\end
|
||||||
|
@ -9,7 +9,7 @@ type: text/vnd.tiddlywiki
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
\define .deprecated-since(version, superseded:"TODO-Link")
|
\define .deprecated-since(version, superseded:"TODO-Link")
|
||||||
<$button to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Obsolète depuis<<:>> $version$ </$button>. Utilisez [[$superseded$]] à la place
|
<$button to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">{{$:/core/images/warning}} Obsolète depuis<<:>> $version$ </$button>. <%if [<__superseded__>else[]!match[]] %>Utilisez [[$superseded$]] à la place<%endif%>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
<pre><$view field="text"/></pre>
|
<pre><$view field="text"/></pre>
|
@ -26,13 +26,15 @@ type: text/vnd.tiddlywiki
|
|||||||
<% endif %>
|
<% endif %>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure .deprecated-since(version, superseded:"TODO-Link")
|
\procedure .deprecated-since(version, superseded:"")
|
||||||
<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">
|
<$link to="Deprecated - What does it mean" class="doc-deprecated-version tc-btn-invisible">
|
||||||
{{$:/core/images/warning}}
|
{{$:/core/images/warning}}
|
||||||
<span class="tc-tiny-gap">Deprecated since:</span>
|
<span class="tc-tiny-gap">Deprecated from </span>
|
||||||
<$text text=<<version>>/>
|
v<$text text=<<version>>/>
|
||||||
</$link>
|
</$link>
|
||||||
<span class="tc-tiny-gap-left">
|
<%if [<superseded>else[]!match[]] %>
|
||||||
|
<span class="tc-tiny-gap-left">
|
||||||
(see <$link class="tc-tiny-gap-left" to=<<superseded>>><$text text=<<superseded>>/></$link>)
|
(see <$link class="tc-tiny-gap-left" to=<<superseded>>><$text text=<<superseded>>/></$link>)
|
||||||
</span>
|
</span>
|
||||||
|
<%endif%>
|
||||||
\end
|
\end
|
||||||
|
Loading…
Reference in New Issue
Block a user