Extension:LiquidThreads/API

From MediaWiki.org
Jump to: navigation, search

LiquidThreads adds a 'threads' list module to retrieve thread details.


Parameters

  • thstartid: The thread id to start enumerating from
  • thendid: The thread id to stop enumerating at
  • thdir: The direction in which to enumerate (older, newer)
  • thshowdeleted: ???
  • thlimit: The maximum number of threads to list
  • thprop: Which properties to get
  • thpage: Limit results to threads on a particular page(s)
  • thauthor: Limit results to threads by a particular author(s)
  • throot: Limit results to threads with the given root(s)
  • thsummary: Limit results to threads corresponding to the given summary page(s)
  • thid: Get threads with the given ID(s)
  • thrender: ???
  • threnderlevel: ???
  • threnderthreadpos: ???
  • threnderthreadcount: ???
  • threndermaxthreadcount: ???
  • threndermaxdepth: ???
  • threnderstartrepliesat: ???

Example Get details of all threads on "Talk:Main Page"

<api>
  <query>
    <threads>
      <thread id="1" subject="test" pagens="1" pagetitle="Talk:Main Page" parent="">
        <author id="0" name="127.0.0.1" />
      </thread>
      <thread id="2" subject="foo" pagens="1" pagetitle="Talk:Main Page" parent="">
        <author id="0" name="127.0.0.1" />
      </thread>
      <thread id="3" subject="foo" pagens="1" pagetitle="Talk:Main Page" parent="2">
        <author id="0" name="127.0.0.1" />
      </thread>
    </threads>
  </query>
</api>
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox