Page MenuHomeWickedGov Phorge

MMLmsub.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

MMLmsub.php

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

File Metadata

Mime Type
text/x-php
Expires
Aug 16 2026, 09:23 (15 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
83/61/5a4918fc98cda6cc21fec8843f40
Default Alt Text
MMLmsub.php (1 KB)

Event Timeline