Page MenuHomePhabricator

Special:Version has only some section headings auto-numbered
Open, LowestPublic

Description

When the user has the "Auto-number headings" option enabled, only the first three section headings in Special:Version are auto-numbered, the others are not. What is so special about them?

Related Objects

Event Timeline

Lahwaacz created this task.Sep 23 2015, 9:31 AM
Lahwaacz raised the priority of this task from to Needs Triage.
Lahwaacz updated the task description. (Show Details)
Lahwaacz added a subscriber: Lahwaacz.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 23 2015, 9:31 AM

Confirmed by setting "Auto-number headings" setting under /wiki/Special:Preferences#mw-prefsection-rendering

Aklapper triaged this task as Lowest priority.Sep 23 2015, 10:55 AM

What is so special about them?

To answer your question directly, for some reason the first three sections are parsed as wikitext, while the remaining ones are not.

				$out->addWikiText(
					$this->getMediaWikiCredits() .
					$this->softwareInformation() .
					$this->getEntryPointInfo()
				);
				$out->addHtml(
					$this->getSkinCredits() .
					$this->getExtensionCredits() .
					$this->getExternalLibraries() .
					$this->getParserTags() .
					$this->getParserFunctionHooks()
				);

Why it is so, no idea. It would be good to make this consistent, in one direction or another.

I would actually prefer to generate HTML output in the first three sections too, as that's how most special pages are done. They already are mostly HTML-based, the tables and text formatting are done with plain HTML that the wikitext parser just passes through; it would primarily be the matter of changing link generation.

Isarra moved this task from Backlog to Bugs on the MediaWiki-Interface board.Nov 10 2015, 10:08 PM