Template:Mainbox: Difference between revisions

From Against the Storm Official Wiki
m (Removed some hardcoded styling)
m (Added wrapping div for styling the whole box)
 
Line 1: Line 1:
<includeonly><div class="ats-mainbox"><h3>{{{title|title}}}</h3></div>
<includeonly><div class="ats-mainbox">
<h3>{{{title|title}}}</h3>
<div>
<div>
{{{content|
{{{content|
* [[File:Unknown.png|36px|link=]] Unknown}}}
* [[File:Unknown.png|36px|link=]] Unknown}}}
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
Styled box to showcased content, mostly in the form of a list. For best looking result stick several inside a {{template|box wrapper}} template.
Styled box to showcased content, mostly in the form of a list. For best looking result stick several inside a {{template|box wrapper}} template.

Latest revision as of 17:51, 23 December 2023

Styled box to showcased content, mostly in the form of a list. For best looking result stick several inside a Template:Template template.

Parameters

Parameter Notes Status
title Content box title required
content Content to appear in the box required
col Number of columns for content to spread over. Default set to "2". optional

Syntax

{{mainbox|title|content|column}}

Usage

{{mainbox
|title=Example
|content=
* [[File:|36px|link=]] Unknown
* [[File:|36px|link=]] Unknown
* [[File:|36px|link=]] Unknown
|col=1}}
Outcome

Example

  • [[File:|36px|link=]] Unknown
  • [[File:|36px|link=]] Unknown
  • [[File:|36px|link=]] Unknown