• آشنایی با دانشنامه
  • صفحات ویژه
  • قوانین و سیاست ها

عنوان مقاله جدید را وارد کنید

قبل از ایجاد مقاله جدید پیشنهاد می شود از قسمت جستجو عنوان مورد نظر خود را جستجو کنید

شخصی سازی

ب ب

تاریخچه بازدیدها

انتخاب زبان

  • فارسی Persian
  • ساخت حساب
  • ورود
(تغییرمسیر از الگو:Hatnote inline)

فهرست

استفاده پارمترها جزئیات تکنیکی جستارهای وابسته
Templates based on this meta-template

الگو:سرنویس درخط

آخرین ویرایش : ‏۱۱ اردیبهشت ۱۴۰۱
{{{محتوا}}}
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

فهرست

  • ۱ استفاده
  • ۲ پارمترها
  • ۳ جزئیات تکنیکی
  • ۴ جستارهای وابسته
    • ۴.۱ Templates based on this meta-template

استفاده

استفادهٔ اولیه (ساده)
{{hatnote inline|text}}
تمامی پارامترها
{{hatnote inline|text|extraclasses=class1 class2|selfref=yes|category=no}}

The meta-template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal Wikipedia markup.

پارمترها

این الگو، پارامترهای زیر را می‌پذیرد:

  • |1= or |text= or |content= the inline hatnote's text (required). While the explicit naming of this parameter with 1=, text=, or content= is not required, it is always safest to use it this way, since any = character in the text will break the template if the parameter is unnamed.
  • |class= or |extraclasses= any extra CSS classes to be added. This should not normally be used.
  • |selfref=no – if set to no (or n, false, 0, etc.) removes the default CSS class selfref, used to denote unprintworthy self-references to Wikipedia
    (see Template:Selfref for more information). This option should not be used to indicate a non-selfref on cross-article links, only links within the same article (and the derived shorthand templates {{See above}} and {{See below}} do this automatically). The parameter alias |printworthy=yes (or with any other value, like y, true, 1, etc.) has the same effect as |selfref=no. Note the attempting to manually supply a "this is a selfref" value with |selfref=yes or |printworthy=no will not have the desired effect (which is the default anyway); the meta-template is set to selfref by default, since most uses are self-references (only those within the same article as the template are not).
  • |category= if set to no (or n, false, 0, etc. , suppresses the error-tracking category (Category:Hatnote templates with errors). This only has an effect if the first positional parameter (the hatnote text) is omitted. This should not normally be used.

جزئیات تکنیکی

The meta-template places an HTML <span>...</span> container around the text entered as its first, required parameter, upon which it provides standardized formatting (italicized in most displays, and only stylistically, not as semantic emphasis); it also uses CSS classes to isolate the contained code to make sure that it is interpreted correctly and can be acted upon independently of true article content.

The HTML code produced by this template looks like this:

  • <span class="hatnote">hatnote text</span>

This is the same class used by the <div>-based {{hatnote}} template, the block display of which is controlled by a separate div.hatnote directive in Mediawiki:Common.css.

The output is produced by Module:Hatnote inline.

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

  • Template:Hatnote templates documentation, for all the block-format hatnotes

Templates based on this meta-template

  • {{Crossreference}} (a.k.a. {{Crossref}}, {{Xref}}) – Template for inline crossreferences to (usually) other Wikipedia pages (unprintworthy in most cases)
  • {{Ghat}} – Hatnote template for use in template-structured glossaries (printworthy)
  • {{See above}} and {{See below}} – some more specific templates than {{Crossreference}} for use on same page only (printworthy)
توضیحات بالا تراگنجانده‌شده از الگو:سرنویس درخط/توضیحات است. (ویرایش | تاریخچه)
ویرایشگران می‌توانند در صفحات تمرین (ایجاد | آینه) و آزمایشی (ایجاد) این الگو را آزمایش کنند.
لطفاً رده‌ها را به زیرصفحهٔ /توضیحات بیفزایید. زیرصفحه‌های این الگو.
برگرفته از «http://mobinwiki.ir/w/index.php?title=الگو:سرنویس_درخط&oldid=90997»

مبین ویکی دانشنامه برخط ملی

اینجا مرزهای واقعیت و تحریف با روایتی صحیح، سالم و مستند از دانش از یکدیگر جدا میشوند

  • سیاست‌ها و رهنمودها
  • درباره ما
  • ارتباط با ما
  • دانش نامه نویس شوید
  • آمار ها
  • صفحات ویژه
تمام حقوق مادی و معنوی این وب سایت متطلق به ویکی دانش می باشد