class MediaWiktory::Wikipedia::Actions::Pagetriagetemplate
Fetch templates that are used within the PageTriage application.
Usage:
“`ruby api.pagetriagetemplate.view(value).perform # returns string with raw output # or api.pagetriagetemplate.view(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
template(value)
click to toggle source
The template to fetch. Separate multiple with the | character.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/pagetriagetemplate.rb, line 34 def template(value) merge(template: value.to_s) end
view(value)
click to toggle source
The PageTriage view for which you need the templates.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/pagetriagetemplate.rb, line 26 def view(value) merge(view: value.to_s) end