#' #"~word~","~theme~","~char~","~voice_artist~" ← the field list (see they are used in the templates above)
#' #"Zero","numbers","Awful Owen","Carlos"
#' #"One","numbers","Awful Owen","Carlos"
#' #"One","numbers","Black Betty","Carla"
#' #3 pages are created in this example…
#'@section Methods:
#'\describe{
#' \item{\code{initialize(wiki,author,pass)}}{Creates a new Batchator object (and its Mediawikir object as an attribute)
#' \describe{
#' \item{\code{wiki}}{The base url to the mediawiki instance}
#' \item{\code{authr}}{The screen name of the user who will be credited for the changes in the wiki}
#' \item{\code{pass}}{The user's password}
#' }}
#' \item{\code{loadTemplate(file_path)}}{Takes the path of a text file containing a template that will serve as base
#' for all the pages generated. The template should contain occurrences of the fields defined in the \link{content} file.}
#' \item{\code{setPageNamePattern(naming_pattern)}}{Takes a string of the parttern for the page names that will be generated.
#' The template should contain occurrences of the fields defined in the \link{content} file.}
#' \item{\code{loadContent(file_path)}}{Takes the path to a csv file that contains both the list of fields used in the templates (1st line)
#' AND the data for each of those fields (following lines).}
#' \item{\code{applyTemplate()}}{Applies the templates defined using \link{loadTemplate}, \link{setPageNamePattern} to the data loaded with \link{loadContent}.}
Object of \code{\link{R6Class}} with methods to interact with mediawiki instance
}
\description{
Uses mediawikir to create a batch of pages
Uses \link{Mediawikir} to create/edit a batch of mediawiki pages
}
\section{Fields}{
\describe{
\item{\code{author}}{the mediawiki user who will be the author of the pages/modifications}
\item{\code{wiki}}{a mediawikir object}
\item{\code{page_name_pattern}}{a pattern to name the pages generated}
\item{\code{template}}{the content of a text file with the template for the wikitext of the pages to create in a batch}
\item{\code{field_list}}{the list of symbols that will be replaced (the first line of the csv file that will be sent to the Batchator)}
\item{\code{content}}{a matrix of the words that will replace the symbols in the templates (both content and page names — the next lines of the csv file)}
}}
\section{Methods}{
\describe{
\item{\code{initialize(wiki,author,pass)}}{Creates a new Batchator object (and its Mediawikir object as an attribute)
\describe{
\item{\code{wiki}}{The base url to the mediawiki instance}
\item{\code{authr}}{The screen name of the user who will be credited for the changes in the wiki}
\item{\code{pass}}{The user's password}
}}
\item{\code{loadTemplate(file_path)}}{Takes the path of a text file containing a template that will serve as base
for all the pages generated. The template should contain occurrences of the fields defined in the \link{content} file.}
\item{\code{setPageNamePattern(naming_pattern)}}{Takes a string of the parttern for the page names that will be generated.
The template should contain occurrences of the fields defined in the \link{content} file.}
\item{\code{loadContent(file_path)}}{Takes the path to a csv file that contains both the list of fields used in the templates (1st line)
AND the data for each of those fields (following lines).}
\item{\code{applyTemplate()}}{Applies the templates defined using \link{loadTemplate}, \link{setPageNamePattern} to the data loaded with \link{loadContent}.}