Edit source Discussion

Help:Notices

From Appropedia

You can make a template like the notices on this page; or make a one-off notice. The usual tool for the job is the {{notice}}.

Use {{notice}} like this, where colors are defined either by number...:

{{notice
|width=80%
|background-color=#F3F2E0
|border-color=#B5B380
|headline=Your headline
|content=Your notice text
|radius=0
}}

...to produce:

or using the names of standard colors (with this table at Wikipedia):

{{notice
|width=60%
|background-color=PowderBlue
|border-color=Blue
|headline=Your headline
|content=Your notice text
|radius=8
}}

...to produce:

Note the "radius" term is changed from 0 (square corners) to 8 (rounded corners). The bigger the value the bigger the curve.

To place an image in the notice, with size defined in number of pixels, one way is to use {{notice with image}}:

{{notice with image
|width=70%
|background-color=LightYellow
|border-color=DarkOrange
|radius=0
|image=Under construction orange.jpg
|imagesize=150
|content=This is a notice with a picture.
}}

Colors[edit source]

Color and other details can be easily adjusted - look for the relevant value to change in the list of template parameters.

Standard color names are found in this table at Wikipedia.

More colors are found at HTML color codes - the color names often don't work, so use the code - e.g. #F3F2E0 - of the color you want.

To change the color of text, use <font color="COLOR NAME OR CODE">TEXT</font> - E.g. <font color="green">Hello</font> produces a green "Hello": Hello

Suggested color and format guidelines[edit source]

An initial attempt at creating some consistency - open to change...

Warnings, notices, problems with an article
Red border, yellow (e.g. LightYellow) background. (e.g. {{globalize}}). Pink background for more serious notices (e.g. {{category redirect}}
Tags inviting participation
Rounded corners. Probably use a nicer template than this one, perhaps with an image, or at least use nice colors :-).
Class attribution notices
Undecided so far - possibly picking a set or range of colors for a particular institution (An alternative might be to have particular colors for particular subjects, e.g. Engineering or Architecture, but as the articles will be categorized, that seems unnecessary.)
Maintenance templates
Light shades of grey (grey is the color of overalls... makes sense for maintenance? Or change to a more inviting color?)

More examples[edit source]

Below are other examples of notice templates, made the direct way (not using {{notice}}. Copy and edit the code of one of these to create a new notice template. Color and other details can be easily adjusted - look for the relevant part in the template header.


{{References}}:


{{115inprogress}}:

Engr115 Page in Progress
Warning: Possibly Inaccurate Content
This page is currently being edited by students in Engr115 Intro to Engineering. The content should be considered inaccurate until this message is removed. Please refrain from making edits before {{{1}}} unless you are a part of this class. Feel free to make comments using the discussion tab.



{{primarysources}}: Template:Primarysources

Wrapping text (or not)[edit source]

if your box uses align=right or align=left, and the width is less than the full width (e.g. style="width: 60%;" also written as width=60%) then text and/other content will wrap around the box.

If you want to stop the wrapping and put all new content below the content so far, then either:

  • use align=center
  • use width=100%
  • use the code <br clear=all/> after the notice (can be part of the template if desired).

Included category[edit source]

To add a category to all pages that use the template notice, but not add the category to the template itself, add the category between <includeonly></includeonly> tags.

<includeonly>
[[Category:This is the category name]]
</includeonly>

Template category and usage notes[edit source]

Remember to add Category:Notice templates to the page, between <noinclude></noinclude> tags (in the "Usage" section if there is one). This helps us all keep track of what notice templates have already been made.

At a minimum, paste this in on the template page (changing FOO to the name of the template):

<noinclude>
== Usage ==

 <nowiki>{{FOO}}</nowiki>

produces:

{{FOO}}

[[Category:Notice templates]]
</noinclude>

Alignment in raw coded notices[edit source]

In the first line of the table, after the {|, add:

style="float:right;"

or

align="right" 

...or center or left as the case may be.

These will allow any following text or page content to wrap around; if no such term is used, there is no wrapping.

See also[edit source]