Parsoid
A bidirectional parser between wikitext and HTML5
|
Public Member Functions | |||||||||||||
dimensions (Opts $opts) | |||||||||||||
Format the dimensions as a string.
| |||||||||||||
scaleMedia (Opts $opts, Element $wrapper) | |||||||||||||
| |||||||||||||
getModules () | |||||||||||||
Public Member Functions inherited from Wikimedia\Parsoid\Ext\Gallery\TraditionalMode | |||||||||||||
render (ParsoidExtensionAPI $extApi, Opts $opts, ?DocumentFragment $caption, array $lines) | |||||||||||||
Render HTML for the given lines in this mode.
| |||||||||||||
getModuleStyles () | |||||||||||||
Protected Member Functions | |||||||||||||
__construct (?string $mode=null) | |||||||||||||
Create a PackedMode singleton. | |||||||||||||
perRow (Opts $opts, Element $ul) | |||||||||||||
| |||||||||||||
useTraditionalGalleryText () | |||||||||||||
galleryText (Document $doc, Element $box, ?Element $gallerytext, float $width) | |||||||||||||
| |||||||||||||
Protected Member Functions inherited from Wikimedia\Parsoid\Ext\Gallery\TraditionalMode | |||||||||||||
setAdditionalOptions (Opts $opts, Element $ul) | |||||||||||||
thumbWidth ( $width) | |||||||||||||
thumbHeight ( $height) | |||||||||||||
thumbStyle ( $width, $height) | |||||||||||||
boxWidth ( $width) | |||||||||||||
boxStyle ( $width, $height) | |||||||||||||
Protected Member Functions inherited from Wikimedia\Parsoid\Ext\Gallery\Mode | |||||||||||||
__construct (string $name) | |||||||||||||
Construct a (singleton) mode. | |||||||||||||
Additional Inherited Members | |
Static Public Member Functions inherited from Wikimedia\Parsoid\Ext\Gallery\Mode | |
static | byName (string $name) |
Return the Mode object with the given name, or null if the name is invalid. | |
Protected Attributes inherited from Wikimedia\Parsoid\Ext\Gallery\TraditionalMode | |
$scale | |
$padding | |
Protected Attributes inherited from Wikimedia\Parsoid\Ext\Gallery\Mode | |
$mode | |
|
protected |
Create a PackedMode singleton.
?string | $mode | Only used by subclasses. |
Reimplemented from Wikimedia\Parsoid\Ext\Gallery\TraditionalMode.
Reimplemented in Wikimedia\Parsoid\Ext\Gallery\PackedHoverMode, and Wikimedia\Parsoid\Ext\Gallery\PackedOverlayMode.
Wikimedia\Parsoid\Ext\Gallery\PackedMode::dimensions | ( | Opts | $opts | ) |
Format the dimensions as a string.
Opts | $opts |
Reimplemented from Wikimedia\Parsoid\Ext\Gallery\TraditionalMode.
|
protected |
Document | $doc | |
Element | $box | |
?Element | $gallerytext | |
float | $width |
Reimplemented from Wikimedia\Parsoid\Ext\Gallery\TraditionalMode.
Wikimedia\Parsoid\Ext\Gallery\PackedMode::getModules | ( | ) |
Reimplemented from Wikimedia\Parsoid\Ext\Gallery\Mode.
Opts | $opts | |
Element | $ul |
Reimplemented from Wikimedia\Parsoid\Ext\Gallery\TraditionalMode.
Opts | $opts | |
Element | $wrapper |
Reimplemented from Wikimedia\Parsoid\Ext\Gallery\TraditionalMode.
|
protected |
Reimplemented in Wikimedia\Parsoid\Ext\Gallery\PackedHoverMode, and Wikimedia\Parsoid\Ext\Gallery\PackedOverlayMode.