Examples of expandTemplates()


Examples of org.wikipediacleaner.api.MediaWiki.expandTemplates()

  @Override
  public Object construct() {
    try {
      MediaWiki mw = MediaWiki.getMediaWikiAccess(this);
      if (textExpanded != null) {
        textExpanded.setText(mw.expandTemplates(getWikipedia(), title, textOriginal.getText()));
      }
      if (htmlPreview != null) {
        String text = mw.parseText(getWikipedia(), title, textOriginal.getText());
        htmlPreview.setHtml(
            "<html><head>" +
View Full Code Here

Examples of org.wikipediacleaner.api.request.ApiExpandRequest.expandTemplates()

   */
  public String expandTemplates(
      EnumWikipedia wiki, String title, String text) throws APIException {
    ApiExpandResult result = new ApiXmlExpandResult(wiki, httpClient);
    ApiExpandRequest request = new ApiExpandRequest(wiki, result);
    return request.expandTemplates(title, text);
  }

  /**
   * Parse text.
   * (<code>action=parse</code>).
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.