Extension:LiquidThreads/API
From Linux Web Expert
<translate> This page is outdated.</translate> |
<translate> Please [[<tvar name=1>Special:EditPage/Extension:LiquidThreads/API</tvar>|expand]] this page.</translate> |
LiquidThreads/API | |
---|---|
Retrieve thread details <translate> This module can be used as a [[<tvar|1>Special:MyLanguage/API:Query#Generators</>|generator]].</translate> | |
<translate> Prefix</translate> | th |
<translate> Required rights</translate> | <translate> none</translate> |
<translate> Post only?</translate> | <translate> No</translate> |
<translate> Generated help</translate> | <translate> Current</translate> |
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.
<translate> Result</translate> |
---|
{
"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. <translate> This module cannot be used as a [[<tvar|1>Special:MyLanguage/API:Query#Generators</>|generator]].</translate> | |
<translate> Prefix</translate> | |
<translate> Required rights</translate> | <translate> none</translate> |
<translate> Post only?</translate> | <translate> No</translate> |
<translate> Generated help</translate> | <translate> Current</translate> |
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
File:Oxygen480-categories-preferences-system.svg | <translate> The following documentation is the output of <tvar name=special>Special: |
Module "feedthreads" not found.
Threadaction
threadaction | |
---|---|
Allows actions to be taken on threads and posts in threaded discussions. <translate> This module cannot be used as a [[<tvar|1>Special:MyLanguage/API:Query#Generators</>|generator]].</translate> | |
<translate> Prefix</translate> | |
<translate> Required rights</translate> | <translate> none</translate> |
<translate> Post only?</translate> | <translate> Yes</translate> |
<translate> Generated help</translate> | <translate> Current</translate> |
File:Oxygen480-categories-preferences-system.svg | <translate> The following documentation is the output of <tvar name=special>Special: |
Module "threadaction" not found.