模板:Caution/doc

< 模板:Caution
wikilife>Vanisaac2020年4月24日 (五) 09:20的版本 →‎Exampleclean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#if: |
         |   {{#ifexist:模板:Caution
                  | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

This is the {{caution}} message box.

When used in articles this message box should only be used for when something is seriously wrong and there isn't a more specific template to use. 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.

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

Example

{{caution|Include text here.}}

This is how this box looks on article (main space) 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:

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

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

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

Which on this page renders like this:

Note that changing the image is discouraged when the box is used in articles.