Toggle menu
15
237
100
27.9K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Prd (talk | contribs)
Created page with "{{doc sub}} This module is used for Template:Blocks. === Usage === To use this module, add the following code to your wiki page: <code><nowiki>{{#invoke:Blocks|main}}</nowiki></code> === Inputs === See Template:Blocks/doc. === Outputs === 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 <code><nowiki><h2></nowiki></code> heading, followed by an edit l..."
 
Prd (talk | contribs)
No edit summary
Line 14: Line 14:
* The section name (if provided) as an <code><nowiki><h2></nowiki></code> heading, followed by an edit link (either to that page or the transcluded page if a page title is passed).
* The section name (if provided) as an <code><nowiki><h2></nowiki></code> 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 <code><nowiki><div></nowiki></code> with the class <code>blocks-block</code>.
* The transcluded content from the specified page or the provided content, wrapped in a <code><nowiki><div></nowiki></code> with the class <code>blocks-block</code>.
<noinclude>
<includeonly>
[[Category:Modules]]
</includeonly><noinclude>
[[Category:Module documentation pages]]
[[Category:Module documentation pages]]
</noinclude>
</noinclude>

Revision as of 02:01, 26 February 2025

This module is used for Template:Blocks.

Usage

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

{{#invoke:Blocks|main}}

Inputs

See Template:Blocks/doc.

Outputs

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.