Page MenuHomeWickedGov Phorge

MMLmsubsup.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

MMLmsubsup.php

<?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|string $base Main content element
* @param MMLbase|string $subscript Element placed below the base (subscript)
* @param MMLbase|string $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( $base,
$subscript,
$superscript,
string $texclass = "",
array $attributes = [] ) {
$instance = new self( $texclass, $attributes );
$instance->children = [ $base, $subscript, $superscript ];
return $instance;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 21, 14:07 (6 h, 54 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3d/c5/4b6146afdb9cf7729ec27315364c
Default Alt Text
MMLmsubsup.php (1 KB)

Event Timeline