MediaWiki
1.30.0
|
This class handles formatting poems in WikiText, specifically anything within <poem></poem> tags. More...
Static Public Member Functions | |
static | init (&$parser) |
Bind the renderPoem function to the <poem> tag. More... | |
static | renderPoem ( $in, $param=[], $parser=null, $frame=false) |
Parse the text into proper poem format. More... | |
Static Protected Member Functions | |
static | indentVerse ( $m) |
Callback for preg_replace_callback() that wraps content in an indented span. More... | |
static | replaceSpaces ( $m) |
Callback for preg_replace_callback() that replaces spaces with non-breaking spaces. More... | |
This class handles formatting poems in WikiText, specifically anything within <poem></poem> tags.
Definition at line 6 of file Poem.class.php.
|
staticprotected |
Callback for preg_replace_callback() that wraps content in an indented span.
array | $m | Matches from the regular expression
|
Definition at line 76 of file Poem.class.php.
References $attribs, and Html::rawElement().
|
static |
Bind the renderPoem function to the <poem> tag.
Parser | &$parser |
Definition at line 12 of file Poem.class.php.
References $parser.
|
static |
Parse the text into proper poem format.
string | $in | The text inside the poem tag |
array | $param | |
Parser | $parser | |
bool | $frame |
Definition at line 25 of file Poem.class.php.
References $attribs, $parser, and Html::rawElement().
|
staticprotected |
Callback for preg_replace_callback() that replaces spaces with non-breaking spaces.
array | $m | Matches from the regular expression
|
Definition at line 65 of file Poem.class.php.