Page MenuHomeWickedGov Phorge

MMLmmultiscripts.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

MMLmmultiscripts.php

<?php
namespace MediaWiki\Extension\Math\WikiTexVC\MMLnodes;
/**
* Presentation MathML 3 Element
* name: "mmultiscripts"
* description: "?"
* category: "?"
*/
class MMLmmultiscripts extends MMLbase {
public function __construct( string $texclass = "", array $attributes = [] ) {
parent::__construct( "mmultiscripts", $texclass, $attributes );
}
/**
* @param MMLbase $base Main element being annotated
* @param MMLbase|null $postsubscript Subscript placed after the base
* @param MMLbase|null $postsuperscript Superscript placed after the base
* @param MMLbase|null $presubscript Subscript placed before the base
* @param MMLbase|null $presuperscript Superscript placed before the base
* @param string $texclass Optional TeX class for styling
* @param array $attributes Additional HTML attributes for the element
* @return static New instance with children ordered as:
* [base, postsubscript, postsuperscript, presubscript, presuperscript]
*/
public static function newSubtree(
MMLbase $base,
?MMLbase $postsubscript = null,
?MMLbase $postsuperscript = null,
?MMLbase $presubscript = null,
?MMLbase $presuperscript = null,
string $texclass = "",
array $attributes = []
) {
$instance = new self( $texclass, $attributes );
$children = [ $base ];
// Handle postscripts (must come in pairs)
$children[] = $postsubscript;
$children[] = $postsuperscript;
// Handle prescripts (requires mprescripts marker)
$hasPre = $presubscript || $presuperscript;
if ( $hasPre ) {
$children[] = new MMLmprescripts();
$children[] = $presubscript;
$children[] = $presuperscript;
}
$instance->children = $children;
return $instance;
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Aug 19, 10:25 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
31/d3/19834a78c61889e75387625e2d8c
Default Alt Text
MMLmmultiscripts.php (1 KB)

Event Timeline