Template:Notice/doc: Difference between revisions

From TestWiki
Content added Content deleted
(Intermediate save.)
(Intermediate save.)
Line 6: Line 6:
This is the {{tl|notice}} message box.
This is the {{tl|notice}} message box.


When used in articles this message box should only be used for ''important'' comments about the article that cannot be shown using a more specific template. Less important comments should as usual be put as text on the articles talk page instead.
When used in articles this message box should only be used for ''important'' comments about the article that cannot be shown using a more specific template. Less important comments should as usual be put as text on the article's talk page instead.


This message box can also be used on other pages, such as on the top of talk pages or project pages. There it can be used in a more relaxed way.
This message box can also be used on other pages, such as on the top of talk pages or project pages. There it can be used in a more relaxed way.


This box looks different depending on what kind of page it is shown on.
This box automatically looks different depending on what kind of page it is shown on.


== Articles ==
=== Articles ===


This is how this box looks on article (main space) pages. Here is a code example:
This is how this box looks on article (main space) pages. Here is a code example:
Line 36: Line 36:




The message box can also take an '''image''' parameter, see example further down for that.
The message box can also take an '''image''' parameter, but that is discouraged when the box is used in articles. See example further down for how to use that parameter.


== Talk pages ==
=== Talk pages ===


And this is how this box looks on any talk page. That is, pages that start with "Talk:", "User talk:", "Image talk:" and so on.
This is how this box looks on any talk page. That is, pages that start with "Talk:", "User talk:", "Image talk:" and so on. Here's the basic box again:


<pre>
<pre>
Line 58: Line 58:
{{notice|demospace=talk|small=yes|header=Header text|Include text here.}}
{{notice|demospace=talk|small=yes|header=Header text|Include text here.}}


As you can see, '''small''' causes a smaller right floating box with a smaller image and smaller text size.
As you can see, "small=yes" causes a smaller right floating box with a smaller image and smaller text size.

The '''image''' parameter works on talk pages too. See example below for how to use that parameter.
<br clear=all>
<br clear=all>
== Other pages ==
=== Other pages ===


And this is how this box looks on all other pages, such as pages that start with "User:", "Image:", "Wikipedia:" and so on.
This is how this box looks on all other pages, such as pages that start with "User:", "Image:", "Wikipedia:" and so on.


<pre>
{{notice|Include text here.}}
</pre>


Which renders like this:
{{tlx|Notice|small&#61;yes|Include text here.}}
:''produces a smaller image:''
{{Notice|small=yes|Include text here.}}


{{Notice|Include text here.}}


The box can also take an '''image''' parameter. Like this:
{{tlx|Notice|image&#61;Stop hand nuvola.svg|Include text here.}}

:''produces a different image:''
<pre>
{{Notice|image=Stop hand nuvola.svg|Include text here.}}
{{Notice|image=Stop hand nuvola.svg|Include text here.}}
</pre>

{{Notice|image=Stop hand nuvola.svg|Include text here.}}

The '''header''' and '''image''' parameters can of course be used at the same time.

=== See also ===


==See also==
There are other message templates, which serve similar purposes:
There are other message templates, which serve similar purposes:
*'''{{tlx|Ambox}}''' - Article message boxes of any type. There is comprehensive information in the template documentation about the different options of message template.
*{{tlx|Consensus}} - For topics based around reaching consensus.
*{{tlx|Consensus}} - For topics based around reaching consensus.
*{{tlx|Warning}} - For important warnings.
*{{tlx|Warning}} - For important warnings.
*{{tlx|Caution}} - For messages indicating serious problems.
*{{tlx|Caution}} - For messages indicating serious problems.

*'''{{tlx|Ambox}}''' - Article message boxes of any type. There is comprehensive information in the template documentation about the different options of message template.





Revision as of 02:05, 20 March 2008

This is the {{notice}} message box.

When used in articles this message box should only be used for important comments about the article that cannot be shown using a more specific template. Less important comments should as usual be put as text on the article's talk page instead.

This message box can also be used on other pages, such as on the top of talk pages or project pages. There it can be used in a more relaxed way.

This box automatically looks different depending on what kind of page it is shown on.

Articles

This is how this box looks on article (main space) pages. Here is a code example:

{{notice|Include text here.}}

Which renders like this:


An optional header text can be added. Like this:

{{notice|header=Header text|Include text here.}}

Which renders like this:


The message box can also take an image parameter, but that is discouraged when the box is used in articles. See example further down for how to use that parameter.

Talk pages

This is how this box looks on any talk page. That is, pages that start with "Talk:", "User talk:", "Image talk:" and so on. Here's the basic box again:

{{notice|Include text here.}}

Which renders like this:

The header parameter works on talk pages too. But there is one parameter that only works on talk pages, the small parameter. Like this:

{{notice|small=yes|header=Header text|Include text here.}}

As you can see, "small=yes" causes a smaller right floating box with a smaller image and smaller text size.

The image parameter works on talk pages too. See example below for how to use that parameter.

Other pages

This is how this box looks on all other pages, such as pages that start with "User:", "Image:", "Wikipedia:" and so on.

{{notice|Include text here.}}

Which renders like this:

The box can also take an image parameter. Like this:

{{Notice|image=Stop hand nuvola.svg|Include text here.}}

The header and image parameters can of course be used at the same time.

See also

There are other message templates, which serve similar purposes:

  • {{Consensus}} - For topics based around reaching consensus.
  • {{Warning}} - For important warnings.
  • {{Caution}} - For messages indicating serious problems.
  • {{Ambox}} - Article message boxes of any type. There is comprehensive information in the template documentation about the different options of message template.