Extension:StructuredDiscussions/API: Difference between revisions
Appearance
Content deleted Content added
SPage (WMF) (talk | contribs) →action=query&prop=flow&titles=Foo: update, use {{ApiEx}} |
|||
| Line 1: | Line 1: | ||
: ''See also [[Flow/Architecture/API]] and {{gerrit|107411}}'' |
: ''See also [[Flow/Architecture/API]] and {{gerrit|107411}}'' |
||
== action=query&prop= |
== action=query&prop=flowinfo == |
||
Indicates if Flow is enabled on the specified pages. (In [[gerrit:111255]] .) |
|||
{{ApiEx |
|||
| desc=Example: get Flow info where "Talk:Sandbox" has Flow enabled, "Main_Page" does not, and "Talk:Foo" does not exist. |
|||
| p1=action=query |
|||
| ⚫ | |||
| p2=prop=flowinfo |
|||
<?xml version="1.0"?> |
|||
| p3=titles=Talk:Sandbox|Main_Page|Talk:Foo |
|||
<api> |
|||
| ⚫ | |||
| ⚫ | |||
<query> |
|||
<normalized> |
|||
<page ns="1" title="Talk:Foo" missing="" /> |
|||
<n from="Main_Page" to="Main Page" /> |
|||
</normalized> |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
<page ns="1" title="Talk:Foo" missing="" /> |
|||
<page pageid="1423" ns="0" title="Main Page"> |
|||
| ⚫ | |||
<flowinfo> |
|||
</page> |
|||
| ⚫ | |||
| ⚫ | |||
</flowinfo> |
|||
</query> |
|||
</ |
</page> |
||
<page pageid="186417" ns="1" title="Talk:Sandbox"> |
|||
| ⚫ | |||
<flowinfo> |
|||
| ⚫ | |||
</flowinfo> |
|||
| ⚫ | |||
</pages> |
|||
| ⚫ | |||
| ⚫ | |||
Revision as of 22:07, 21 April 2014
- See also Flow/Architecture/API and Gerrit change 107411
action=query&prop=flowinfo
Indicates if Flow is enabled on the specified pages. (In gerrit:111255 .)
Example: get Flow info where "Talk:Sandbox" has Flow enabled, "Main_Page" does not, and "Talk:Foo" does not exist.
| Result |
|---|
<api>
<query>
<normalized>
<n from="Main_Page" to="Main Page" />
</normalized>
<pages>
<page ns="1" title="Talk:Foo" missing="" />
<page pageid="1423" ns="0" title="Main Page">
<flowinfo>
<flow />
</flowinfo>
</page>
<page pageid="186417" ns="1" title="Talk:Sandbox">
<flowinfo>
<flow enabled="" />
</flowinfo>
</page>
</pages>
</query>
</api>
|