Template:Sidebox: Difference between revisions

From Step Mods | Change The Game
No edit summary
Line 6: Line 6:
{{fc|#e6b69e|Create a left or right floating sidebox.}}
{{fc|#e6b69e|Create a left or right floating sidebox.}}


=== Parameters ===
=== Required Parameters ===


; <nowiki>{{{1}}}</nowiki> {{CustomTag|color=red|tag=Required}}
; <nowiki>{{{1}}}</nowiki>
: First unmarked parameter defines the float position of the box.
: First unmarked parameter defines the float position of the box.
: Accepts: left || right
: Accepts: left || right


; <nowiki>{{{2}}}</nowiki> {{CustomTag|color=red|tag=Required}}
; <nowiki>{{{2}}}</nowiki>
: Second unmarked parameter defines the Header text for the box.
: Second unmarked parameter defines the Header text for the box.


; <nowiki>{{{3}}}</nowiki> {{CustomTag|color=red|tag=Required}}
; <nowiki>{{{3}}}</nowiki>
: Third unmarked parameter defines the content text for the box.
: Third unmarked parameter defines the content for the box.


=== Optional Parameters ===
; contentAlign
; contentAlign
: Default= justify
: Default= justify
Line 29: Line 30:
: Default= #9BC1D5
: Default= #9BC1D5
: Defines the color of the Header text.
: Defines the color of the Header text.


== Examples ==
== Examples ==

Revision as of 04:53, October 29, 2020


Template:Sidebox[edit source]

Purpose & Usage[edit source]

Create a left or right floating sidebox.

Required Parameters[edit source]

{{{1}}}
First unmarked parameter defines the float position of the box.
Accepts: left || right
{{{2}}}
Second unmarked parameter defines the Header text for the box.
{{{3}}}
Third unmarked parameter defines the content for the box.

Optional Parameters[edit source]

contentAlign
Default= justify
Controls the alignment of the default text within the box.
width
Default= 300
Width of the box in pixels.
headerColor
Default= #9BC1D5
Defines the color of the Header text.

Examples[edit source]

Code:

{{Sidebox|right|This is a heading|This is my sidebar with as much text as I could quickly write.}}

Result:

This is a heading

This is my sidebar with as much text as I could quickly write.

Code:

{{Sidebox|left|width=600|This is a heading|This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write.}}

Result:

This is a heading

This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write. This is my sidebar with as much text as I could quickly write.

Related Templates[edit source]

None