Was this page helpful?

Wiki.Inclusions

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    wiki.Inclusions(templates : bool?) : array

    Get list of pages that form the current inclusion chain.  The first item is the outermost page that is being loaded.  The last item is the current page, unless the current page is a template and templates are excluded (see parameter below).

    Usage Restrictions

    9.02 or later.

    Parameters

    Name Type Description
    templates bool? list template pages as well (default: true)

    Result

    List of page objects

    Samples

      Output

    Get the list of included pages:

    {{ wiki.inclusions() }} 
    [ { api : "http://developer.mindtouch.com/@api/deki/pages/28427", author : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$user", comments : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$pagecomments", contents : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$pagecontents", date : "Fri, 10 Apr 2009 19:32:40 GMT", editsummary : "no wording changes", feed : "http://developer.mindtouch.com/@api/deki/pages/28427/feed", files : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$files", fronturi : "http://developer.mindtouch.com/en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Wiki.Inclusions", id : 28427, ishidden : False, language : nil, mime : "application/x.deki0805+xml", name : "Wiki.Inclusions", namespace : "", parent : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$page", parents : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$parents", path : "en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Wiki.Inclusions", properties : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$pageprops", rating : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$rating", redirect : nil, revision : 3, revisions : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$revisions", subpages : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$subpages", tags : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$pagetags", talkuri : "http://developer.mindtouch.com/Talk:en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Wiki.Inclusions", text : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$pagetext", title : "Wiki.Inclusions", toc : <html><body><span id="page.toc">nil</span></body></html>, unprefixedpath : "en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Wiki.Inclusions", uri : "http://developer.mindtouch.com/en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Wiki.Inclusions", viewcount : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$pageviewcount", xml : "local://17a8dfc237954830a4cab1fd4f9dd575/deki/$pagexml" } ]

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by