Template:Notice: Difference between revisions
m →Usage |
m →Usage |
||
| Line 20: | Line 20: | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Text Only</span><br><span style="font-weight: normal;">Explanation</span> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Text Only</span><br><span style="font-weight: normal;">Explanation</span> | ||
|- | |- | ||
! width= | ! width=30%|You Type | ||
!You Get | !You Get | ||
|- style="text-align: left; background-color: white;" | |- style="text-align: left; background-color: white;" | ||
| Line 30: | Line 30: | ||
! 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> | ||
|- | |- | ||
! width= | ! width=30%|You Type | ||
!You Get | !You Get | ||
|- style="text-align: left; background-color: white;" | |- style="text-align: left; background-color: white;" | ||
| Line 38: | Line 38: | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Change Color</span><br><span style="font-weight: normal;">Explanation</span> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Change Color</span><br><span style="font-weight: normal;">Explanation</span> | ||
|- | |- | ||
! width= | ! width=30%|You Type | ||
!You Get | !You Get | ||
|- style="text-align: left; background-color: white;" | |- style="text-align: left; background-color: white;" | ||
| Line 46: | Line 46: | ||
! 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> | ! 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= | ! width=30%|You Type | ||
!You Get | !You Get | ||
|- style="text-align: left; background-color: white;" | |- style="text-align: left; background-color: white;" | ||
| Line 54: | Line 54: | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Adjust Width</span><br><span style="font-weight: normal;">Explanation</span> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Adjust Width</span><br><span style="font-weight: normal;">Explanation</span> | ||
|- | |- | ||
! width= | ! width=30%|You Type | ||
!You Get | !You Get | ||
|- style="text-align: left; background-color: white;" | |- style="text-align: left; background-color: white;" | ||
| Line 62: | Line 62: | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Adjust Alignment</span><br><span style="font-weight: normal;">Explanation</span> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Adjust Alignment</span><br><span style="font-weight: normal;">Explanation</span> | ||
|- | |- | ||
! width= | ! width=30%|You Type | ||
!You Get | !You Get | ||
|- style="text-align: left; background-color: white;" | |- style="text-align: left; background-color: white;" | ||
| Line 70: | Line 70: | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Prevent Dismissal</span><br><span style="font-weight: normal;">Explanation</span> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Prevent Dismissal</span><br><span style="font-weight: normal;">Explanation</span> | ||
|- | |- | ||
! width= | ! width=30%|You Type | ||
!You Get | !You Get | ||
|- style="text-align: left; background-color: white;" | |- style="text-align: left; background-color: white;" | ||
| Line 78: | Line 78: | ||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Clear Other Elements</span><br><span style="font-weight: normal;">Explanation</span> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Clear Other Elements</span><br><span style="font-weight: normal;">Explanation</span> | ||
|- | |- | ||
! width= | ! width=30%|You Type | ||
!You Get | !You Get | ||
|- | |- | ||
Revision as of 03:42, 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.
}}
|
|
| 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:
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
}}
- Use
|clear=yesif the notice is interfering with other elements.
Derived Templates
- Template:Partial (transclusion) (← links | edit)
- Template:Complete (transclusion) (← links | edit)
- Template:Notice (transclusion) (← links | edit)
- Template:Stub (transclusion) (← links | edit)
- Template:Copyright (transclusion) (← links | edit)
- Template:Delete (transclusion) (← links | edit)
- Template:Spoiler (transclusion) (← links | edit)
- Template:Claim (transclusion) (← links | edit)
- Template:Theory (transclusion) (← links | edit)
- Template:Rename (transclusion) (← links | edit)
- Template:Test/A (transclusion) (← links | edit)
- Template:Editlock (← links | edit)
- Template:Update (transclusion) (← links | edit)