Was this page helpful?

Wiki.AnyPage

    wiki.anypage(query : str, seconds : num? , max : num? , linkonly : bool?, titlestyle : str?) : xml
    

    Show the contents of a random page selected from the query's result set.

    Usage Restrictions

    1.8.2 or later

    Parameters

    Name Type Description
    query str The query string.
    seconds num (optional, default: 3600) Interval in seconds for selecting another page
    max num (optional, default: 100) Max query results
    linkonly bool (optional, default: false) link to the page
    titlestyle str (optional, default: "display: none;") Style for page title

    Result

    The query's result set in xml format

    Samples

      Output

    To find the query's result set:

    {{wiki.anypage("string") }} 

     

    Value Field
    Table of Contents
    1. 1. Type
    public string Value;
    String value of Xml node.

    Type

    string

    To find the query's result set:

    {{wiki.anypage("string", 5) }} 

     

    String.ToLowerFirst
    string.ToLowerFirst(text : str) : str
    

    Convert first character in string to lowercase.

    Usage Restrictions

    1.9.1 or later

    Parameters

    Name Type Description
    text
    str The string value.

    Result

    A string of the original, but the first character as lower case.

    Samples


    Output

    To turn a string's first character into lower case:

    {{ string.tolowerfirst("HELLO WORLD") }} 

     

    hELLO WORLD

    To find the query's result set:

    {{wiki.anypage("string", 5, 2) }} 

     

    String.EndsWith
    string.EndsWith(first : str, second : str) : bool

    Check if the first string ends with the second string.

    Usage Restrictions

    1.9.1 or later.

    Parameters

    Name Type Description
    first
    str The first string value.
    second
    str
    The second string value.

    Result

    True if the first string ends with the second string.

    Samples


    Output

    To check if one string ends with another:

    {{ string.EndsWith("hello world", "world") }} 

    true

    To find the query's result set:

    {{wiki.anypage("string", 5, 2, true) }} 

     

    String.EndsWith

     

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

    Copyright © 2011 MindTouch, Inc. Powered by