Difference between revisions of "Template:Messagebox/doc"
Jump to navigation
Jump to search
GlitchyPSI (talk | contribs) (Add documentation) Tag: 2017 source edit |
GlitchyPSI (talk | contribs) m (Update doc) Tag: 2017 source edit |
||
Line 33: | Line 33: | ||
iconone=warning_icon.png| | iconone=warning_icon.png| | ||
toptext=You're in danger.| | toptext=You're in danger.| | ||
btmtext=Proceed with caution to avoid uhhhh spikes.|}} | |||
</pre> | </pre> | ||
{{clear}} | {{clear}} |
Latest revision as of 22:18, 25 January 2021
This is the base template of any and all "message boxes" that appear in articles. It supports a colored gradient bit in the left side, and two images.
Usage
This template has several parameters:
bordercolor
- It's the box's border color. Hex format. No need of #s.
topcolor
- It's the gradient's top color. Hex format. No need of #s.
bottomcolor
- It's the gradient's bottom color. Hex format. No need of #s.
bgcolor
- It's the background color of the box. Hex format. No need of #s.
iconone
- The icon on the left. This one is obligatory, or it will show the placeholder icon.
toptext
- The bolded text at the top.
btmtext
- The italicized text at the bottom.
icontwo (optional)
- The second icon. It's located at the right.
This should be used only for predefined messages.
An example of an error message using a placeholder icon:
{{Messagebox| bordercolor=400| topcolor=300| bottomcolor=640| bgcolor=FFD| iconone=warning_icon.png| toptext=You're in danger.| btmtext=Proceed with caution to avoid uhhhh spikes.|}}