Template:Notice: Difference between revisions

From The Reed and Rite
mNo edit summary
mNo edit summary
Line 22: Line 22:
! width=25%|You Type
! width=25%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|- style="text-align: left; background-color: white;"
| <pre>Test</pre>
| <pre>{{notice
| Test
|text=This is a notice.
}}</pre>
| {{notice|text=This is a notice.}}
|-  
|-  
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Add a Heading</span><br><span style="font-weight: normal;">Explanation</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Add a Heading</span><br><span style="font-weight: normal;">Explanation</span>
Line 30: Line 32:
! width=25%|You Type
! width=25%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|- style="text-align: left; background-color: white;"
| <pre>Test</pre>
| <pre>Test</pre>
| Test
| Test
Line 38: Line 40:
! width=25%|You Type
! width=25%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|- style="text-align: left; background-color: white;"
| <pre>Test</pre>
| <pre>Test</pre>
| Test
| Test
Line 46: Line 48:
! width=25%|You Type
! width=25%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|- style="text-align: left; background-color: white;"
| <pre>Test</pre>
| <pre>Test</pre>
| Test
| Test
Line 54: Line 56:
! width=25%|You Type
! width=25%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|- style="text-align: left; background-color: white;"
| <pre>Test</pre>
| <pre>Test</pre>
| Test
| Test
Line 62: Line 64:
! width=25%|You Type
! width=25%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|- style="text-align: left; background-color: white;"
| <pre>Test</pre>
| Test
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Prevent Dismissal</span><br><span style="font-weight: normal;">Explanation</span>
|-
! width=25%|You Type
!You Get
|- style="text-align: left; background-color: white;"
| <pre>Test</pre>
| <pre>Test</pre>
| Test
| Test
Line 70: Line 80:
! width=25%|You Type
! width=25%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|-  
| colspan="2" style="text-align: center;" | '''Without using <code>clear=yes</code>.'''
|- style="text-align: left; background-color: white;"
| <pre>Test</pre>
| Test
|-
| colspan="2" style="text-align: center;" | '''Using <code>clear=yes</code>.'''
|- style="text-align: left; background-color: white;"
| <pre>Test</pre>
| <pre>Test</pre>
| Test
| 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.



Revision as of 03:39, 24 April 2025

Description

This template is a parent template that helps build Notice Templates. It is not intended to be used on its own, but rather to be used to help build other notice templates.

Usage

Text Only
Explanation
You Type You Get
{{notice
|text=This is a notice.
}}
×
This is a notice.
Add a Heading
Explanation
You Type You Get
Test
Test
Change Color
Explanation
You Type You Get
Test
Test
Add a Border
Explanation (Border Help)
You Type You Get
Test
Test
Adjust Width
Explanation
You Type You Get
Test
Test
Adjust Alignment
Explanation
You Type You Get
Test
Test
Prevent Dismissal
Explanation
You Type You Get
Test
Test
Clear Other Elements
Explanation
You Type You Get
Without using clear=yes.
Test
Test
Using clear=yes.
Test
Test

Here is one example of a potential notice box.

This code on the template page {{notice|style=background-color:#CCA; |header=This is the bold title of the box! |text=This is the regular text with more detail }}

produces this when the template is used:

×
This is the bold title of the box!
This is the regular text with more detail

Here's another example, this time without the bold line at the top.

This code on the template page {{notice|style=background-color:#FAA; |text=This notice doesn't have a bold title }}


This notice doesn't have a bold title


Use |clear=yes if the notice is interfering with other elements.


×
This is a test
this is also a test


Derived Templates