Jump to content

Module:Blocks/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Warudo (talk | contribs) at 20:26, 29 August 2024 (Added the page to Category:Module documentation pages). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This module is used for Template:Blocks.

Usage

[edit]

To use this module, add the following code to your wiki page:

{{#invoke:Blocks|main}}

Inputs

[edit]

See Template:Blocks/doc#Usage.

Outputs

[edit]

This module outputs a single string containing the HTML markup for the generated blocks. Each block will include:

  • The section name (if provided) as an <h2> heading, followed by an edit link (either to that page or the transcluded page if a page title is passed).
  • The transcluded content from the specified page or the provided content, wrapped in a <div> with the class blocks-block.