+ //one blank set of lines for author when the article
+ //metadata doesn't offer author information.
+ $this->authors = [['', '']];
+ }
+ $k = 1;
+ foreach ($this->authors as $author) {
+ $this->params["prénom$k"] = $author[1];
+ $this->params["nom$k"] = $author[0];
+ $this->params["lien auteur$k"] = '';
+ $k++;
}
//Titre, périodique, éditeur, volume, etc.
$this->params['titre'] = $this->title;
$this->params['périodique'] = $this->journal;
//TODO: vérifier si l'aticle existe sur fr.wikip et contient l'infobox Presse ou est rattaché à une catégorie fille de [[Catégorie:Revue scientifique]]