Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5992335
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
MediaWiki\Parser\ParserOutput
;
/**
* Class for inner items which are not babel boxes.
*/
class
NotBabelBox
implements
BabelBox
{
/**
* 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
(
private
readonly
string
$dir
,
private
readonly
string
$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
Oct 4 2026, 02:16 (4 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
36/2e/288fa0173aea150b143d149f2013
Default Alt Text
NotBabelBox.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment