Page MenuHomeWickedGov Phorge

MMLmsup.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

MMLmsup.php

<?php
namespace MediaWiki\Extension\Math\WikiTexVC\MMLnodes;
/**
* Presentation MathML 3 Element
* name: "msup"
* description: "attach a superscript to a base"
* category: "Script and Limit Schemata"
*/
class MMLmsup extends MMLbase {
public function __construct( string $texclass = "", array $attributes = [] ) {
parent::__construct( "msup", $texclass, $attributes );
}
/**
* Creates a new subtree element with base and scripts
* @param MMLbase|string $base Main content element
* @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, superscript]
*/
public static function newSubtree( $base,
$superscript,
string $texclass = "",
array $attributes = [] ) {
$instance = new self( $texclass, $attributes );
$instance->children = [ $base, $superscript ];
return $instance;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Nov 23, 00:31 (2 d, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c8/05/ccfb4f1909ad7945418946935704
Default Alt Text
MMLmsup.php (1 KB)

Event Timeline