info.bliki.api.query
Class Parse

java.lang.Object
  extended by info.bliki.api.query.RequestBuilder
      extended by info.bliki.api.query.Parse

public class Parse
extends RequestBuilder

Module Parse action=parse .
Parses wikitext pages and returns parser output Example: api.php ?action=parse


Constructor Summary
Parse()
           
 
Method Summary
static Parse create()
           
 Parse oldid(java.lang.String oldid)
          Parse the content of this revision.
 Parse page(java.lang.String page)
          Parse the content of this page.
 Parse prop(java.lang.String... props)
          Which pieces of information to get.
 Parse pst(java.lang.String pst)
          Do a pre-save transform on the input before parsing it.
 Parse redirects(java.lang.String redirects)
           
 Parse text(java.lang.String text)
          Wikitext to parse
 Parse title(java.lang.String title)
          Title of page the text belongs to.
 
Methods inherited from class info.bliki.api.query.RequestBuilder
action, clear, containsKey, containsValue, entrySet, equals, format, get, getParameters, hashCode, isEmpty, keySet, maxage, maxlag, put, putAll, putPipedString, putPipedString, remove, requestid, size, smaxage, toPipedString, toPipedString, toString, values, version
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Parse

public Parse()
Method Detail

create

public static Parse create()

title

public Parse title(java.lang.String title)
Title of page the text belongs to. Default: API

Parameters:
title -
Returns:

text

public Parse text(java.lang.String text)
Wikitext to parse

Parameters:
text -
Returns:

page

public Parse page(java.lang.String page)
Parse the content of this page. Cannot be used together with text and title

Parameters:
page -
Returns:

redirects

public Parse redirects(java.lang.String redirects)

oldid

public Parse oldid(java.lang.String oldid)
Parse the content of this revision. Overrides page

Parameters:
oldid -
Returns:

prop

public Parse prop(java.lang.String... props)
Which pieces of information to get.
NOTE: Section tree is only generated if there are more than 4 sections, or if the __TOC__ keyword is present
Values (separate with '|'): text, langlinks, categories, links, templates, images, externallinks, sections, revid, displaytitle Default: text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle

Parameters:
props -
Returns:

pst

public Parse pst(java.lang.String pst)
Do a pre-save transform on the input before parsing it. Ignored if page or oldid is used.

Parameters:
pst -
Returns:


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.