> Some programmer types think all numbering systems should start with 0, so it
> bothers them that it automatically starts with 0.
Meant to say, it bothers them that it automatically starts with 1.
Anyway, here's what I came up with. Edit clearState() in Parser.php, put:
global $wgOverrideAutonumberOnTitles;
$prefixed = $this->getTitle()->getPrefixedText();
$this->firstCallInit();
$this->resetOutput();
$this->mAutonumber = 0;
if ( isset( $wgOverrideAutonumberOnTitles[$prefixed] ) ) {
$this->mAutonumber =
$wgOverrideAutonumberOnTitles[$prefixed];
}
Edit LocalSettings.php, put:
$wgOverrideAutonumberOnTitles = ['ExamplePage' => -1 ];
Then on ExamplePage the numbering will start at 0.
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l