"Загвар:Notice"-ны өөр хувилбарууд

Хуудсыг '{{ambox | demospace = {{{demospace|}}} | image = {{#if:{{{image|}}}| [[Image:{{{image}}}|40px|Notice]] }} | text = {{#if:{{{header|}}} | <div style...'-р сольж байна.
(Хуудас үүсгэв: "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> ==Хэрэглээ== Энэ нь {{tl|мэдээллийн}} за...")
 
(Хуудсыг '{{ambox | demospace = {{{demospace|}}} | image = {{#if:{{{image|}}}| [[Image:{{{image}}}|40px|Notice]] }} | text = {{#if:{{{header|}}} | <div style...'-р сольж байна.)
 
{{ambox
{{Documentation subpage}}
| demospace = {{{demospace|}}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
| image = {{#if:{{{image|}}}| [[Image:{{{image}}}|40px|Notice]] }}
 
| text =
==Хэрэглээ==
{{#if:{{{header|}}}
Энэ нь {{tl|мэдээллийн}} загвар юм.
| <div style="text-align:center;">'''{{{header}}}'''</div>
 
}}{{{1|}}}
This template should be used '''sparingly''' in articles, and 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.
| small = {{{small|}}}
 
| smallimage = {{#if:{{{image|}}}| [[Image:{{{image}}}|30px|Notice]] }}
This message box can also be used on other pages, such as on the top of talk or project pages. There it can be used in a more relaxed way.
}}<noinclude>
 
{{doc}}
This box automatically changes style depending on what kind of page it is shown on. That is, it uses the standardised message box styles for the different types of pages.
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
=== Articles ===
 
This is how this box looks on article (main space) pages. Here is a code example:
 
<pre>
{{notice|Include text here.}}
</pre>
 
Which renders like this:
 
{{Notice|demospace=main|Include text here.}}
 
 
An optional '''header''' text can be added. Like this:
 
<pre>
{{notice|header=Header text|Include text here.}}
</pre>
 
Which renders like this:
 
{{notice|demospace=main|header=Header text|Include text here.}}
 
 
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:
 
<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=yes" causes a smaller right floating box with a smaller image and smaller text size.
<br clear=all>
Let's try the '''image''' parameter too. Like this:
 
<pre>
{{notice|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.}}
<br clear=all>
 
=== Image and category pages ===
 
This is how this box looks on image pages:
 
{{notice|demospace=image|Include text here.}}
 
This is how this box looks on category pages:
 
{{notice|demospace=category|Include text here.}}
 
=== Other pages ===
 
This is how this box looks on most other pages, such as pages that start with "User:", "Wikipedia:", "Help:" and so on.
 
<pre>
{{notice|Include text here.}}
</pre>
 
Which renders like this:
 
{{notice|Include text here.}}
 
The box can also take an '''image''' parameter. Like this:
 
<pre>
{{notice|image=Stop hand nuvola.svg|Include text here.}}
</pre>
 
Which renders 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.
 
=== Using external links ===
 
In most cases, external links can be used in the template without any complications. However, links containing an equal sign ( = ) are not read properly, because everything on the left of the equal sign is interpreted as a parameter name. This is the suggested work-around:
 
<pre>
{{notice|1=Following this parameter, an equal sign in an external link will be read properly.}}
</pre>
 
== See also ==
* {{tl|consensus}} – for topics based around reaching consensus
* {{tl|warning}} – for important warnings
* {{tl|blackboxwarning}} – for extreme situations
* {{tl|caution}} – for messages indicating serious problems
* {{tl|ambox}} – article message boxes of any type; there is comprehensive documentation of its different options
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Talk header templates|{{PAGENAME}}]]
[[Category:Notice and warning templates|{{PAGENAME}}]]
 
<!--[[labconsole:Template:Notice]]-->
}}</includeonly>
 
<includeonly>
[[el:Πρότυπο:Σημείωση]]
[[es:Plantilla:Aviso]]
[[vi:Bản mẫu:Hộp thông báo]]
</includeonly>
637

edits