Template:Noticebox: Difference between revisions

From VRChat Wiki
m (Fixed category name)
No edit summary
Line 1: Line 1:
{| class"noticeBox" style="padding: 3px; border-color:{{{border|#000}}}; background:{{{background|}}};"
{| class"noticeBox" style="padding: 3px; border-color:{{{border|#000}}}; background:{{{background|}}};color:{{{textcolor|#000}}}"
| [[File:{{{1|placeholder.png}}}|{{{size|64px}}}|link=]] || '''{{{2|TITLE MISSING}}}'''<br>{{{3|DESC MISSING}}}
| [[File:{{{1|placeholder.png}}}|{{{size|64px}}}|link=]] || '''{{{2|TITLE MISSING}}}'''<br>{{{3|DESC MISSING}}}
|}<noinclude>
|}<noinclude>
{{templatedocs}}[[Category:Templates]][[Category:Templates/Noticeboxes]]</noinclude>
{{templatedocs}}[[Category:Templates]][[Category:Templates/Noticeboxes]]</noinclude>

Revision as of 19:34, 8 June 2024

Placeholder.png TITLE MISSING
DESC MISSING

Please refrain from editing this template if you do not know what you are doing!

Documentation

This is a customizable notice box that can be used on pages and acts as the foundation for other notice boxes on the wiki.

{{Noticebox
|image=
|title=
|message=
|size=
|border=
|border-width=
|background=
|textcolor=}}

Example Usage

{{Noticebox|Vrrat_thumbsup.png|VRRat is cool!|Please deliver upon them cheese.|size=16px|border=#F8CC3A|border-width=2px|background=#F5EFDC|textcolor=#000022}}

will make:

Vrrat thumbsup.png VRRat is cool!
Please deliver upon them cheese.

Template parameters

Caption text
Name Variable Description Default
Image image=
Can also be parameter 1.
Noticebox image. File:PlaceholderRoss.png PlaceholderRoss.png
Title title=
Can also be parameter 2.
the title of the notice box. Notice
Message message=
Can also be parameter 3.
the description of the notice box. Description missing
Image size size= (Optional) size of the image file 64px
border color border= (Optional) border of the notice box #000000
border width border-width= (Optional) border width 1px
background color background= (Optional) background color of the notice box #ebebeb
text color textcolor= (Optional) font color of the notice box #000000

For creating new noticeboxes

Template parameters

ParameterDescriptionTypeStatus
Image1 image

Image displayed in noticebox

Default
File:PlaceholderRoss.png
Filerequired
Title2 title

Title of the noticebox

Default
Notice
Stringrequired
Message3 message

Message displayed in noticebox.

Default
Description missing
Stringrequired
Border colorborder

(Optional) border of the notice box

Default
#000000
Stringsuggested
Border Widthborder-width

Width of the border (in px)

Default
1px
Example
2px
Stringsuggested
Background Colorbackground

(Optional) background color of the notice box

Default
#ebebeb
Stringsuggested
Text Colortextcolor

(Optional) text color of the notice box.

Default
#000000
Stringsuggested