Template:Notice: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><div {{#if:{{{id|}}}|id="{{{id}}}"}} class="notice hide-for-print {{{class|}}}" style="{{{style}}}">{{#if:{{{b|}}}|<div style="font-weight:bold;">{{{b}}}</div>|}}{{{1}}}{{#if:{{{caption|}}}|''{{{caption}}}''|}}</div><html><style>.notice p{margin-bottom:0rem;!important}</style></html> | ||
<div {{#if:{{{id|}}}|id="{{{id}}}"}} class="notice hide-for-print {{{class|}}}" style="{{{style}}}">{{#if:{{{b|}}}|<div style="font-weight:bold;">{{{b}}}</div>|}}{{{1}}}{{#if:{{{caption|}}}|''{{{caption}}}''|}} | |||
</div> | |||
<html><style>.notice p{margin-bottom:0rem;!important}</style></html> | |||
</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. | 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. |
Revision as of 11:44, 2 April 2022
The Notice template is a parent template that helps build Notice Templates. This template should never be used in its raw form on an article, but instead should be used to create new templates.
Parameters
{{{style}}} - allows the user to set various style elements of the notice box, like background color
{{{b}}} - optional parameter that creates a bolded title for the notice box
{{{1}}} - the regular text in the notice box
Examples
Here is one example of a potential notice box.
This code on the template page
{{notice|style=background-color:#CCA;
|b=This is the bold title of the box!
|1=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;
|1=This notice doesn't have a bold title
}}
Derived Templates
- Template:Notice (transclusion) (← links)
- Template:Nonmainstream (transclusion) (← links)
- Template:Attention (transclusion) (← links)
- Template:Complete (transclusion) (← links)
- Template:Template accesscontrol (transclusion) (← links)
- Template:Tmbox/doc (← links)
- Template:Clinical and Radiological Anatomy of the Lumbar Spine Chapters (transclusion) (← links)
- Template:Management of Acute and Chronic Neck Pain Chapters (transclusion) (← links)
- Template:Opinion (transclusion) (← links)
- Template:Orthopaedic Basic Science Chapters (transclusion) (← links)
- Template:Management of Acute and Chronic Low Back Pain Chapters (transclusion) (← links)
- Template:Open access (transclusion) (← links)
- Template:Open access modified (transclusion) (← links)
- Template:Creative commons not compatible (transclusion) (← links)
- Template:Controversial (transclusion) (← links)
- Template:Ported (transclusion) (← links)