Your Search Results

    Template:SectionOnPage

    <%
    // Create a link to a specific section on a page.
    //
    // Parameters:
    //
    // $0   Page path
    // $1   Section name
    
    var lang = env.locale;
    var text = "";
    var page = wiki.getPage($0);
    var title = page.title;
    
    var url = $0 + "#" + $1;
    
    url = Web.spacesToUnderscores(url);
    
    switch(lang) {
        default:
            text = '"<a href="' + url + '">' + $1 + '</a>" in <a href="' + $0 + '">' + title + '</a>';
            break;
    }
    %>
    <%-text%>
    Search for pages that use Template:SectionOnPage to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Contributors to this page: Sheppy
    Last updated by: Sheppy,