Page MenuHomePhabricator

Provide a way of having a meaningful slot header
Open, MediumPublic

Description

The following code is from ParserOutput::getText()

		// Hydrate slot section header placeholders generated by RevisionRenderer.
		$text = preg_replace_callback(
			'#<mw:slotheader>(.*?)</mw:slotheader>#',
			function ( $m ) {
				$role = htmlspecialchars_decode( $m[1] );
				// TODO: map to message, using the interface language. Set lang="xyz" accordingly.
				$headerText = $role;
				return $headerText;
			},
			$text
		);

The TODO needs to be implemented so that a slot can have a meaningful header on a page (rather than just the name of the slot role).

For the purposes of SDoC a plain text msg (without params) is adequate

Related Objects

StatusSubtypeAssignedTask
Declineddchen
OpenNone
OpenNone
DuplicateNone
OpenNone
OpenNone
OpenNone
StalledNone
OpenNone
DuplicateNone
ResolvedNone
OpenNone
OpenNone
OpenNone
OpenNone
ResolvedNone
ResolvedNone
OpenNone
StalledNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
Resolveddaniel
Resolveddaniel
OpenNone

Event Timeline

Note that there are workarounds for this in WikibaseMediaInfoHooks.php in the WikibaseMediaInfo extension. They're clearly marked, and can probably be removed when this is done

daniel added a subscriber: daniel.