الگو:توجه

الگو به طور دائم حفاظت‌شده است
از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

کاربرد

This is the {{توجه}} message box.

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.

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.

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.

مقاله‌ها

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

{{توجه|نوشته در اینجا.}}

Which renders like this:


The box can be titled with an optional header (heading), like this:

{{توجه|header=Header text|نوشته در اینجا.}}

or

{{توجه|heading=Header text|نوشته در اینجا.}}

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.

صفحه‌های بحث

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:

{{توجه|نوشته در اینجا.}}

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:

{{توجه|small=yes|header=Header text|نوشته در اینجا.}}

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:

{{توجه|small=yes|image=Stop hand nuvola.svg
  |header=Header text|نوشته در اینجا.}}


صفحه‌های رده و تصویر

This is how this box looks on image pages:

This is how this box looks on category pages:

صفحه‌های دیگر

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

{{توجه|نوشته در اینجا.}}

Which renders like this:

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

{{توجه|image=Stop hand nuvola.svg|نوشته در اینجا.}}

Which renders like this:

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

بهره‌گیری از پیوندهای بیرونی

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:

{{توجه|1=Following this parameter, an equal sign in an external link will be read properly.}}

افزودن میانبرها (یا تصویرها به سمت راست)

To add shortcuts, images, or other templates to the right side of the image, the following syntax can be used:

{{توجه|نوشته در اینجا.|imageright = IMAGE OR TEMPLATE }}

For example, the following has the File:Wiki letter w.svg picture included into it:

{{توجه|نوشته در اینجا.|imageright = [[File:Wiki letter w.svg|40px]] }}

Which renders like this:

The following has the {{Shortcut}} template included into it, with a link to شما and Me:

{{توجه|نوشته در اینجا.|imageright = {{Shortcut|You|Me}} }}

Which renders like this:

گزینهٔ میانبر جایگزین

Alternately, instead of using the "imageright" parameter to input shortcuts, the "shortcut" parameter (as well as "shortcut2", "shortcut3", "shortcut4", and "shortcut5") can be used instead of "imageright". The following syntax can be used to add shortcuts:

{{توجه|title=نوشته در اینجا.|shortcut = Me | shortcut2 = You | shortcut3 = Them | shortcut4 = Us | shortcut5 = Everyone}}

Which renders like this:

Technical note: if both the "imageright" and the "shortcut" parameters are used, only the image/template in the "imageright" template will display. Here is an example of syntax with the "imageright" and "shortcut" parameters:

{{توجه|title=نوشته در اینجا.|imageright = [[File:Wiki letter w.svg|40px]] |shortcut = Me | shortcut2 = You | shortcut3 = Them | shortcut4 = Us | shortcut5 = Everyone}}

Which renders like this:

جستارهای وابسته

  • {{اجماع}} – برای موضوعات مبتنی بر دستیابی به اجماع
  • {{اخطار}} – برای هشدارهای مهم
  • {{blackboxwarning}} – for extreme situations
  • {{احتیاط}} – برای پیغام‌هایی که پراسه‌های مهمی را در خود دارند.
  • {{ambox}} – article message boxes of any type; there is comprehensive documentation of its different options