Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5953731
MMLmsubsup.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
MMLmsubsup.php
View Options
<?php
namespace
MediaWiki\Extension\Math\WikiTexVC\MMLnodes
;
/**
* Presentation MathML 3 Element
* name: "msubsup"
* description: "attach a subscript-superscript pair to a base"
* category: "Script and Limit Schemata"
*/
class
MMLmsubsup
extends
MMLbase
{
public
function
__construct
(
string
$texclass
=
""
,
array
$attributes
=
[]
)
{
parent
::
__construct
(
"msubsup"
,
$texclass
,
$attributes
);
}
/**
* Creates a new subtree element with base and scripts
* @param MMLbase $base Main content element
* @param MMLbase $subscript Element placed below the base (subscript)
* @param MMLbase $superscript Element placed above the base (superscript)
* @param string $texclass Optional TeX class for styling
* @param array $attributes Additional HTML attributes for the element
* @return static New instance with children in order: [base, subscript, superscript]
*/
public
static
function
newSubtree
(
MMLbase
$base
,
MMLbase
$subscript
,
MMLbase
$superscript
,
string
$texclass
=
""
,
array
$attributes
=
[]
)
{
$instance
=
new
self
(
$texclass
,
$attributes
);
$instance
->
children
=
[
$base
,
$subscript
,
$superscript
];
return
$instance
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 02:20 (4 w, 16 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a0/da/56a405144569c77d9aca811a95a2
Default Alt Text
MMLmsubsup.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment