As I need to have an option for voting everywhere, and adding tags on a very big number of pages doesn't make sense, I added this code and placed it in the LocalSettings.php:
$wgHooks['ArticleViewHeader'][] = 'addHeaderToPages'; function addHeaderToPages( &$article, &$outputDone, &$pcache ) { global $wgOut; $wgOut->addWikiTextAsInterface('<vote type=1 />'); return true; }
But, for some reason, I have a section for commenting and at end of the article and under the title. It is duplicated (I don't know why), the easiest way to say.
I know that Phabricator isn't a place for support, but I'm not sure where to ask, as I haven't received responses on IRC.
The version of the MediaWiki where I have to work on this is 1.36.0.