History Iterator Tag

Aus Earthdawn-Wiki.v2
Version vom 22. Oktober 2024, 19:36 Uhr von Root (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Iterates through the change history of the page. The "current page" always becomes the particular version of the page currently in iteration. ---- ====Usage==== <wiki:HistoryIterator id="<variable name>"> ; : ''HTML or JSP'' </wiki:HistoryIterator> ====Parameters==== ; '''id''' : Name of the variable to create. ====Example==== <pre><code> <table> <wiki:HistoryIterator id="currentPage"> <tr> <td>…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

Iterates through the change history of the page. The "current page" always becomes the particular version of the page currently in iteration.


Usage

<wiki:HistoryIterator id="<variable name>">

HTML or JSP

</wiki:HistoryIterator>

Parameters

id
Name of the variable to create.

Example

<code>
<table>
    <wiki:HistoryIterator id="currentPage">
        <tr>
            <td>
                 <wiki:LinkTo version="<%=Integer.toString(currentPage.getVersion())%>">
                      <wiki:PageVersion/>
                 </wiki:LinkTo>
            </td>
            <td>
                 <wiki:PageDate/>
            </td>
            <td><wiki:Author /></td>
            <td><wiki:PageSize /></td>
            <wiki:PageType type="page">
                 <td>
                     <% if( currentPage.getVersion() > 1 ) { %>
                     <wiki:DiffLink version="<%=Integer.toString(currentPage.getVersion())%>" 
                                    newVersion="<%=Integer.toString(currentPage.getVersion()-1)%>">
                        from version <%=currentPage.getVersion()-1%> to <%=currentPage.getVersion()%>
                     </wiki:DiffLink>
                     <% } %>
                 </td>
             </wiki:PageType>
        </tr>
    </wiki:HistoryIterator>
</table>
</code>