Template:Sidebox: Difference between revisions
From Step Mods | Change The Game
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div style="width:{{{width|300}}}px; float:{{{1}}}; | <includeonly><div class="sideBox" style="width:{{{width|300}}}px; float:{{{1}}}; text-align:{{{contentAlign|justify}}};"><span class="sideBoxHeader" >'''{{{2}}}'''</span><br><hr>{{{3}}}</div></includeonly><noinclude>__NOTOC____NOTITLE__[[Category:Instruction Templates]] | ||
== Purpose & Usage == | == Purpose & Usage == | ||
Line 26: | Line 24: | ||
: Default= 300 | : Default= 300 | ||
: Width of the box in pixels. | : Width of the box in pixels. | ||
== Examples == | == Examples == |
Revision as of 04:29, January 12, 2021
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.
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.
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.
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