Template:Notice: Difference between revisions

mNo edit summary
mNo edit summary
Line 12: Line 12:
--></div>
--></div>
</includeonly><noinclude>
</includeonly><noinclude>
The Notice template is a parent template that helps build [[:Category: Notices|Notice Templates]]. This template should never be used in its raw form on an article, but instead should be used to create new templates.
== Description ==
This template is a parent template that helps build [[:Category: Notices|Notice Templates]]. It is not intended to be used on its own, but rather to be used to help build other notice templates.


Change default background color to #EAEBEF if {{{color}}} is not passed.
== Usage ==
 
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{{notice|width=50%|header=Header|text=Test|color=pink|align=left|clear=yes}}
|-
== Parameters ==
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Text Only</span><br><span style="font-weight: normal;">Explanation</span>
{{{style}}} - allows the user to set various style elements of the notice box, like background color
|-
 
! width=25%|You Type
{{{b}}} - optional parameter that creates a bolded title for the notice box
!You Get
 
|- style="text-align: center; background-color: white;"
{{{1}}} - the regular text in the notice box
| <pre>Test</pre>
 
| Test
== Examples ==
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Add a Heading</span><br><span style="font-weight: normal;">Explanation</span>
|-
! width=25%|You Type
!You Get
|- style="text-align: center; background-color: white;"
| <pre>Test</pre>
| Test
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Change Color</span><br><span style="font-weight: normal;">Explanation</span>
|-
! width=25%|You Type
!You Get
|- style="text-align: center; background-color: white;"
| <pre>Test</pre>
| Test
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Add a Border</span><br><span style="font-weight: normal;">Explanation ([https://coding-help.fandom.com/wiki/Borders Border Help])</span>
|-
! width=25%|You Type
!You Get
|- style="text-align: center; background-color: white;"
| <pre>Test</pre>
| Test
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Adjust Width</span><br><span style="font-weight: normal;">Explanation</span>
|-
! width=25%|You Type
!You Get
|- style="text-align: center; background-color: white;"
| <pre>Test</pre>
| Test
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Adjust Alignment</span><br><span style="font-weight: normal;">Explanation</span>
|-
! width=25%|You Type
!You Get
|- style="text-align: center; background-color: white;"
| <pre>Test</pre>
| Test
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Clear Other Elements</span><br><span style="font-weight: normal;">Explanation</span>
|-
! width=25%|You Type
!You Get
|- style="text-align: center; background-color: white;"
| <pre>Test</pre>
| Test
|}


[https://coding-help.fandom.com/wiki/Borders Border Help]
Here is one example of a potential notice box.
Here is one example of a potential notice box.