info.bliki.wiki.template.Subst Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bliki-core Show documentation
Show all versions of bliki-core Show documentation
This is the core project.
The newest version!
package info.bliki.wiki.template;
import info.bliki.wiki.model.IWikiModel;
import java.util.List;
/**
* A template parser function for {{subst: ... }}
. See Wikipedia-Help:Substitution
*
*/
public class Subst extends Safesubst {
public final static ITemplateFunction CONST = new Subst();
@Override
public String parseFunction(List parts1, IWikiModel model, char[] src, int beginIndex, int endIndex, boolean isSubst) {
if (!model.isTemplateTopic()) {
return super.parseFunction(parts1, model,src, beginIndex,endIndex,isSubst);
}
return "";
}
}