Skip navigation links
info.bliki.wiki.template

Class NSE

    • Constructor Detail

      • NSE

        public NSE()
    • Method Detail

      • parseFunction

        public String parseFunction(List<String> list,
                                    IWikiModel model,
                                    char[] src,
                                    int beginIndex,
                                    int endIndex,
                                    boolean isSubst)
        Description copied from class: AbstractTemplateFunction
        Parse a template function (like for example {{ #if: ... }}). The result is also a text string in Wikipedia syntax notation which will be parsed again (recursively) in the TemplateParser step.
        Specified by:
        parseFunction in interface ITemplateFunction
        Overrides:
        parseFunction in class NS
        Parameters:
        list - the parser function arguments (extracted from the wiki text by splitting the string at the pipe symbol ´|´)
        model - the wiki model
        src - the array of the current Wikipedia source text.
        beginIndex - the beginning index, inclusive.
        endIndex - the ending index, exclusive.
        isSubst - if true the template function was called from subst or safesubst function and the arguments of the function are typically not parsed recursively.
        Returns:
        the result string of this template function or null if the parsing fails or isn't valid.
        See Also:
        TemplateParser#parseTemplate(StringBuffer)

Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.