reality 0.1.0.alpha → 0.1.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/lib/reality/describers/wikidata.rb +2 -1
  3. data/lib/reality/describers/wikidata/sparql.rb +0 -1
  4. data/lib/reality/version.rb +1 -1
  5. metadata +2 -124
  6. data/lib/reality/describers/wikidata/actions/abusefiltercheckmatch.rb +0 -55
  7. data/lib/reality/describers/wikidata/actions/abusefilterchecksyntax.rb +0 -31
  8. data/lib/reality/describers/wikidata/actions/abusefilterevalexpression.rb +0 -31
  9. data/lib/reality/describers/wikidata/actions/abusefilterunblockautopromote.rb +0 -39
  10. data/lib/reality/describers/wikidata/actions/aggregategroups.rb +0 -76
  11. data/lib/reality/describers/wikidata/actions/antispoof.rb +0 -31
  12. data/lib/reality/describers/wikidata/actions/block.rb +0 -132
  13. data/lib/reality/describers/wikidata/actions/bouncehandler.rb +0 -31
  14. data/lib/reality/describers/wikidata/actions/categorytree.rb +0 -39
  15. data/lib/reality/describers/wikidata/actions/centralauthtoken.rb +0 -25
  16. data/lib/reality/describers/wikidata/actions/centralnoticechoicedata.rb +0 -39
  17. data/lib/reality/describers/wikidata/actions/centralnoticequerycampaign.rb +0 -31
  18. data/lib/reality/describers/wikidata/actions/changeauthenticationdata.rb +0 -39
  19. data/lib/reality/describers/wikidata/actions/checktoken.rb +0 -52
  20. data/lib/reality/describers/wikidata/actions/cirrus-config-dump.rb +0 -25
  21. data/lib/reality/describers/wikidata/actions/cirrus-mapping-dump.rb +0 -25
  22. data/lib/reality/describers/wikidata/actions/cirrus-settings-dump.rb +0 -25
  23. data/lib/reality/describers/wikidata/actions/clearhasmsg.rb +0 -25
  24. data/lib/reality/describers/wikidata/actions/clientlogin.rb +0 -86
  25. data/lib/reality/describers/wikidata/actions/compare.rb +0 -71
  26. data/lib/reality/describers/wikidata/actions/createaccount.rb +0 -86
  27. data/lib/reality/describers/wikidata/actions/cspreport.rb +0 -38
  28. data/lib/reality/describers/wikidata/actions/delete.rb +0 -103
  29. data/lib/reality/describers/wikidata/actions/deleteglobalaccount.rb +0 -47
  30. data/lib/reality/describers/wikidata/actions/echomarkread.rb +0 -77
  31. data/lib/reality/describers/wikidata/actions/echomarkseen.rb +0 -57
  32. data/lib/reality/describers/wikidata/actions/edit.rb +0 -266
  33. data/lib/reality/describers/wikidata/actions/editmassmessagelist.rb +0 -65
  34. data/lib/reality/describers/wikidata/actions/emailuser.rb +0 -62
  35. data/lib/reality/describers/wikidata/actions/expandtemplates.rb +0 -129
  36. data/lib/reality/describers/wikidata/actions/fancycaptchareload.rb +0 -25
  37. data/lib/reality/describers/wikidata/actions/featuredfeed.rb +0 -57
  38. data/lib/reality/describers/wikidata/actions/feedcontributions.rb +0 -121
  39. data/lib/reality/describers/wikidata/actions/feedrecentchanges.rb +0 -159
  40. data/lib/reality/describers/wikidata/actions/feedwatchlist.rb +0 -108
  41. data/lib/reality/describers/wikidata/actions/filerevert.rb +0 -55
  42. data/lib/reality/describers/wikidata/actions/flow-parsoid-utils.rb +0 -73
  43. data/lib/reality/describers/wikidata/actions/flow.rb +0 -72
  44. data/lib/reality/describers/wikidata/actions/flowthank.rb +0 -39
  45. data/lib/reality/describers/wikidata/actions/globalblock.rb +0 -76
  46. data/lib/reality/describers/wikidata/actions/globaluserrights.rb +0 -94
  47. data/lib/reality/describers/wikidata/actions/graph.rb +0 -47
  48. data/lib/reality/describers/wikidata/actions/groupreview.rb +0 -55
  49. data/lib/reality/describers/wikidata/actions/help.rb +0 -64
  50. data/lib/reality/describers/wikidata/actions/imagerotate.rb +0 -25
  51. data/lib/reality/describers/wikidata/actions/import.rb +0 -116
  52. data/lib/reality/describers/wikidata/actions/jsonconfig.rb +0 -60
  53. data/lib/reality/describers/wikidata/actions/jsondata.rb +0 -31
  54. data/lib/reality/describers/wikidata/actions/languagesearch.rb +0 -39
  55. data/lib/reality/describers/wikidata/actions/linkaccount.rb +0 -79
  56. data/lib/reality/describers/wikidata/actions/login.rb +0 -55
  57. data/lib/reality/describers/wikidata/actions/logout.rb +0 -25
  58. data/lib/reality/describers/wikidata/actions/managetags.rb +0 -80
  59. data/lib/reality/describers/wikidata/actions/massmessage.rb +0 -55
  60. data/lib/reality/describers/wikidata/actions/mergehistory.rb +0 -79
  61. data/lib/reality/describers/wikidata/actions/mobileview.rb +0 -170
  62. data/lib/reality/describers/wikidata/actions/move.rb +0 -131
  63. data/lib/reality/describers/wikidata/actions/oathvalidate.rb +0 -47
  64. data/lib/reality/describers/wikidata/actions/opensearch.rb +0 -92
  65. data/lib/reality/describers/wikidata/actions/options.rb +0 -80
  66. data/lib/reality/describers/wikidata/actions/paraminfo.rb +0 -91
  67. data/lib/reality/describers/wikidata/actions/parsoid-batch.rb +0 -31
  68. data/lib/reality/describers/wikidata/actions/patrol.rb +0 -60
  69. data/lib/reality/describers/wikidata/actions/protect.rb +0 -121
  70. data/lib/reality/describers/wikidata/actions/purge.rb +0 -152
  71. data/lib/reality/describers/wikidata/actions/removeauthenticationdata.rb +0 -39
  72. data/lib/reality/describers/wikidata/actions/resetpassword.rb +0 -47
  73. data/lib/reality/describers/wikidata/actions/revisiondelete.rb +0 -125
  74. data/lib/reality/describers/wikidata/actions/rollback.rb +0 -96
  75. data/lib/reality/describers/wikidata/actions/rsd.rb +0 -25
  76. data/lib/reality/describers/wikidata/actions/sanitize-mapdata.rb +0 -39
  77. data/lib/reality/describers/wikidata/actions/scribunto-console.rb +0 -62
  78. data/lib/reality/describers/wikidata/actions/searchtranslations.rb +0 -113
  79. data/lib/reality/describers/wikidata/actions/setglobalaccountstatus.rb +0 -81
  80. data/lib/reality/describers/wikidata/actions/setnotificationtimestamp.rb +0 -177
  81. data/lib/reality/describers/wikidata/actions/setpagelanguage.rb +0 -81
  82. data/lib/reality/describers/wikidata/actions/shortenurl.rb +0 -31
  83. data/lib/reality/describers/wikidata/actions/sitematrix.rb +0 -91
  84. data/lib/reality/describers/wikidata/actions/spamblacklist.rb +0 -36
  85. data/lib/reality/describers/wikidata/actions/stashedit.rb +0 -113
  86. data/lib/reality/describers/wikidata/actions/strikevote.rb +0 -60
  87. data/lib/reality/describers/wikidata/actions/tag.rb +0 -117
  88. data/lib/reality/describers/wikidata/actions/templatedata.rb +0 -145
  89. data/lib/reality/describers/wikidata/actions/thank.rb +0 -47
  90. data/lib/reality/describers/wikidata/actions/titleblacklist.rb +0 -51
  91. data/lib/reality/describers/wikidata/actions/tokens.rb +0 -36
  92. data/lib/reality/describers/wikidata/actions/transcodereset.rb +0 -47
  93. data/lib/reality/describers/wikidata/actions/translatesandbox.rb +0 -81
  94. data/lib/reality/describers/wikidata/actions/translationaids.rb +0 -52
  95. data/lib/reality/describers/wikidata/actions/translationreview.rb +0 -39
  96. data/lib/reality/describers/wikidata/actions/translationstash.rb +0 -76
  97. data/lib/reality/describers/wikidata/actions/ttmserver.rb +0 -60
  98. data/lib/reality/describers/wikidata/actions/ulslocalization.rb +0 -31
  99. data/lib/reality/describers/wikidata/actions/unblock.rb +0 -76
  100. data/lib/reality/describers/wikidata/actions/undelete.rb +0 -99
  101. data/lib/reality/describers/wikidata/actions/unlinkaccount.rb +0 -39
  102. data/lib/reality/describers/wikidata/actions/upload.rb +0 -172
  103. data/lib/reality/describers/wikidata/actions/userrights.rb +0 -107
  104. data/lib/reality/describers/wikidata/actions/validatepassword.rb +0 -55
  105. data/lib/reality/describers/wikidata/actions/visualeditor.rb +0 -96
  106. data/lib/reality/describers/wikidata/actions/visualeditoredit.rb +0 -164
  107. data/lib/reality/describers/wikidata/actions/watch.rb +0 -161
  108. data/lib/reality/describers/wikidata/actions/wbavailablebadges.rb +0 -25
  109. data/lib/reality/describers/wikidata/actions/wbcheckconstraints.rb +0 -62
  110. data/lib/reality/describers/wikidata/actions/wbcreateclaim.rb +0 -91
  111. data/lib/reality/describers/wikidata/actions/wbcreateredirect.rb +0 -54
  112. data/lib/reality/describers/wikidata/actions/wbeditentity.rb +0 -111
  113. data/lib/reality/describers/wikidata/actions/wblinktitles.rb +0 -80
  114. data/lib/reality/describers/wikidata/actions/wbmergeitems.rb +0 -75
  115. data/lib/reality/describers/wikidata/actions/wbremoveclaims.rb +0 -67
  116. data/lib/reality/describers/wikidata/actions/wbremovequalifiers.rb +0 -75
  117. data/lib/reality/describers/wikidata/actions/wbremovereferences.rb +0 -75
  118. data/lib/reality/describers/wikidata/actions/wbsetaliases.rb +0 -148
  119. data/lib/reality/describers/wikidata/actions/wbsetclaim.rb +0 -70
  120. data/lib/reality/describers/wikidata/actions/wbsetclaimvalue.rb +0 -83
  121. data/lib/reality/describers/wikidata/actions/wbsetdescription.rb +0 -117
  122. data/lib/reality/describers/wikidata/actions/wbsetlabel.rb +0 -117
  123. data/lib/reality/describers/wikidata/actions/wbsetqualifier.rb +0 -99
  124. data/lib/reality/describers/wikidata/actions/wbsetreference.rb +0 -94
  125. data/lib/reality/describers/wikidata/actions/wbsetsitelink.rb +0 -130
  126. data/lib/reality/describers/wikidata/actions/wbsgetsuggestions.rb +0 -94
  127. data/lib/reality/describers/wikidata/actions/webapp-manifest.rb +0 -25
@@ -1,55 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Log in and get authentication cookies.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.login.name(value).perform # returns string with raw output
11
- # # or
12
- # api.login.name(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Login < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # User name.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def name(value)
27
- merge(lgname: value.to_s)
28
- end
29
-
30
- # Password.
31
- #
32
- # @param value [String]
33
- # @return [self]
34
- def password(value)
35
- merge(lgpassword: value.to_s)
36
- end
37
-
38
- # Domain (optional).
39
- #
40
- # @param value [String]
41
- # @return [self]
42
- def domain(value)
43
- merge(lgdomain: value.to_s)
44
- end
45
-
46
- # A "login" token retrieved from action=query&meta=tokens
47
- #
48
- # @param value [String]
49
- # @return [self]
50
- def token(value)
51
- merge(lgtoken: value.to_s)
52
- end
53
- end
54
- end
55
- end
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Log out and clear session data.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.logout.perform # returns string with raw output
11
- # # or
12
- # api.logout.response # returns output parsed and wrapped into Mash-like object
13
- # ```
14
- #
15
- # This action has no parameters.
16
- #
17
- # See {Base} for generic explanation of working with MediaWiki actions and
18
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
19
- #
20
- # All action's parameters are documented as its public methods, see below.
21
- #
22
- class Logout < Reality::Describers::Wikidata::Impl::Actions::Get
23
- end
24
- end
25
- end
@@ -1,80 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Perform management tasks relating to change tags.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.managetags.operation(value).perform # returns string with raw output
11
- # # or
12
- # api.managetags.operation(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Managetags < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # Which operation to perform:
23
- #
24
- # @param value [String] One of "create" (Create a new change tag for manual use), "delete" (Remove a change tag from the database, including removing the tag from all revisions, recent change entries and log entries on which it is used), "activate" (Activate a change tag, allowing users to apply it manually), "deactivate" (Deactivate a change tag, preventing users from applying it manually).
25
- # @return [self]
26
- def operation(value)
27
- _operation(value) or fail ArgumentError, "Unknown value for operation: #{value}"
28
- end
29
-
30
- # @private
31
- def _operation(value)
32
- defined?(super) && super || ["create", "delete", "activate", "deactivate"].include?(value.to_s) && merge(operation: value.to_s)
33
- end
34
-
35
- # Tag to create, delete, activate or deactivate. For tag creation, the tag must not exist. For tag deletion, the tag must exist. For tag activation, the tag must exist and not be in use by an extension. For tag deactivation, the tag must be currently active and manually defined.
36
- #
37
- # @param value [String]
38
- # @return [self]
39
- def tag(value)
40
- merge(tag: value.to_s)
41
- end
42
-
43
- # An optional reason for creating, deleting, activating or deactivating the tag.
44
- #
45
- # @param value [String]
46
- # @return [self]
47
- def reason(value)
48
- merge(reason: value.to_s)
49
- end
50
-
51
- # Whether to ignore any warnings that are issued during the operation.
52
- #
53
- # @return [self]
54
- def ignorewarnings()
55
- merge(ignorewarnings: 'true')
56
- end
57
-
58
- # Change tags to apply to the entry in the tag management log.
59
- #
60
- # @param values [Array<String>] Allowed values: "InfoboxExport gadget", "WE-Framework gadget".
61
- # @return [self]
62
- def tags(*values)
63
- values.inject(self) { |res, val| res._tags(val) or fail ArgumentError, "Unknown value for tags: #{val}" }
64
- end
65
-
66
- # @private
67
- def _tags(value)
68
- defined?(super) && super || ["InfoboxExport gadget", "WE-Framework gadget"].include?(value.to_s) && merge(tags: value.to_s, replace: false)
69
- end
70
-
71
- # A "csrf" token retrieved from action=query&meta=tokens
72
- #
73
- # @param value [String]
74
- # @return [self]
75
- def token(value)
76
- merge(token: value.to_s)
77
- end
78
- end
79
- end
80
- end
@@ -1,55 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Send a message to a list of pages.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.massmessage.spamlist(value).perform # returns string with raw output
11
- # # or
12
- # api.massmessage.spamlist(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Massmessage < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # Page containing list of pages to leave a message on.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def spamlist(value)
27
- merge(spamlist: value.to_s)
28
- end
29
-
30
- # Subject line of the message.
31
- #
32
- # @param value [String]
33
- # @return [self]
34
- def subject(value)
35
- merge(subject: value.to_s)
36
- end
37
-
38
- # Message body text.
39
- #
40
- # @param value [String]
41
- # @return [self]
42
- def message(value)
43
- merge(message: value.to_s)
44
- end
45
-
46
- # A "csrf" token retrieved from action=query&meta=tokens
47
- #
48
- # @param value [String]
49
- # @return [self]
50
- def token(value)
51
- merge(token: value.to_s)
52
- end
53
- end
54
- end
55
- end
@@ -1,79 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Merge page histories.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.mergehistory.from(value).perform # returns string with raw output
11
- # # or
12
- # api.mergehistory.from(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Mergehistory < Reality::Describers::Wikidata::Impl::Actions::Post
21
-
22
- # Title of the page from which history will be merged. Cannot be used together with fromid.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def from(value)
27
- merge(from: value.to_s)
28
- end
29
-
30
- # Page ID of the page from which history will be merged. Cannot be used together with from.
31
- #
32
- # @param value [Integer]
33
- # @return [self]
34
- def fromid(value)
35
- merge(fromid: value.to_s)
36
- end
37
-
38
- # Title of the page to which history will be merged. Cannot be used together with toid.
39
- #
40
- # @param value [String]
41
- # @return [self]
42
- def to(value)
43
- merge(to: value.to_s)
44
- end
45
-
46
- # Page ID of the page to which history will be merged. Cannot be used together with to.
47
- #
48
- # @param value [Integer]
49
- # @return [self]
50
- def toid(value)
51
- merge(toid: value.to_s)
52
- end
53
-
54
- # Timestamp up to which revisions will be moved from the source page's history to the destination page's history. If omitted, the entire page history of the source page will be merged into the destination page.
55
- #
56
- # @param value [Time]
57
- # @return [self]
58
- def timestamp(value)
59
- merge(timestamp: value.iso8601)
60
- end
61
-
62
- # Reason for the history merge.
63
- #
64
- # @param value [String]
65
- # @return [self]
66
- def reason(value)
67
- merge(reason: value.to_s)
68
- end
69
-
70
- # A "csrf" token retrieved from action=query&meta=tokens
71
- #
72
- # @param value [String]
73
- # @return [self]
74
- def token(value)
75
- merge(token: value.to_s)
76
- end
77
- end
78
- end
79
- end
@@ -1,170 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Reality::Describers::Wikidata::Impl
4
- module Actions
5
- # Returns data needed for mobile views.
6
- #
7
- # Usage:
8
- #
9
- # ```ruby
10
- # api.mobileview.page(value).perform # returns string with raw output
11
- # # or
12
- # api.mobileview.page(value).response # returns output parsed and wrapped into Response object
13
- # ```
14
- #
15
- # See {Base} for generic explanation of working with MediaWiki actions and
16
- # {Reality::Describers::Wikidata::Impl::Response} for working with action responses.
17
- #
18
- # All action's parameters are documented as its public methods, see below.
19
- #
20
- class Mobileview < Reality::Describers::Wikidata::Impl::Actions::Get
21
-
22
- # Title of page to process.
23
- #
24
- # @param value [String]
25
- # @return [self]
26
- def page(value)
27
- merge(page: value.to_s)
28
- end
29
-
30
- # Whether redirects should be followed.
31
- #
32
- # @param value [String] One of "yes", "no".
33
- # @return [self]
34
- def redirect(value)
35
- _redirect(value) or fail ArgumentError, "Unknown value for redirect: #{value}"
36
- end
37
-
38
- # @private
39
- def _redirect(value)
40
- defined?(super) && super || ["yes", "no"].include?(value.to_s) && merge(redirect: value.to_s)
41
- end
42
-
43
- # Pipe-separated list of section numbers for which to return text. "all" can be used to return for all. Ranges in format "1-4" mean get sections 1,2,3,4. Ranges without second number, e.g. "1-" means get all until the end. "references" can be used to specify that all sections containing references should be returned.
44
- #
45
- # @param value [String]
46
- # @return [self]
47
- def sections(value)
48
- merge(sections: value.to_s)
49
- end
50
-
51
- # Which information to get:
52
- #
53
- # @param values [Array<String>] Allowed values: "text" (HTML of selected sections), "sections" (Information about all sections on the page), "normalizedtitle" (Normalized page title), "lastmodified" (ISO 8601 timestamp for when the page was last modified, e.g. "2014-04-13T22:42:14Z"), "lastmodifiedby" (Information about the user who modified the page last), "revision" (Return the current revision ID of the page), "protection" (Information about protection level), "editable" (Whether the current user can edit this page. This includes all factors for logged-in users but not blocked status for anons), "languagecount" (Number of languages that the page is available in), "hasvariants" (Whether or not the page is available in other language variants), "displaytitle" (The rendered title of the page, with {{DISPLAYTITLE}} and such applied), "pageprops" (Page properties).
54
- # @return [self]
55
- def prop(*values)
56
- values.inject(self) { |res, val| res._prop(val) or fail ArgumentError, "Unknown value for prop: #{val}" }
57
- end
58
-
59
- # @private
60
- def _prop(value)
61
- defined?(super) && super || ["text", "sections", "normalizedtitle", "lastmodified", "lastmodifiedby", "revision", "protection", "editable", "languagecount", "hasvariants", "displaytitle", "pageprops"].include?(value.to_s) && merge(prop: value.to_s, replace: false)
62
- end
63
-
64
- # What information about sections to get.
65
- #
66
- # @param values [Array<String>] Allowed values: "toclevel", "level", "line", "number", "index", "fromtitle", "anchor".
67
- # @return [self]
68
- def sectionprop(*values)
69
- values.inject(self) { |res, val| res._sectionprop(val) or fail ArgumentError, "Unknown value for sectionprop: #{val}" }
70
- end
71
-
72
- # @private
73
- def _sectionprop(value)
74
- defined?(super) && super || ["toclevel", "level", "line", "number", "index", "fromtitle", "anchor"].include?(value.to_s) && merge(sectionprop: value.to_s, replace: false)
75
- end
76
-
77
- # What page properties to return, a pipe ("|") separated list or "*" for all properties.
78
- #
79
- # @param value [String]
80
- # @return [self]
81
- def pageprops(value)
82
- merge(pageprops: value.to_s)
83
- end
84
-
85
- # Convert content into this language variant.
86
- #
87
- # @param value [String]
88
- # @return [self]
89
- def variant(value)
90
- merge(variant: value.to_s)
91
- end
92
-
93
- # Return HTML without images.
94
- #
95
- # @return [self]
96
- def noimages()
97
- merge(noimages: 'true')
98
- end
99
-
100
- # Don't include headings in output.
101
- #
102
- # @return [self]
103
- def noheadings()
104
- merge(noheadings: 'true')
105
- end
106
-
107
- # Don't transform HTML into mobile-specific version.
108
- #
109
- # @return [self]
110
- def notransform()
111
- merge(notransform: 'true')
112
- end
113
-
114
- # Return only requested sections even with prop=sections.
115
- #
116
- # @return [self]
117
- def onlyrequestedsections()
118
- merge(onlyrequestedsections: 'true')
119
- end
120
-
121
- # Pretend all text result is one string, and return the substring starting at this point.
122
- #
123
- # @param value [Integer]
124
- # @return [self]
125
- def offset(value)
126
- merge(offset: value.to_s)
127
- end
128
-
129
- # Pretend all text result is one string, and limit result to this length.
130
- #
131
- # @param value [Integer]
132
- # @return [self]
133
- def maxlen(value)
134
- merge(maxlen: value.to_s)
135
- end
136
-
137
- # Request a specific revision.
138
- #
139
- # @param value [Integer]
140
- # @return [self]
141
- def revision(value)
142
- merge(revision: value.to_s)
143
- end
144
-
145
- # Maximum thumbnail height.
146
- #
147
- # @param value [Integer]
148
- # @return [self]
149
- def thumbheight(value)
150
- merge(thumbheight: value.to_s)
151
- end
152
-
153
- # Maximum thumbnail width.
154
- #
155
- # @param value [Integer]
156
- # @return [self]
157
- def thumbwidth(value)
158
- merge(thumbwidth: value.to_s)
159
- end
160
-
161
- # Maximum thumbnail dimensions.
162
- #
163
- # @param value [Integer]
164
- # @return [self]
165
- def thumbsize(value)
166
- merge(thumbsize: value.to_s)
167
- end
168
- end
169
- end
170
- end