الگو:Infobox/توضیحات: تفاوت میان نسخه‌ها

محتوای حذف‌شده محتوای افزوده‌شده
666vs313 (بحث | مشارکت‌ها)
بدون خلاصۀ ویرایش
برچسب‌ها: برگردانده‌شده ویرایش همراه ویرایش از وبگاه همراه
Q2020 (بحث | مشارکت‌ها)
جز ویرایش 666vs313 (بحث) به آخرین تغییری که Shkuru Afshar انجام داده بود واگردانده شد
برچسب: واگردانی
 
خط ۱:
{{زیرصفحه توضیحات}}
<!-- خواهشمند است رده‌ها را جایی که در پایین این صفحه اشاره شده‌است قرار دهید و میان‌ویکی‌ها را هم در ویکی‌داده ([[ویکی‌پدیا:ویکی‌داده]] را ببینید) -->
{{پراستفاده}}
{{میانبر الگو|دادان}}
{{لوآ|پودمان:Infobox}}
{{از الگوسبک استفاده می‌کند|الگو:Infobox/mobileviewfix.css}}
<includeonly>{{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | 2 }} | old | <!-- null --> | {{High-risk|440000+}} }}</includeonly>
{{پاک‌کن}}
{{چپ‌چین}}
This template is intended as a meta-template: a template used for constructing other templates. It is not meant for use directly in an article, but can be used on a one-off basis if required. See [[راهنما:جعبه اطلاعات]] for an introduction to infoboxes and information on how to design them. See [[:رده:الگو:جعبه‌های اطلاعات]] for specific infobox templates.
 
=== Usage ===
Usage is similar to {{الگو|navbox}}, but with an additional distinction. Each row on the table can contain either a header, or a label/data pair, or just a data cell. These are mutually exclusive states so if you define a row with both a header and a label/data pair, the label/data pair is ignored.
 
To insert an image somewhere other than at the top of the infobox, or to insert freeform data, use a row with only a data field.
 
=== Optional control parameters ===
; name : If this parameter is present, "view/discuss/edit" links will be added to the bottom of the infobox, pointing to the named page. You may use the value <nowiki>{{subst:PAGENAME}}</nowiki>; however this is rarely what you want, because it will send users clicking these links in an infobox in an article to the template code rather than the data in the infobox that they probably want to change.
; child : See the [[#Embedding|Embedding]] section for details. If this is set to "yes", this child infobox should be titled but have no name parameter. This parameter is empty by default, set it to "yes" to activate it.
; subbox : See the [[#Subboxes|Subboxes]] section for details. If this is set to "yes", this subbox should be titled but have no name parameter. This parameter is empty by default, set to "yes" to activate it. It has no effect if the '''child''' parameter is also set to "yes".
; decat : If this is set to "yes", the current page will not be autocategorized in a maintenance category when the generated infobox has some problems or no visible data section. Leave empty by default or set to "yes" to activate it.
 
=== Content parameters ===
 
==== Title ====
There are two different ways to put a title on an infobox. One contains the title inside the infobox's border in the uppermost cell of the table, the other puts as a caption it on top of the table. You can use both of them together if you like, or just one or the other, or even neither (though this is not recommended):
 
; title : Text to put in the caption over the top of the table (or as section header before the whole content of this table, if this is a child infobox).
; above : Text to put within the uppermost cell of the table.
; subheader(n) : additional title fields which fit below {{{title}}} and {{{above}}}, but before images. Subheader parameters should not be numbered more than 10 apart.
 
Examples:
 
{{Infobox
| name = Infobox/doc
| title = Text in caption over infobox
| subheader = Subheader of the infobox
| header = (the rest of the infobox goes here)
}}
<pre style="overflow:auto">
{{Infobox
| name = {{subst:PAGENAME}}
| title = Text in caption over infobox
| subheader = Subheader of the infobox
| header = (the rest of the infobox goes here)
}}
</pre>{{پاک‌کن}}
 
{{Infobox
| name = Infobox/doc
| above = Text in uppermost cell of infobox
| subheader = Subheader of the infobox
| subheader2 = Second subheader of the infobox
| header = (the rest of the infobox goes here)
}}
<pre style="overflow:auto">
{{Infobox
| name = {{subst:PAGENAME}}
| above = Text in uppermost cell of infobox
| subheader = Subheader of the infobox
| subheader2 = Second subheader of the infobox
| header = (the rest of the infobox goes here)
}}
</pre>{{پاک‌کن}}
 
==== Illustration images ====