Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4144095
NotBabelBox.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
NotBabelBox.php
View Options
<?php
/**
* Contains code for inner items which are not babel boxes.
*
* @file
* @author Robert Leverington
* @author Robin Pepermans
* @author Niklas Laxström
* @author Brian Wolff
* @author Purodha Blissenbach
* @author Sam Reed
* @author Siebrand Mazeland
* @license GPL-2.0-or-later
*/
declare
(
strict_types
=
1
);
namespace
MediaWiki\Babel\BabelBox
;
use
ParserOutput
;
/**
* Class for inner items which are not babel boxes.
*/
class
NotBabelBox
implements
BabelBox
{
/**
* @var string
*/
private
$dir
;
/**
* @var string
*/
private
$content
;
/**
* Construct a non-babel box.
*
* @param string $dir HTML 'dir' attribute
* @param string $content What's inside the box, in wikitext format.
*/
public
function
__construct
(
string
$dir
,
string
$content
)
{
$this
->
dir
=
$dir
;
$this
->
content
=
$content
;
}
/**
* Return the babel box code.
*
* @return string A single non-babel box, in wikitext format.
*/
public
function
render
():
string
{
return
<<<EOT
<div class="mw-babel-notabox" dir="{$this->dir}">{$this->content}</div>
EOT;
}
public
function
addCategories
(
ParserOutput
$parserOutput
):
void
{
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 17:05 (4 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
70/09/3fa9c23e513b10a2f4d7965f4f62
Default Alt Text
NotBabelBox.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment