tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Tapestry > Since and Deprecated User Macros
Date Fri, 01 Oct 2010 23:08:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/12/_/styles/combined.css?spaceKey=TAPESTRY&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/TAPESTRY/Since+and+Deprecated+User+Macros">Since
and Deprecated User Macros</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~uli">Ulrich
Stärk</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >|{noformat}{deprecated}This was removed
in 5.2{deprecated}{noformat}|{deprecated}This was removed in 5.2{deprecated}| <br>|{noformat}{deprecated:since=5.2}This
was removed in 5.2{deprecated} And this is still there.{noformat}|{deprecated:since=5.2}This
was removed in 5.2{deprecated} And this is still there.| <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">|{noformat}{since:since=5.2}{since}{noformat}|{since:since=5.2}{since}|
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">|{noformat}{deprecated:since=5.2}{deprecated}{noformat}|{deprecated:since=5.2}{deprecated}|
<br></td></tr>
        </table>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <p>We have two user macros to mark deprecated or newly added features: {<tt>since</tt>}
and {<tt>deprecated</tt>}. Both aren't optimal (we can still style them if we
see the need) and don't work within tables or similar structures (maybe the versions without
any parameters do, I haven't tried).</p>

<h2><a name="SinceandDeprecatedUserMacros-Thesincemacro"></a>The since macro</h2>

<p>Examples:</p>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<td class='confluenceTd'><div class="preformatted panel" style="border-width: 1px;"><div
class="preformattedContent panelContent">
<pre>{since}This got added in 5.2{since}</pre>
</div></div></td>
<td class='confluenceTd'>

<div style="border-right: 20px solid #E0EFFF;border-left: 20px solid #E0EFFF;"><p>This
got added in 5.2</p></div></td>
</tr>
<tr>
<td class='confluenceTd'><div class="preformatted panel" style="border-width: 1px;"><div
class="preformattedContent panelContent">
<pre>{since:since=5.2}This got added in 5.2{since} And this was always there.</pre>
</div></div></td>
<td class='confluenceTd'>

<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16"
height="16" align="absmiddle" alt="" border="0"></td><td><b>Added in
5.2</b><br /></td></tr></table></div>
<div style="border-right: 20px solid #E0EFFF;border-left: 20px solid #E0EFFF;"><p>This
got added in 5.2</p></div> And this was always there.</td>
</tr>
<tr>
<td class='confluenceTd'><div class="preformatted panel" style="border-width: 1px;"><div
class="preformattedContent panelContent">
<pre>{since:since=5.2}{since}</pre>
</div></div></td>
<td class='confluenceTd'>

<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/information.gif" width="16"
height="16" align="absmiddle" alt="" border="0"></td><td><b>Added in
5.2</b><br /></td></tr></table></div>
<div style="border-right: 20px solid #E0EFFF;border-left: 20px solid #E0EFFF;"></div></td>
</tr>
</tbody></table>
</div>


<h2><a name="SinceandDeprecatedUserMacros-Thedeprecatedmacro"></a>The deprecated
macro</h2>

<p>Examples:</p>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<td class='confluenceTd'><div class="preformatted panel" style="border-width: 1px;"><div
class="preformattedContent panelContent">
<pre>{deprecated}This was removed in 5.2{deprecated}</pre>
</div></div></td>
<td class='confluenceTd'>

<div style="border-right: 20px solid #ffcccc;border-left: 20px solid #ffcccc;"><p>This
was removed in 5.2</p></div></td>
</tr>
<tr>
<td class='confluenceTd'><div class="preformatted panel" style="border-width: 1px;"><div
class="preformattedContent panelContent">
<pre>{deprecated:since=5.2}This was removed in 5.2{deprecated} And this is still there.</pre>
</div></div></td>
<td class='confluenceTd'>

<div class='panelMacro'><table class='warningMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/forbidden.gif" width="16"
height="16" align="absmiddle" alt="" border="0"></td><td><b>Deprecated
since 5.2</b><br /></td></tr></table></div>
<div style="border-right: 20px solid #ffcccc;border-left: 20px solid #ffcccc;"><p>This
was removed in 5.2</p></div> And this is still there.</td>
</tr>
<tr>
<td class='confluenceTd'><div class="preformatted panel" style="border-width: 1px;"><div
class="preformattedContent panelContent">
<pre>{deprecated:since=5.2}{deprecated}</pre>
</div></div></td>
<td class='confluenceTd'>

<div class='panelMacro'><table class='warningMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/forbidden.gif" width="16"
height="16" align="absmiddle" alt="" border="0"></td><td><b>Deprecated
since 5.2</b><br /></td></tr></table></div>
<div style="border-right: 20px solid #ffcccc;border-left: 20px solid #ffcccc;"></div></td>
</tr>
</tbody></table>
</div>

    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/TAPESTRY/Since+and+Deprecated+User+Macros">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=23339538&revisedVersion=2&originalVersion=1">View
Changes</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message