2,750
articles
{{{header}}}

{{{top text}}}

Template Documentation
Portions of this template may not be visible without parameter values provided

Description

This template is used to create notice templates or to create one time use notices on pages.

Syntax & Usage

{{Notice
|scope = {{{scope|page}}}
|border = <Color>
|border class = <Class Name>
|header = <Notice Title>
|top text = <Notice Top Text>
|bottom text = <Notice Bottom Text>
|section text = <Section Notice Text>
}}

Generally, all the parameters should be filled out, though the bottom text is at times not necessary.

  • scope is used to determine if the notice is for the entire page or just a section. Because of this, this parameter should always be set to {{{scope|page}}}.
    • When set to page, the notice will be far larger, containing a title, bolded primary text and regular secondary text. Seen at the top of the page. Information in it applies to the page in its entirety.
    • When set to section, the notice is quite small, only containing a short sentence or two. Seen at the top of a section. Information in it applies to only the section it is in.
  • border is used to give the notice's left border a color. There is no set way to do this, meaning any way to add color to a border can be used. This includes using the color name, a hex code or variable.
  • border color is used to give the notice's left border a color. In this case, a class name has to be used, which is generally created by making a subpage for a template with the class created, or by using one from another template.
  • header is the title of the notice. This should generally be short and often times is the same as the template name.
  • top text is the bolded text that appears on the notice.
  • bottom text is the text under the bolded text.
  • section text is the text displayed when scope of the template is set to section.

Examples

Stub Template (border)

{{Notice
|scope = {{{scope|page}}}
|border = #FFF200
|header = Stub
|top text = The {{PAGENAME}} is a [[:Category:Stub|stub]].
|bottom text = You can help the Tower Defense Simulator Wiki by [{{fullurl:{{FULLPAGENAME}}|action=edit adding}}] more information about it.
}}
Stub

The Notice is a stub.
You can help the Tower Defense Simulator Wiki by adding more information about it.

Stub Template (border class)

<div class="desktop-only mobile-only><templatestyles src="Template:Stub/border.css"/></div>
{{Notice
|scope = {{{scope|page}}}
|border class = notice-stub
|header = Stub
|top text = The {{PAGENAME}} is a [[:Category:Stub|stub]].
|bottom text = You can help the Tower Defense Simulator Wiki by [{{fullurl:{{FULLPAGENAME}}|action=edit adding}}] more information about it.
|section text = The section is a [[:Category:Stub|stub]]. You can help the Wiki by [{{fullurl:{{FULLPAGENAME}}|action=edit adding}}] more information about it.
}}
Stub

The Notice is a stub.
You can help the Tower Defense Simulator Wiki by adding more information about it.

Stub Template (section)

<div class="desktop-only mobile-only><templatestyles src="Template:Stub/border.css"/></div>
{{Notice
|scope = {{{scope|section}}}
|border class = notice-stub
|header = Stub
|top text = The {{PAGENAME}} is a [[:Category:Stub|stub]].
|bottom text = You can help the Tower Defense Simulator Wiki by [{{fullurl:{{FULLPAGENAME}}|action=edit adding}}] more information about it.
|section text = The section is a [[:Category:Stub|stub]]. You can help the Wiki by [{{fullurl:{{FULLPAGENAME}}|action=edit adding}}] more information about it.
}}
The section is a stub. You can help the Wiki by adding more information about it.