TableCellPage

    Table of contents
    No headers
    /**
     * Table Cell: Page detail
     * Outputs page related information
     */
    var pageId = $id;
    var class = $class;
    var cellPage = $page ?? wiki.getpage(num.cast(pageId));
    
    <td class=("page-detail " .. class)>
        <div class="details">
        <a href=(cellPage.uri)>cellPage.title</a>;
        var parentPath = cellPage.parent.path;
        if (parentPath) {
            <span class="in">
                " " .. wiki.localize("MindTouch.Reports.data.title.in") .. " ";
                <a href=(cellPage.parent.uri)>parentPath</a>;
            </span>
        }
        </div>
    
        var tags = cellPage.tags;
        if (#tags > 0) {
        <div class="tags">
            <span>wiki.localize("MindTouch.Reports.data.title.tags")</span>
            <ul>
                foreach (var tag in tags) {
                    if (__count > 2) {
                        break;
                    }
                    <li><a href=("Special:Tags?tag=" .. tag.name)>tag.name</a></li>
                }
            </ul>
        </div>
        }
    </td>
    
    Tag page (Edit tags)
    • No tags
    Page statistics
    702 view(s), 1 edit(s) and 1187 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments