Skip to content

Return of Reckoning

Wiki

RoR Wiki

Template:Mainbox: Difference between revisions

From RoR Wiki
Created page with "<includeonly><div class="eu4box-inline plainlist" style="float: left; margin-right: 5px; margin-bottom: 5px; flex: 1 1 20rem;"> <div style="font-size: 125%; padding: 3px 0px 0..."
 
Fix Mainbox example icon and clarify template documentation
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><div class="eu4box-inline plainlist" style="float: left; margin-right: 5px; margin-bottom: 5px; flex: 1 1 20rem;">
<includeonly><div class="box-inline plainlist" style="float: left; margin-right: 5px; margin-bottom: 5px; flex: 1 1 20rem;">
<div style="font-size: 125%; padding: 3px 0px 0px 0px; text-indent: 0.5em; color: black;">{{{title|title}}}</div><hr style="border-top: 2px solid #b37570;"><div style="padding: 5px;">{{MultiColumn|
<div style="font-size: 125%; padding: 3px 0px 0px 0px; text-indent: 0.5em; color: white;"> [[{{{icon}}}|46px|link=]] {{{title|title}}}</div><hr style="border-top: 2px solid #b37570;"><div style="padding: 5px;">{{MultiColumn|
{{{content|
{{{content|Unknown}}}
* [[File:Unknown.png|36px|link=]] Unknown}}}
|{{{col|2}}}}}
|{{{col|2}}}}}
</div></div></includeonly><noinclude>
</div></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.
A styled box for presenting content, usually a short list. For a clean layout, place several boxes inside a wrapper template.


== Parameters ==
== Parameters ==
{| class="wikitable"
{| class="wikitable"
! Parameter !! Notes !! Status
! Parameter !! Notes !! Status
|-
| icon
| File used in the box heading
| '''required'''
|-
|-
| title
| title
| Content box title
| Content box title
| '''required'''
| '''required'''
|-  
|-
| content
| content
| Content to appear in the box
| Content to appear in the box
| '''required'''
| '''required'''
|-  
|-
| col
| col
| Number of columns for content to spread over. Default set to "2".
| Number of columns for content to spread over. Default set to "2".
Line 25: Line 28:


== Syntax ==
== Syntax ==
<code><nowiki>{{mainbox|title|content|column}}</nowiki></code>
<code><nowiki>{{mainbox|icon=File:Ea_icon_corner_help.png|title=Example|content=Example text|col=1}}</nowiki></code>


== Usage ==
== Usage ==
<pre>
<pre>
{{mainbox
{{mainbox
|icon=File:Ea_icon_corner_help.png
|title=Example
|title=Example
|content=
|content=
* [[File:Unknown.png|36px|link=]] Unknown
* Example item one
* [[File:Unknown.png|36px|link=]] Unknown
* Example item two
* [[File:Unknown.png|36px|link=]] Unknown
* Example item three
|col=1}}
|col=1}}
</pre>
</pre>
Line 40: Line 44:
; Outcome
; Outcome
{{mainbox
{{mainbox
|icon=File:Ea_icon_corner_help.png
|title=Example
|title=Example
|content=
|content=
* [[File:Unknown.png|36px|link=]] Unknown
* Example item one
* [[File:Unknown.png|36px|link=]] Unknown
* Example item two
* [[File:Unknown.png|36px|link=]] Unknown
* Example item three
|col=1}}
|col=1}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 16:44, 15 November 2026

A styled box for presenting content, usually a short list. For a clean layout, place several boxes inside a wrapper template.

Parameters

Parameter Notes Status
icon File used in the box heading required
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|icon=File:Ea_icon_corner_help.png|title=Example|content=Example text|col=1}}

Usage

{{mainbox
|icon=File:Ea_icon_corner_help.png
|title=Example
|content=
* Example item one
* Example item two
* Example item three
|col=1}}
Outcome
Example

  • Example item one
  • Example item two
  • Example item three