Template:Sidebox: Difference between revisions
From Step Mods | Change The Game
TechAngel85 (talk | contribs) |
TechAngel85 (talk | contribs) |
||
Line 32: | Line 32: | ||
== Examples == | == Examples == | ||
: '''Code:''' <code><nowikiw>{{Sidebox|right|This is a heading|This is my sidebar with as much text as I could quickly write.}}</nowiki></code> | |||
'''Code:''' | : '''Result:''' | ||
< | |||
'''Result:''' | |||
{{Sidebox|right|This is a heading|This is my sidebar with as much text as I could quickly write.}} | {{Sidebox|right|This is a heading|This is my sidebar with as much text as I could quickly write.}} | ||
{{clear}} | {{clear}} |
Revision as of 04:55, 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:
<nowikiw>
</nowiki> - Result:
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:
Related Templates[edit source]
None