Get our free book on rainwater now - To Catch the Rain.

Help:Notices

From Appropedia
Jump to: navigation, 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...:

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

...to produce:

Your headline
Your notice text

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:

Your headline
Your notice text

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.
}}
Under construction orange.jpg This is a notice with a picture.


Colors[edit]

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

E.g.

{{slim notice
|width=80%
|background-color=Wheat
|border-color=SaddleBrown
|radius=10
|headline=This is a slim notice
|content=This is an explanation
}}

produces:

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.''}}

produces:

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.


{{AAG}}:

Appropedia Action Group

This is an Appropedia Action Group, an online collaboration to tackle one or more real world problems.



{{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}}:

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.

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

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

<noinclude>
== Usage ==

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

produces:

{{FOO}}

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

Alignment in raw coded notices[edit]

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]