if ( $this->mExtraDescription ) {
$fol = $this->getContext()->msg( 'shareddescriptionfollows' );
if ( !$fol->isDisabled() ) {
- $out->addWikiText( $fol->plain() );
+ $out->addWikiTextAsInterface( $fol->plain() );
}
$out->addHTML( '<div id="shared-image-desc">' . $this->mExtraDescription . "</div>\n" );
}
'h2',
[ 'id' => 'metadata' ],
$this->getContext()->msg( 'metadata' )->text() ) . "\n" );
- $out->addWikiText( $this->makeMetadataTable( $formattedMetadata ) );
+ $out->addWikiTextAsInterface( $this->makeMetadataTable( $formattedMetadata ) );
$out->addModules( [ 'mediawiki.action.view.metadata' ] );
}
// to the filename, because it can get copied with it.
// See T27277.
// phpcs:disable Generic.Files.LineLength
- $out->addWikiText( <<<EOT
+ $out->addWikiTextAsInterface( <<<EOT
<div class="fullMedia"><span class="dangerousLink">{$medialink}</span> $dirmark<span class="fileInfo">$longDesc</span></div>
<div class="mediaWarning">$warning</div>
EOT
);
// phpcs:enable
} else {
- $out->addWikiText( <<<EOT
+ $out->addWikiTextAsInterface( <<<EOT
<div class="fullMedia">{$medialink} {$dirmark}<span class="fileInfo">$longDesc</span>
</div>
EOT
'file-no-thumb-animation'
)->plain();
- $out->addWikiText( <<<EOT
+ $out->addWikiTextAsInterface( <<<EOT
<div class="mw-noanimatethumb">{$noAnimMesg}</div>
EOT
);
$out->setRobotPolicy( 'noindex,nofollow' );
$out->setArticleRelated( false );
$out->enableClientCache( false );
- $out->addWikiText( $description );
+ $out->addWikiTextAsInterface( $description );
}
/**