Jump to content

Template:Notice/doc: Difference between revisions

Intermediate save.
(Introduction done. Will wikify it later.)
(Intermediate save.)
Line 10:
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.
== Usage ==
 
== UsageArticles ==
 
This is how this box looks on article (main space) pages. Here is a code example:
 
<pre>
{{Noticenotice|Include text here.}}
</pre>
 
Which renders like this:
 
{{Notice|headerdemospace=Header textmain|Include text here.}}
 
 
An optional '''header''' text can be added. Like this:
 
<pre>
{{tlx|Noticenotice|header&#61;=Header text|Include text here.}}
</pre>
 
Which renders like this:
 
{{tlx|Notice|demospace=main|header=Header text|Include text here.}}
 
 
The message box can also take an '''image''' parameter, see example further down for that.
 
== 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.
 
<pre>
{{notice|Include text here.}}
</pre>
 
Which renders like this:
 
{{Notice|demospace=talk|Include text here.}}
 
The '''header''' parameter works on talk pages too. But there is one parameter that only works on talk pages, the '''small''' parameter. Like this:
 
<pre>
{{notice|small=yes|header=Header text|Include text here.}}
</pre>
 
{{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.
<br clear=all>
== 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.
 
{{tlx|Notice|Include text here.}}
:''produces:''
{{Notice|Include text here.}}
 
{{tlx|Notice|small&#61;yes|Include text here.}}
Line 20 ⟶ 69:
{{Notice|small=yes|Include text here.}}
 
{{tlx|Notice|header&#61;Header text|Include text here.}}
:''produces an additional header:''
{{Notice|header=Header text|Include text here.}}
 
{{tlx|Notice|image&#61;Stop hand nuvola.svg|Include text here.}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.