Class: MediaWiktory::Wikipedia::Actions::Pagetriagelist
- Defined in:
- lib/mediawiktory/wikipedia/actions/pagetriagelist.rb
Overview
Get a list of page IDs for building a PageTriage queue.
Usage:
api.pagetriagelist.page_id(value).perform # returns string with raw output
# or
api.pagetriagelist.page_id(value).response # returns output parsed and wrapped into Response object
See Base for generic explanation of working with MediaWiki actions and Response for working with action responses.
All action's parameters are documented as its public methods, see below.
Instance Method Summary collapse
-
#blocked_users ⇒ self
Whether to show only pages created by blocked users.
-
#dir(value) ⇒ self
The direction the list should be sorted in - oldestfirst or newestfirst.
-
#limit(value) ⇒ self
The maximum number of results to return.
-
#namespace(value) ⇒ self
What namespace to pull pages from.
-
#no_category ⇒ self
Whether to show only pages with no category.
-
#no_inbound_links ⇒ self
Whether to show only pages with no inbound links.
-
#non_autoconfirmed_users ⇒ self
Whether to show only pages created by non auto confirmed users.
-
#offset(value) ⇒ self
Timestamp to start from.
-
#page_id(value) ⇒ self
Return data for the specified page IDs, ignoring other parameters.
-
#pageoffset(value) ⇒ self
Page ID to start from (requires offset param to be passed as well).
-
#showbots ⇒ self
Whether to show only bot edits.
-
#showdeleted ⇒ self
Whether to include "proposed for deleted".
-
#showredirs ⇒ self
Whether to include redirects.
-
#showreviewed ⇒ self
Whether to include reviewed.
-
#showunreviewed ⇒ self
Whether to include unreviewed.
-
#username(value) ⇒ self
Show only pages created by username.
Methods inherited from Get
Methods inherited from Base
#inspect, #merge, #name, #perform, #response, #to_h, #to_param, #to_url
Methods included from GlobalParams
#assert, #assertuser, #centralauthtoken, #curtimestamp, #errorformat, #errorlang, #errorsuselocal, #format, #maxage, #maxlag, #origin, #requestid, #responselanginfo, #servedby, #smaxage, #uselang
Instance Method Details
#blocked_users ⇒ self
Whether to show only pages created by blocked users.
129 130 131 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 129 def blocked_users() merge(blocked_users: 'true') end |
#dir(value) ⇒ self
The direction the list should be sorted in - oldestfirst or newestfirst.
93 94 95 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 93 def dir(value) merge(dir: value.to_s) end |
#limit(value) ⇒ self
The maximum number of results to return.
69 70 71 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 69 def limit(value) merge(limit: value.to_s) end |
#namespace(value) ⇒ self
What namespace to pull pages from.
101 102 103 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 101 def namespace(value) merge(namespace: value.to_s) end |
#no_category ⇒ self
Whether to show only pages with no category.
108 109 110 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 108 def no_category() merge(no_category: 'true') end |
#no_inbound_links ⇒ self
Whether to show only pages with no inbound links.
115 116 117 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 115 def no_inbound_links() merge(no_inbound_links: 'true') end |
#non_autoconfirmed_users ⇒ self
Whether to show only pages created by non auto confirmed users.
122 123 124 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 122 def non_autoconfirmed_users() merge(non_autoconfirmed_users: 'true') end |
#offset(value) ⇒ self
Timestamp to start from.
77 78 79 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 77 def offset(value) merge(offset: value.to_s) end |
#page_id(value) ⇒ self
Return data for the specified page IDs, ignoring other parameters.
26 27 28 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 26 def page_id(value) merge(page_id: value.to_s) end |
#pageoffset(value) ⇒ self
Page ID to start from (requires offset param to be passed as well).
85 86 87 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 85 def pageoffset(value) merge(pageoffset: value.to_s) end |
#showbots ⇒ self
Whether to show only bot edits.
33 34 35 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 33 def showbots() merge(showbots: 'true') end |
#showdeleted ⇒ self
Whether to include "proposed for deleted".
61 62 63 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 61 def showdeleted() merge(showdeleted: 'true') end |
#showredirs ⇒ self
Whether to include redirects.
40 41 42 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 40 def showredirs() merge(showredirs: 'true') end |
#showreviewed ⇒ self
Whether to include reviewed.
47 48 49 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 47 def showreviewed() merge(showreviewed: 'true') end |
#showunreviewed ⇒ self
Whether to include unreviewed.
54 55 56 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 54 def showunreviewed() merge(showunreviewed: 'true') end |
#username(value) ⇒ self
Show only pages created by username.
137 138 139 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagelist.rb', line 137 def username(value) merge(username: value.to_s) end |