FANDOM



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

This template is the main structure that is used throughout the wiki. It usage is fairly simple as it is simply a block that encapsulates your given content.


Parameters

Parameter Description Default value
1 The first parameter is used to define the main content that the block should encapsulate. Even though this is an unnamed parameter it is recommended to use it as a named parameter. This means that you would use the "1=" syntax.
header The header for the block.
class / id For the purpose of uniquely styling, you can assign HTML classes and IDs to the block element. This used for optional styling of individual blocks. empty


Indented script version

<div class="block {{{class|}}}" id="{{{id|}}}">
    <h2>{{{header}}}</h2>
    {{{1}}}
</div>

Example

{{ItemBlock|header=My custom block|1=
    <p>My own content, that will support MediaWiki, Lua and HTML</p>
    [[File:Lancelot.png|155px]]
}}


My custom block

My own content, that will support MediaWiki, Lua and HTML

Lancelot
Community content is available under CC-BY-SA unless otherwise noted.