<?php
/**
- * @since WD.1
+ * @since 1.21
*/
class WikitextContent extends TextContent {
$text = $this->getNativeData();
$sect = $wgParser->getSection( $text, $section, false );
- return new WikitextContent( $sect );
+ return new WikitextContent( $sect );
}
/**
*/
public function addSectionHeader( $header ) {
$text = wfMessage( 'newsectionheaderdefaultlevel' )
- ->inContentLanguage()->params( $header )->text();
+ ->rawParams( $header )->inContentLanguage()->text();
$text .= "\n\n";
$text .= $this->getNativeData();
* This implementation replaces the first link on the page with the given new target
* if this Content object is a redirect. Otherwise, this method returns $this.
*
- * @since WD.1
+ * @since 1.21
*
* @param Title $target
*
* Returns a ParserOutput object resulting from parsing the content's text
* using $wgParser.
*
- * @since WD.1
+ * @since 1.21
*
* @param $content Content the content to render
* @param $title \Title