< Extension:LiquidThreads
| LiquidThreads/API | |
|---|---|
| Retrieve thread details This module can be used as a generator. | |
| Prefix | th |
| Required rights | none |
| Post only? | No |
| Generated help | Current |
LiquidThreads adds a 'threads' list module to retrieve thread details.
Parameters
thstartid: The thread id to start enumerating fromthendid: The thread id to stop enumerating atthdir: The direction in which to enumerate (older, newer)thshowdeleted: Whether or not to show deleted threads.thlimit: The maximum number of threads to listthprop: Which properties to getthpage: 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: Whether to include the rendered thread in the results.threnderlevel: When rendering, the level at which to start (for the sake of depth limits, etc.).threnderthreadpos: When rendering, the position of the thread in the group of threads being rendered at that level (affects display somewhat).threnderthreadcount: When rendering, the number of threads in that level group.threndermaxthreadcount: When rendering, the maximum number of replies to show before adding a "Show more replies" link.threndermaxdepth: When rendering, the maximum depth of replies to show before showing a "Show X replies" link instead of replies.threnderstartrepliesat: When rendering, the point at which to start showing replies (used internally to load extra replies).
Example Get details of all threads on "Talk:Xpd" page.
| Result |
|---|
{
"batchcomplete": "",
"continue": {
"thstartid": "36",
"continue": "-||"
},
"query": {
"threads": {
"15": {
"id": "15",
"subject": "Subject Test",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": null,
"author": {
"id": "1615",
"name": "AKlapper (WMF)"
}
},
"16": {
"id": "16",
"subject": "Subject Test",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": "15",
"author": {
"id": "1185",
"name": "Malyacko"
}
},
"17": {
"id": "17",
"subject": "Starting a new discussion?",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": null,
"author": {
"id": "1378",
"name": "Valeriej"
}
},
"25": {
"id": "25",
"subject": "Subject Test",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": "15",
"author": {
"id": "268",
"name": "MarkAHershberger"
}
},
"26": {
"id": "26",
"subject": "Subject Test",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": "25",
"author": {
"id": "268",
"name": "MarkAHershberger"
}
},
"27": {
"id": "27",
"subject": "Subject Test",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": "26",
"author": {
"id": "268",
"name": "MarkAHershberger"
}
},
"28": {
"id": "28",
"subject": "Another Test Thread",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": null,
"author": {
"id": "1378",
"name": "Valeriej"
}
},
"30": {
"id": "30",
"subject": "Another Test Thread",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": "28",
"author": {
"id": "1378",
"name": "Valeriej"
}
},
"32": {
"id": "32",
"subject": "Another Test Thread",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": "30",
"author": {
"id": "1378",
"name": "Valeriej"
}
},
"35": {
"id": "35",
"subject": "Another Test Thread",
"pagens": 1,
"pagetitle": "Talk:Xpd",
"parent": "32",
"author": {
"id": "1378",
"name": "Valeriej"
}
}
}
}
}
|
Feedthreads
| Feedthreads | |
|---|---|
| Return a feed of discussion threads. This module cannot be used as a generator. | |
| Prefix | |
| Required rights | none |
| Post only? | No |
| Generated help | Current |
This module returns a feed of discussion threads
Parameters
- days – Number of days of threads to show. Type: integer
- feedformat – The format of the feed.
- Type: one of
rss,atom
- talkpage – Limit results to threads on these talk pages.
- thread – Limit results to these threads and their descendants.
- type – Types of posts to show.
- Type: one of
replies,newthreads
| The following documentation is the output of Special: |
Special:ApiHelp/feedthreads
Threadaction
| threadaction | |
|---|---|
| Allows actions to be taken on threads and posts in threaded discussions. This module cannot be used as a generator. | |
| Prefix | |
| Required rights | none |
| Post only? | Yes |
| Generated help | Current |
| The following documentation is the output of Special: |
Special:ApiHelp/threadaction
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.