Text::MediawikiFormat::Blocks(3pm) User Contributed Perl Documentation Text::MediawikiFormat::Blocks(3pm)

Text::MediawikiFormat::Blocks - blocktypes for Text::MediawikiFormat

None. Use Text::MediawikiFormat as the public interface, unless you want to create your own block type.

This module merely creates subclasses of Text::MediawikiFormat::Block, which is the interesting code. A block is a collection of related lines, such as a code block (text to display verbatim in a monospaced font), a header, an unordered list, an ordered list, and a paragraph (text to display in a proportional font).

Every block extends "Text::MediawikiFormat::Block".

The following methods exist:

"new( %args )"

Creates and returns a new block. The valid arguments are:

  • "text"

    The text of the line found in the block.

  • "args"

    The arguments captured by the block-identifying regular expression.

  • "level"

    The level of indentation for the block (usually only useful for list blocks).

  • "tags"

    The tags in effect for the current type of wiki formatting.

  • "opts"

    The options in effect for the current type of wiki formatting.

Use the accessors of the same names to retrieve the values of the attributes.

chromatic, "chromatic at wgz dot org"

No known bugs.

Copyright (c) 2006, chromatic. Some rights reserved.

This module is free software; you can use, redistribute, and modify it under the same terms as Perl 5.8.x.

2022-06-28 perl v5.34.0