class MediaWiktory::Wikipedia::Actions::Pagetriagetagging

Add tags to an article.

Usage:

“`ruby api.pagetriagetagging.pageid(value).perform # returns string with raw output # or api.pagetriagetagging.pageid(value).response # returns output parsed and wrapped into Response object “`

See {Base} for generic explanation of working with MediaWiki actions and {MediaWiktory::Wikipedia::Response} for working with action responses.

All action's parameters are documented as its public methods, see below.

Public Instance Methods

_taglist(value) click to toggle source

@private

# File lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb, line 78
def _taglist(value)
  merge(taglist: value.to_s, replace: false)
end
bottom(value) click to toggle source

The tagging text to be added to the bottom of an article.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb, line 50
def bottom(value)
  merge(bottom: value.to_s)
end
deletion() click to toggle source

Whether or not the tagging is for a deletion nomination.

@return [self]

# File lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb, line 57
def deletion()
  merge(deletion: 'true')
end
note(value) click to toggle source

Personal note to page creators from reviewers.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb, line 65
def note(value)
  merge(note: value.to_s)
end
pageid(value) click to toggle source

The article for which to be tagged.

@param value [Integer] @return [self]

# File lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb, line 26
def pageid(value)
  merge(pageid: value.to_s)
end
taglist(*values) click to toggle source

Pipe-separated list of tags.

@param values [Array<String>] @return [self]

# File lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb, line 73
def taglist(*values)
  values.inject(self) { |res, val| res._taglist(val) }
end
token(value) click to toggle source

A “csrf” token retrieved from action=query&meta=tokens

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb, line 34
def token(value)
  merge(token: value.to_s)
end
top(value) click to toggle source

The tagging text to be added to the top of an article.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/pagetriagetagging.rb, line 42
def top(value)
  merge(top: value.to_s)
end