From Appropedia
Jump to navigation Jump to search

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}}, but you can use {{slim notice}} for a smaller headline, or {{box}} to have no headline. Other than the headline parameter, the usage is the same for each.

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

|headline=Your headline
|content=Your notice text
}} produce:

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

|headline=Your headline
|content=Your notice text
}} 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
|image=Under construction orange.jpg
|content=This is a notice with a picture.
Under construction orange.jpg This is a notice with a picture.


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]

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?)

Slim notices[edit]

Where you want a more discrete notice taking up a bit less room, use {{slim notice}}.


{{slim notice
|headline=This is a slim notice
|content=This is an explanation


This is a slim notice
This is an explanation

To make a similar notice without color, use {{slim notice clear}}, e.g.:

{{slim notice clear
|width= 70%
|headline=Part of the [[XFZ]] project.
|content=''This project is a work in progress - please check back in Jan 2013 for updates.''}}


Part of the XFZ project.
This project is a work in progress - please check back in Jan 2013 for updates.

More examples[edit]

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.



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.


Primary sources warning
Note that this page references primary sources.
Care should be taken to read critically and weigh the evidence.
Remember that isolated scientific studies should not be relied on, especially in matters of health and safety.

Wrapping text (or not)[edit]

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]

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.

[[Category:This is the category name]]

Template category and usage notes[edit]

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):

== Usage ==




[[Category:Notice templates]]

Alignment in raw coded notices[edit]

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




...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]