پرش به محتوا
منوی اصلی
منوی اصلی
انتقال به نوار کناری
نهفتن
ناوبری
صفحهٔ اصلی
تغییرات اخیر
مقالهٔ تصادفی
راهنما دربارهٔ مدیاویکی
صفحههای ویژه
جستجو
جستجو
ظاهر
ساخت حساب
ورود
ابزارهای شخصی
ساخت حساب
ورود
صفحههایی برای ویرایشگرانی که از سامانه خارج شدند
بیشتر بدانید
مشارکتها
بحث
در حال ویرایش
الگو:سرنویس/توضیحات
الگو
بحث
فارسی
خواندن
ویرایش مبدأ
نمایش تاریخچه
ابزارها
ابزارها
انتقال به نوار کناری
نهفتن
کنشها
خواندن
ویرایش مبدأ
نمایش تاریخچه
عمومی
پیوندها به این صفحه
تغییرات مرتبط
اطلاعات صفحه
ظاهر
انتقال به نوار کناری
نهفتن
هشدار:
شما وارد نشدهاید. نشانی آیپی شما برای عموم قابل مشاهده خواهد بود اگر هر تغییری ایجاد کنید. اگر
وارد شوید
یا
یک حساب کاربری بسازید
، ویرایشهایتان به نام کاربریتان نسبت داده خواهد شد، همراه با مزایای دیگر.
بررسی ضدهرزنگاری. این قسمت را پر
نکنید
!
{{زیرصفحه توضیحات}} <includeonly>{{High-risk|470,000+}}</includeonly> {{لوآ|پودمان:Hatnote}} {{چپچین}} This template produces formatted text, following the guideline for a '''[[ویکیپدیا:سرنویس|Wikipedia hatnote]]'''. :<code><nowiki>{{سرنویس|Example hatnote text.}}</nowiki></code> →<br><!-- a construct to show hatnote as expected (using newline) --> {{سرنویس|Example hatnote text.}} Broadly speaking, a hatnote should answer a readers' question (maybe preemptively): ''Am I on the right page?'' {{TOClimit}} == Function == This template is primarily used to add a correctly formatted ''hatnote'' to a page. Often, but not always, this is a ''disambiguation link'' at the top of article pages. It places an HTML <code>div-</code> / <code>div</code> block around the text entered as its only argument, which provides standardized formatting (contents are indented and italicized in most displays); it also isolates the contained code to make sure that it is interpreted correctly. This template is also used as the "meta-template" for additional specialized disambiguation link templates; see [[:رده:الگو:سرنویس]] for a list. The template does not automatically create links of any kind. Links and other desired formatting must be explicitly added, using normal [[ویکیپدیا:آموزش سریع|Wikipedia markup]]. == Usage == ; Basic usage: {{hatnote|''text''}} ; All parameters: {{hatnote|''text''|extraclasses=''extra classes''|selfref=''yes''|category=''no''}} == Parameters == This template accepts the following parameters: * <code>1</code> - the hatnote text. (required) * <code>extraclasses</code> - any extra CSS classes to be added. For example, the {{الگو|see also}} template adds the classes {{پارا|extraclasses|boilerplate seealso}}. * <code>selfref</code> - if set to "yes", "y", "true" or "1", adds the CSS class "selfref". This is used to denote self-references to Wikipedia. See [[الگو:Selfref]] for more information. * <code>category</code> - if set to "no", "n", "false", or "0", suppresses the error tracking category ([[:رده:الگو:سرنویس همراه خطا]]). This only has an effect if the first positional parameter (the hatnote text) is omitted. == Example == * <code><nowiki>{{سرنویس|Example hatnote text}}</nowiki></code> → {{سرنویس|Example hatnote text}} == Errors == If no hatnote text is supplied, the template will output the following message: * {{سرنویس|category=no}} If you see this error message, it is for one of four reasons: # No parameters were specified (the template code was <code><nowiki>{{سرنویس}}</nowiki></code>). Please use <code><nowiki>{{سرنویس|</nowiki>''text''<nowiki>}}</nowiki></code> instead. # Some parameters were specified, but the hatnote text wasn't included. For example, the template text <code><nowiki>{{سرنویس|extraclasses=seealso}}</nowiki></code> will produce this error. Please use (for example) <code><nowiki>{{سرنویس|</nowiki>''text''<nowiki>|extraclasses=seealso}}</nowiki></code> instead. # The hatnote text was specified, but that text contains an equals sign ("="). The equals sign has a special meaning in template code, and because of this it cannot be used in template parameters that do not specify a parameter name. For example, the template code <code><nowiki>{{سرنویس|2+2=4}}</nowiki></code> will produce this error. To work around this, you can specify the parameter name explictly by using <code>1=</code> before the hatnote text, like this: <code><nowiki>{{سرنویس|1=2+2=4}}</nowiki></code>. # You tried to access [[پودمان:Hatnote]] directly by using <code><nowiki>{{#invoke:hatnote|hatnote|</nowiki>''text''<nowiki>}}</nowiki></code>. Use of #invoke in this way has been disabled for performance reasons. Please use <code><nowiki>{{سرنویس|</nowiki>''text''<nowiki>}}</nowiki></code> instead. If you see this error message and are unsure of what to do, please post a message on [[Template talk:Hatnote]], and someone should be able to help you. Pages that contain this error message are tracked in [[:رده:الگو:سرنویس همراه خطا]]. == Technical details == The HTML code produced by this template looks like this: * <code><nowiki><div class="hatnote"></nowiki>''hatnote text''<nowiki></div></nowiki></code> The code is produced by [[پودمان:Hatnote]]. {{Hatnote templates documentation}} {{بالای تاشو|TemplateData}} {{TemplateDataHeader}} <templatedata> { "description": "Template for creating a standard Wikipedia hatnote. A hatnote is a short note placed at the top of an article to provide disambiguation of closely related terms or summarise a topic, explaining its boundaries.", "params": { "1": { "label": "Text", "description": "This field should contain the text that will be displayed in the hatnote.", "type": "string", "required": true }, "extraclasses": { "type": "string/line", "label": "Extra classes", "description": "Extra CSS classes to be added to the <div> tags surrounding the hatnote text." }, "selfref": { "type": "string/line", "label": "Self reference", "description": "Set to \"yes\" if the hatnote text is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site. (E.g. \"For the Wikipedia Sandbox, see [[ویکیپدیا:صفحه تمرین]]\".)" }, "category": { "label": "Category", "description": "Set to \"no\", \"n\", \"false\", or \"0\" to suppresses the error tracking category (Category:Hatnote templates with errors). This only has an effect if the hatnote text is omitted." } } } </templatedata> {{پایین تاشو}} {{پایان چپچین}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|تمرین|| [[رده:الگو:سرنویس| ]] }}</includeonly>
خلاصه:
لطفاً توجه داشته باشید که همهٔ مشارکتها در ایرانپدیا ممکن است توسط دیگر مشارکتکنندگان تغییر یابند، ویرایش یا حذف شوند. اگر نمیخواهید نوشتههایتان بیرحمانه ویرایش شوند؛ بنابراین، آنها را اینجا ارائه نکنید.
شما همچنین به ما تعهد میکنید که خودتان این را نوشتهاید یا آن را از یک منبع با مالکیت عمومی یا مشابه آزاد آن برداشتهاید (
ایرانپدیا:حق تکثیر
را برای جزئیات بیشتر ببینید).
کارهای دارای حق تکثیر را بدون اجازه ارائه نکنید!
لغو
راهنمای ویرایش
(در پنجرهٔ تازه باز میشود)
پیشنمایش صفحه با این الگو
الگوهای بهکاررفته در این صفحه:
الگو:About
(
ویرایش
)
الگو:About-distinguish
(
ویرایش
)
الگو:About-distinguish-custom
(
ویرایش
)
الگو:About-distinguish2
(
ویرایش
)
الگو:Category pair
(
ویرایش
)
الگو:Dablink
(
ویرایش
)
الگو:Details3
(
ویرایش
)
الگو:Distinguish2
(
ویرایش
)
الگو:For2
(
ویرایش
)
الگو:Formatnumber
(
ویرایش
)
الگو:Hatnote
(
ویرایش
)
الگو:Hatnote templates documentation
(
ویرایش
)
الگو:Hlist/styles.css
(
ویرایش
)
الگو:Icon
(
ویرایش
)
الگو:Main list
(
ویرایش
)
الگو:Main other
(
ویرایش
)
الگو:Mbox
(
ویرایش
)
الگو:Namespace detect
(
ویرایش
)
الگو:Navbar
(
ویرایش
)
الگو:Navbox
(
ویرایش
)
الگو:Nosubst
(
ویرایش
)
الگو:Ombox
(
ویرایش
)
الگو:Ombox/styles.css
(
ویرایش
)
الگو:Other people5
(
ویرایش
)
الگو:Other places
(
ویرایش
)
الگو:Other places3
(
ویرایش
)
الگو:Other ships
(
ویرایش
)
الگو:Other uses of
(
ویرایش
)
الگو:Preceding category
(
ویرایش
)
الگو:Red
(
ویرایش
)
الگو:Redirect-distinguish
(
ویرایش
)
الگو:Redirect-distinguish2
(
ویرایش
)
الگو:Redirect-synonym
(
ویرایش
)
الگو:Redirect10
(
ویرایش
)
الگو:Redirect6
(
ویرایش
)
الگو:Redirect7
(
ویرایش
)
الگو:Rellink
(
ویرایش
)
الگو:See also2
(
ویرایش
)
الگو:Str endswith
(
ویرایش
)
الگو:Str left
(
ویرایش
)
الگو:Succeeding category
(
ویرایش
)
الگو:TOClimit
(
ویرایش
)
الگو:Technical reasons
(
ویرایش
)
الگو:TemplateDataHeader
(
ویرایش
)
الگو:This user talk
(
ویرایش
)
الگو:Three other uses
(
ویرایش
)
الگو:Tlf
(
ویرایش
)
الگو:Two other uses
(
ویرایش
)
الگو:آغاز چپچین
(
ویرایش
)
الگو:آیکون
(
ویرایش
)
الگو:اشتباه نشود
(
ویرایش
)
الگو:اشتباه نشود۲
(
ویرایش
)
الگو:اصلی
(
ویرایش
)
الگو:اصلی رده
(
ویرایش
)
الگو:الگو
(
ویرایش
)
الگو:الگوب
(
ویرایش
)
الگو:الگوهای سرنویس
(
ویرایش
)
الگو:بالای تاشو
(
ویرایش
)
الگو:برای
(
ویرایش
)
الگو:برای۲
(
ویرایش
)
الگو:بیشتر
(
ویرایش
)
الگو:بیشتر۲
(
ویرایش
)
الگو:تشخیص فضای نام
(
ویرایش
)
الگو:تغییر مسیر۲
(
ویرایش
)
الگو:تغییرمسیر
(
ویرایش
)
الگو:تغییرمسیر۲
(
ویرایش
)
الگو:تغییرمسیر۳
(
ویرایش
)
الگو:تغییرمسیر۴
(
ویرایش
)
الگو:تقابل
(
ویرایش
)
الگو:توضیح رده
(
ویرایش
)
الگو:توضیحات الگوهای سرنویس
(
ویرایش
)
الگو:جزئیات
(
ویرایش
)
الگو:درباره
(
ویرایش
)
الگو:درباره-اشتباه نشود
(
ویرایش
)
الگو:درباره۲
(
ویرایش
)
الگو:دیگر افراد
(
ویرایش
)
الگو:دیگر افراد۲
(
ویرایش
)
الگو:دیگر افراد۳
(
ویرایش
)
الگو:دیگر کاربردها
(
ویرایش
)
الگو:دیگر کاربردهای
(
ویرایش
)
الگو:رده
(
ویرایش
)
الگو:رده متوالی
(
ویرایش
)
الگو:رده وابسته
(
ویرایش
)
الگو:رده وابسته/بررسی رده ترتیبی
(
ویرایش
)
الگو:رنگی
(
ویرایش
)
الگو:زیرصفحه توضیحات
(
ویرایش
)
الگو:سرآیند الگوداده
(
ویرایش
)
الگو:سرنویس
(
ویرایش
)
الگو:قرمز
(
ویرایش
)
الگو:لنگر
(
ویرایش
)
الگو:لوآ
(
ویرایش
)
الگو:همچنین ببینید
(
ویرایش
)
الگو:پارا
(
ویرایش
)
الگو:پایان
(
ویرایش
)
الگو:پایان چپچین
(
ویرایش
)
الگو:پایین تاشو
(
ویرایش
)
الگو:پیوند ابهامزدایی
(
ویرایش
)
الگو:پیوند الگو
(
ویرایش
)
الگو:پیوند الگو با پیوند خاموش
(
ویرایش
)
الگو:چپچین
(
ویرایش
)
الگو:کاربردهای دیگر
(
ویرایش
)
پودمان:About
(
ویرایش
)
پودمان:Anchor
(
ویرایش
)
پودمان:Arguments
(
ویرایش
)
پودمان:Cat main
(
ویرایش
)
پودمان:Category see also
(
ویرایش
)
پودمان:Details
(
ویرایش
)
پودمان:Distinguish
(
ویرایش
)
پودمان:For
(
ویرایش
)
پودمان:Hatnote
(
ویرایش
)
پودمان:Hatnote/styles.css
(
ویرایش
)
پودمان:Hatnote list
(
ویرایش
)
پودمان:Icon
(
ویرایش
)
پودمان:Icon/data
(
ویرایش
)
پودمان:Labelled list hatnote
(
ویرایش
)
پودمان:List
(
ویرایش
)
پودمان:Lua banner
(
ویرایش
)
پودمان:Main
(
ویرایش
)
پودمان:Message box
(
ویرایش
)
پودمان:Message box/configuration
(
ویرایش
)
پودمان:Message box/ombox.css
(
ویرایش
)
پودمان:Namespace detect
(
ویرایش
)
پودمان:Namespace detect/config
(
ویرایش
)
پودمان:Namespace detect/data
(
ویرایش
)
پودمان:Navbar
(
ویرایش
)
پودمان:Navbar/configuration
(
ویرایش
)
پودمان:Navbar/styles.css
(
ویرایش
)
پودمان:Navbox
(
ویرایش
)
پودمان:Navbox/configuration
(
ویرایش
)
پودمان:Navbox/styles.css
(
ویرایش
)
پودمان:Numeral converter
(
ویرایش
)
پودمان:Other uses of
(
ویرایش
)
پودمان:Redirect hatnote
(
ویرایش
)
پودمان:See also
(
ویرایش
)
پودمان:Set local argument names
(
ویرایش
)
پودمان:String
(
ویرایش
)
پودمان:TableTools
(
ویرایش
)
پودمان:Yesno
(
ویرایش
)
جستجو
جستجو
در حال ویرایش
الگو:سرنویس/توضیحات
افزودن مبحث