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