Template:Notice/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
(Trying code tags instead of pre tags around the code examples.)
meta>Davidgothberg
(Revert myself and a fix. The pre tags were much more readable.)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!--
    PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
-->


This is the {{tl|notice}} message box.
This is the {{tl|notice}} message box.
Line 14: Line 16:
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:


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


Which renders like this:  
Which renders like this:  
Line 23: Line 27:
An optional '''header''' text can be added. Like this:
An optional '''header''' text can be added. Like this:


:<code><nowiki>{{notice|header=Header text|Include text here.}}</nowiki></code>
<pre>
{{notice|header=Header text|Include text here.}}
</pre>


Which renders like this:  
Which renders like this:  
Line 36: Line 42:
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:
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:


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


Which renders like this:  
Which renders like this:  
Line 44: Line 52:
The '''header''' parameter works on talk pages too. But there is one parameter that only works on talk pages, the '''small''' parameter. 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:


:<code><nowiki>{{notice|small=yes|header=Header text|Include text here.}}</nowiki></code>
<pre>
{{notice|small=yes|header=Header text|Include text here.}}
</pre>


{{notice|demospace=talk|small=yes|header=Header text|Include text here.}}
{{notice|demospace=talk|small=yes|header=Header text|Include text here.}}
Line 52: Line 62:
Let's try the '''image''' parameter too. Like this:
Let's try the '''image''' parameter too. Like this:


:<code><nowiki>{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg|header=Header text|Include text here.}}</nowiki></code>
<pre>
{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg
  |header=Header text|Include text here.}}
</pre>


{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg|header=Header text|Include text here.}}
{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg|header=Header text|Include text here.}}
Line 60: Line 73:
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.


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


Which renders like this:  
Which renders like this:  
Line 68: Line 83:
The box can also take an '''image''' parameter. Like this:
The box can also take an '''image''' parameter. Like this:


:<code><nowiki>{{Notice|image=Stop hand nuvola.svg|Include text here.}}</nowiki></code>
<pre>
{{Notice|image=Stop hand nuvola.svg|Include text here.}}
</pre>
 
Which renders like this:


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

Revision as of 02:35, 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:

Page Module:Message box/tmbox.css has no content.

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

Page Module:Message box/tmbox.css has no content.

As you can see, "small=yes" causes a smaller right floating box with a smaller image and smaller text size.
Let's try the image parameter too. Like this:

{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg
  |header=Header text|Include text here.}}

Page Module:Message box/tmbox.css has no content.


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

Which renders like this:

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 its documentation about the different options for article message boxes.