Template:Sidebox: Difference between revisions
From Step Mods | Change The Game
No edit summary |
TechAngel85 (talk | contribs) (Added missing parameter definitions and added parameter to control header color.) |
||
Line 1: | Line 1: | ||
<includeonly><div style="width:{{{width|300}}}px; float:{{{1}}}; font-size:.95em; border:1px solid #4F5860; overflow:hidden; border-radius:5px; box-shadow:0px 0px 20px 20px #292B2C inset; padding:10px; text-align:justify; background:transparent; margin:10px 30px;"><span style="font-size:1.25em; color:#9BC1D5;">'''{{{2}}}'''</span><br | <includeonly><div style="width:{{{width|300}}}px; float:{{{1}}}; font-size:.95em; border:1px solid #4F5860; overflow:hidden; border-radius:5px; box-shadow:0px 0px 20px 20px #292B2C inset; padding:10px; text-align:justify; background:transparent; margin:10px 30px;"><span style="font-size:1.25em; color:{{{headerColor|#9BC1D5}}};">'''{{{2}}}'''</span><br><hr>{{{3}}}</div></includeonly><noinclude>__NOTOC__ | ||
== Purpose & Usage == | == Purpose & Usage == | ||
{{fc|#e6b69e|Create a left or right floating sidebox.}} | {{fc|#e6b69e|Create a left or right floating sidebox.}} | ||
=== Parameters === | |||
; <nowiki>{{{1}}}</nowiki> {{CustomTag|color=red|tag=Required}} | |||
: First unmarked parameter defines the float position of the box. | |||
: Accepts: left || right | |||
; <nowiki>{{{2}}}</nowiki> {{CustomTag|color=red|tag=Required}} | |||
: Second unmarked parameter defines the Header text for the box. | |||
; <nowiki>{{{3}}}</nowiki> {{CustomTag|color=red|tag=Required}} | |||
: Third unmarked parameter defines the content text for the box. | |||
; width | |||
: Default= 300 | |||
: Width of the box in pixels. | |||
; headerColor | |||
: Default= #9BC1D5 | |||
: Defines the color of the Header text. | |||
== Examples == | == Examples == |
Revision as of 19:55, July 29, 2020
Purpose & Usage[edit source]
Create a left or right floating sidebox.
Parameters[edit source]
- {{{1}}} Required
- First unmarked parameter defines the float position of the box.
- Accepts: left || right
- {{{2}}} Required
- Second unmarked parameter defines the Header text for the box.
- {{{3}}} Required
- Third unmarked parameter defines the content text for 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:
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:
See Also[edit source]
None