Template:Noticebox: Difference between revisions
From VRChat Wiki
No edit summary |
Tony Lewis (talk | contribs) m (Patch Aries) Tag: Manual revert |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| class"noticeBox" style="margin-left:auto; margin-right:auto; padding: 0.5rem 1rem; border-style:solid; border-radius: 0.5rem; border-color:{{{border|#000000}}}; border-width:{{{border-width|3px}}}; background:{{{background|#EBEBEB}}};color:{{{textcolor|#000000}}}" | |||
| [[File:{{{image|{{{1|PlaceholderRoss.png}}}}}}|{{{size|64px}}}|link=]] || '''{{{title|{{{2|<span style="color:#FF0000;">Notice</span>}}}}}}'''<br>{{{message|{{{3|<span style="color:#FF0000;">Description missing!}}}}}} | | <div style="padding-right:1em;">[[File:{{{image|{{{1|PlaceholderRoss.png}}}}}}|{{{size|64px}}}|link=]]</div> || '''{{{title|{{{2|<span style="color:#FF0000;">Notice</span>}}}}}}'''<br>{{{message|{{{3|<span style="color:#FF0000;">Description missing!}}}}}} | ||
|} | |} | ||
</includeonly><noinclude> | |||
{{templatedocs}}[[Category:Templates]][[Category:Templates/Noticeboxes]]</noinclude> | {{templatedocs}}[[Category:Templates]][[Category:Templates/Noticeboxes]] </noinclude> |
Latest revision as of 23:26, 23 August 2024
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 is cool! Please deliver upon them cheese. |
Template parameters
Name | Variable | Description | Default |
---|---|---|---|
Image | image= Can also be parameter 1. |
Noticebox image. | File: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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | 1 image | Image displayed in noticebox
| File | required |
Title | 2 title | Title of the noticebox
| String | required |
Message | 3 message | Message displayed in noticebox.
| String | required |
Border color | border | (Optional) border of the notice box
| String | suggested |
Border Width | border-width | Width of the border (in px)
| String | suggested |
Background Color | background | (Optional) background color of the notice box
| String | suggested |
Text Color | textcolor | (Optional) text color of the notice box.
| String | suggested |