کاربر ناشناس
الگو:Navbox/توضیحات: تفاوت میان نسخهها
جز
ربات: بهبود رنگها
Hasaninasab (بحث | مشارکتها) (صفحهای تازه حاوی «{{الگوی محافظت شده}} {{زیرصفحه توضیحات}} {{Navbox suite}} این الگو امکان ایجاد یک وح:ا...» ایجاد کرد) |
جز (ربات: بهبود رنگها) |
||
خط ۱: | خط ۱: | ||
{{زیرصفحه توضیحات}} | {{زیرصفحه توضیحات}} | ||
{{الگوی یکسان به زبان دیگر|جعبه گشتن}} | |||
{{Navbox suite}} | {{Navbox suite}} | ||
این الگو امکان ایجاد یک [[ | این الگو امکان ایجاد یک [[وپ:الگوهای ناوبری|جعبه ناوبری]] با یک یا چند فهرست پیونددار به کاربر میدهد. این الگو دارای ظاهر و استایل پیشفرض است و در حالت معمول نیازی به تنظیم ندارد؛ این در حالی است که تغییر دادن ظاهر این الگو پیشنهاد نمیشود. استفاده از این الگو و الگوهای خواهرش برای یکسان کردن و استانداردسازی تمام الگوهای ناوبری و استفادهٔ راحتتر توصیه میشود. | ||
== شیوهٔ به کارگیری الگو == | == شیوهٔ به کارگیری الگو == | ||
خط ۱۰: | خط ۹: | ||
<pre style="overflow:auto; direction:ltr;">{{Navbox | <pre style="overflow:auto; direction:ltr;">{{Navbox | ||
|bodyclass = | |bodyclass = | ||
|name = {{subst:PAGENAME}} | |name = {{subst:PAGENAME}} | ||
|title = | |title = | ||
|titleclass = | |titleclass = | ||
|image = | |image = | ||
|above = | |above = | ||
|group1 = | |group1 = | ||
|list1 = | |list1 = | ||
|group2 = | |group2 = | ||
|list2 = | |list2 = | ||
... | ... | ||
|group20 = | |group20 = | ||
|list20 = | |list20 = | ||
|below = | |below = | ||
}}</pre> | }}</pre> | ||
== فهرست پارامترها == | == فهرست پارامترها == | ||
خط ۵۱: | خط ۵۰: | ||
:<code>bodyclass -</code> به تمامیِ الگو یک کلاس [[اچتیامال|HTML]] نسبت میدهد. | :<code>bodyclass -</code> به تمامیِ الگو یک کلاس [[اچتیامال|HTML]] نسبت میدهد. | ||
:<code>name -</code> نام الگو. | :<code>name -</code> نام الگو. | ||
:<code>title -</code> متن نوار عنوان؛ مثلا | :<code>title -</code> متن نوار عنوان؛ مثلا <nowiki>[[شهرهای باستانی و تاریخی ایران]]</nowiki> | ||
:<code>titleclass -</code> به نوار عنوان یک کلاس [[اچتیامال|HTML]] نسبت میدهد. | |||
<nowiki>[[شهرهای باستانی و تاریخی ایران]]</nowiki> :<code>titleclass -</code> به نوار عنوان یک کلاس [[اچتیامال|HTML]] نسبت میدهد. | |||
:<code>state - autocollapse, uncollapsed, collapsed</code> وضعیت بسط الگو. | :<code>state - autocollapse, uncollapsed, collapsed</code> وضعیت بسط الگو. | ||
:<code>titlestyle - </code>سلیقهای کردن ظاهر نوارعنوان با استفاده از [[سیاساس|css]] مثلا: <code>background:green;</code> | :<code>titlestyle - </code>سلیقهای کردن ظاهر نوارعنوان با استفاده از [[سیاساس|css]] مثلا: <code>background:green;</code> | ||
:<code>groupstyle - </code>سلیقهای کردن ظاهر خانههای گروهها با استفاده از [[سیاساس|css]] مثلا: <code>background:#ff;</code> | :<code>groupstyle - </code>سلیقهای کردن ظاهر خانههای گروهها با استفاده از [[سیاساس|css]] مثلا: <code>background:#ff;</code> | ||
:<code>image - </code>درج تصویر اختیاری در سمت چپ الگو. تصویر به نوعی زینتی است و باید به صورت | :<code>image - </code>درج تصویر اختیاری در سمت چپ الگو. تصویر به نوعی زینتی است و باید به صورت <nowiki>[[Image:XX.jpg|90px|link=|alt=]]</nowiki> کدنویسی شود. | ||
<nowiki>[[Image:XX.jpg|90px|link=|alt=]]</nowiki> کدنویسی شود. | |||
:<code>imageleft - </code>درج تصویر در سمت مخالف کد <code>image</code> (دقیقا مانند همان کدنویسی شود) | :<code>imageleft - </code>درج تصویر در سمت مخالف کد <code>image</code> (دقیقا مانند همان کدنویسی شود) | ||
:<code>above - </code>متنی که بالای بخش گروه/لیست نمایش داده میشود. | :<code>above - </code>متنی که بالای بخش گروه/لیست نمایش داده میشود. | ||
:<code>group<sub>n</sub> - </code>متنی که قبل از <code>list<sub>n</sub></code> نمایش داده میشود. (در صورت حذف <code>group<sub>n</sub></code> فهرست از سمت راست شروع میشود. | :<code>group<sub>n</sub> - </code>متنی که قبل از <code>list<sub>n</sub></code> نمایش داده میشود. (در صورت حذف <code>group<sub>n</sub></code> فهرست از سمت راست شروع میشود. | ||
:<code>list<sub>n</sub> - </code>متنی است که پیوندهای ویکی را فهرست میکند. این پیوندها اغلب با میاننقطه ({{·}}) جدا میشوند. مانند | :<code>list<sub>n</sub> - </code>متنی است که پیوندهای ویکی را فهرست میکند. این پیوندها اغلب با میاننقطه ({{·}}) جدا میشوند. مانند <nowiki>[[فیزیک]]{{·}}[[شیمی]]</nowiki> که میشود: [[فیزیک]]{{·}}[[شیمی]]. | ||
<nowiki>[[فیزیک]]{{·}}[[شیمی]]</nowiki> که میشود: [[فیزیک]]{{·}}[[شیمی]]. | |||
:<code>below - </code>متن اختیاری که زیر بخش گروه/لیست قرار میگیرد. | :<code>below - </code>متن اختیاری که زیر بخش گروه/لیست قرار میگیرد. | ||
خط ۷۴: | خط ۶۸: | ||
The following is a complete list of parameters for using {{tl|Navbox}}. In most cases, the only required parameters are <code>name</code>, <code>title</code>, and <code>list1</code>, though [[Template:Navbox/doc#Child navboxes|child navboxes]] do not even require those to be set. | The following is a complete list of parameters for using {{tl|Navbox}}. In most cases, the only required parameters are <code>name</code>, <code>title</code>, and <code>list1</code>, though [[Template:Navbox/doc#Child navboxes|child navboxes]] do not even require those to be set. | ||
{{tl|Navbox}} shares numerous common parameter names as its sister templates {{tl|Navbox with columns}} and {{tl|Navbox with collapsible groups}} for consistency and ease of use. Parameters marked with an asterisk | {{tl|Navbox}} shares numerous common parameter names as its sister templates {{tl|Navbox with columns}} and {{tl|Navbox with collapsible groups}} for consistency and ease of use. Parameters marked with an asterisk <nowiki>*</nowiki> are common to all three master templates. | ||
<nowiki>*</nowiki> are common to all three master templates. | |||
=== Setup parameters === | === Setup parameters === | ||
:; ''name'' | :; ''name''<nowiki>*</nowiki> | ||
:: The name of the template, which is needed for the "v{{·}} d{{·}} e" ("view{{·}} discuss{{·}} edit") links to work properly on all pages where the template is used. You can enter <code><nowiki>{{subst:PAGENAME}}</nowiki></code> for this value as a shortcut. The name parameter is only mandatory if a <code>title</code> is specified, and the <code>border</code> parameter is not set. | |||
<nowiki>*</nowiki> :: The name of the template, which is needed for the "v{{·}} d{{·}} e" ("view{{·}} discuss{{·}} edit") links to work properly on all pages where the template is used. You can enter <code> | |||
<nowiki>{{subst:PAGENAME}}</nowiki> </code> for this value as a shortcut. The name parameter is only mandatory if a <code>title</code> is specified, and the <code>border</code> parameter is not set. | |||
:; ''state'' | :; ''state''<nowiki>*</nowiki> <span style="font-weight:normal;">[<code>autocollapse, uncollapsed, collapsed, plain, off</code>]</span> | ||
<nowiki>*</nowiki> <span style="font-weight:normal;">[<code>autocollapse, uncollapsed, collapsed, plain, off</code>]</span> | |||
:* Defaults to <code>autocollapse</code>. A navbox with <code>autocollapse</code> will start out collapsed if there are two or more tables on the same page that use other collapsible tables. Otherwise, the navbox will be expanded. For the technically minded, see [[MediaWiki:Common.js]]. | :* Defaults to <code>autocollapse</code>. A navbox with <code>autocollapse</code> will start out collapsed if there are two or more tables on the same page that use other collapsible tables. Otherwise, the navbox will be expanded. For the technically minded, see [[MediaWiki:Common.js]]. | ||
:* If set to <code>collapsed</code>, the navbox will always start out in a collapsed state. | :* If set to <code>collapsed</code>, the navbox will always start out in a collapsed state. | ||
خط ۹۵: | خط ۸۲: | ||
: To show the box when standalone (non-included) but then auto-hide contents when in an article, put "uncollapsed" inside <noinclude> tags: | : To show the box when standalone (non-included) but then auto-hide contents when in an article, put "uncollapsed" inside <noinclude> tags: | ||
:* <code>state = </code> | :* <code>state = </code><nowiki><noinclude>uncollapsed</noinclude></nowiki> | ||
:* That setting will force the box visible when standalone (even when followed by other boxes), displaying "[hide]" but then auto-collapse the box when stacked inside an article. | |||
<nowiki><noinclude>uncollapsed</noinclude></nowiki> :* That setting will force the box visible when standalone (even when followed by other boxes), displaying "[hide]" but then auto-collapse the box when stacked inside an article. | |||
: Often times, editors will want a default initial state for a navbox, which may be overridden in an article. Here is the trick to do this: | : Often times, editors will want a default initial state for a navbox, which may be overridden in an article. Here is the trick to do this: | ||
:*In your intermediate template, create a parameter also named "state" as a pass-through like this: | :*In your intermediate template, create a parameter also named "state" as a pass-through like this: | ||
:*<tt> | :*<tt><nowiki>| state = {{{state<includeonly>|your_desired_initial_state</includeonly>}}}</nowiki></tt> | ||
:*The <nowiki><includeonly>|</nowiki> will make the template expanded when viewing the template page by itself. | |||
<nowiki>| state = {{{state<includeonly>|your_desired_initial_state</includeonly>}}}</nowiki> </tt> | |||
:*The | |||
<nowiki><includeonly>|</nowiki> will make the template expanded when viewing the template page by itself. | |||
::*Example: {{tl|peso}} with autocollapse as the default initial state. [[Catalan peseta]] transcludes it and has only one navbox. So the peso navbox shows. [[پسو شیلی]] has two navboxes. So the peso navbox collapses. | ::*Example: {{tl|peso}} with autocollapse as the default initial state. [[Catalan peseta]] transcludes it and has only one navbox. So the peso navbox shows. [[پسو شیلی]] has two navboxes. So the peso navbox collapses. | ||
::*Example: {{tl|Historical currencies of Hungary}} with expanded as the default initial state. All transcluding articles shows the content by default, unless there were an hypothetical article that specifies state = collapsed when transcluding. | ::*Example: {{tl|Historical currencies of Hungary}} with expanded as the default initial state. All transcluding articles shows the content by default, unless there were an hypothetical article that specifies state = collapsed when transcluding. | ||
:; ''navbar'' | :; ''navbar''<nowiki>*</nowiki> | ||
:: Defaults to <code>Tnavbar</code>. If set to <code>plain</code>, the <small>v • d • e</small> links on the left side of the titlebar will not be displayed, and padding will be automatically used to keep the title centered. Use <code>off</code> to remove the <small>v • d • e</small> links, but not apply padding (this is for advanced use only; the "plain" option should suffice for most applications where a navbar is not desired). Note that it is highly recommended that one does not hide the navbar, in order to make it easier for users to edit the template, and to keep a standard style across pages. | |||
:; ''border''<nowiki>*</nowiki> | |||
:: ''See section below on using navboxes within one another for examples and a more complete description.'' If set to <code>child</code> or <code>subgroup</code>, then the navbox can be used as a borderless child that fits snuggly in another navbox. The border is hidden and there is no padding on the sides of the table, so it fits into the ''list'' area of its parent navbox. If set to <code>none</code>, then the border is hidden and padding is removed, and the navbox may be used as a child of another container (do not use the <code>none</code> option inside of another navbox; similarly, only use the <code>child</code>/<code>subgroup</code> option inside of another navbox). If set to anything else (default), then a regular navbox is displayed with a 1px border. An alternate way to specify the border to be a subgroup style is like this (i.e. use the first unnamed parameter instead of the named ''border'' parameter): | |||
:; ''border'' | :::<code><nowiki>{{Navbox|child</nowiki></code> | ||
<nowiki>*</nowiki> :: ''See section below on using navboxes within one another for examples and a more complete description.'' If set to <code>child</code> or <code>subgroup</code>, then the navbox can be used as a borderless child that fits snuggly in another navbox. The border is hidden and there is no padding on the sides of the table, so it fits into the ''list'' area of its parent navbox. If set to <code>none</code>, then the border is hidden and padding is removed, and the navbox may be used as a child of another container (do not use the <code>none</code> option inside of another navbox; similarly, only use the <code>child</code>/<code>subgroup</code> option inside of another navbox). If set to anything else (default), then a regular navbox is displayed with a 1px border. An alternate way to specify the border to be a subgroup style is like this (i.e. use the first unnamed parameter instead of the named ''border'' parameter): | |||
:::<code> | |||
<nowiki>{{Navbox|child</nowiki> </code> | |||
::::<code>... | ::::<code>... | ||
:::<code> | :::<code><nowiki>}}</nowiki></code> | ||
<nowiki>}}</nowiki> </code> | |||
=== Cells === | === Cells === | ||
:; ''title'' | :; ''title''<nowiki>*</nowiki> | ||
:: Text that appears centered in the top row of the table. It is usually the template's topic, i.e. a succinct description of the body contents. This should be a single line, but if a second line is needed, use <code><nowiki>{{-}}</nowiki></code> to ensure proper centering. This parameter is technically not mandatory, but using {{tl|Navbox}} is rather pointless without a title. | |||
<nowiki>*</nowiki> :: | :; ''group<sub>n</sub>''<nowiki>*</nowiki> | ||
:: (i.e. ''group1'', ''group2'', etc.) If specified, text appears in a header cell displayed to the left of ''list<sub>n</sub>''. If omitted, ''list<sub>n</sub>'' uses the full width of the table. | |||
<nowiki> | :; ''list<sub>n</sub>''<nowiki>*</nowiki> | ||
:: (i.e. ''list1'', ''list2'', etc.) The body of the template, usually a list of links. Format is inline, although the text can be entered on separate lines if the entire list is enclosed within <code><nowiki><div> </div></nowiki></code>. At least one ''list'' parameter is required; each additional ''list'' is displayed in a separate row of the table. Each ''list<sub>n</sub>'' may be preceded by a corresponding ''group<sub>n</sub>'' parameter, if provided (see below). | |||
:; '' | :; ''image''<nowiki>*</nowiki> | ||
:: An image to be displayed in a cell below the title and to the right of the body (the groups/lists). For the image to display properly, the ''list1'' parameter must be specified. The ''image'' parameter accepts standard wikicode for displaying an image, ''e.g.'': | |||
::: <code><nowiki>[[Image:</nowiki><var>XX</var><nowiki>.jpg|90px|link=|alt=]]</nowiki></code> | |||
<nowiki>*</nowiki> :: | :; ''imageleft''<nowiki>*</nowiki> | ||
:: An image to be displayed in a cell below the title and to the left of the body (lists). For the image to display properly, the ''list1'' parameter must be specified and no groups can be specified. It accepts the same sort of parameter that ''image'' accepts. | |||
:; '' | :; ''above''<nowiki>*</nowiki> | ||
:: A full-width cell displayed between the titlebar and first group/list, i.e. ''above'' the template's body (groups, lists and image). In a template without an image, ''above'' behaves in the same way as the ''list1'' parameter without the ''group1'' parameter. | |||
:; ''below''<nowiki>*</nowiki> | |||
:: A full-width cell displayed ''below'' the template's body (groups, lists and image). In a template without an image, ''below'' behaves in the same way as the template's final ''list<sub>n</sub>'' parameter without a ''group<sub>n</sub>'' parameter. For an example of the ''below'' parameter in use, see {{tl|Lists of the provinces and territories of Canada}}. | |||
<nowiki>*</nowiki> | |||
=== Style parameters === | === Style parameters === | ||
Styles are generally not recommended as to maintain consistency among templates and pages in | Styles are generally not recommended as to maintain consistency among templates and pages in Wikipedia. However, the option to modify styles is given. | ||
:; ''style'' | :; ''style''<nowiki>*</nowiki> | ||
:: Specifies [[برگههای سبک آبشاری|CSS]] styles to apply to the template body. The parameter ''bodystyle'' also does the exact same thing and can be used in place of this ''style'' parameter. This option should be used sparingly as it can lead to visual inconsistencies. Examples: | |||
<nowiki>*</nowiki> :: Specifies [[برگههای سبک آبشاری|CSS]] styles to apply to the template body. The parameter ''bodystyle'' also does the exact same thing and can be used in place of this ''style'' parameter. This option should be used sparingly as it can lead to visual inconsistencies. Examples: | |||
::: <code>style = background:#''nnnnnn'';</code> | ::: <code>style = background:#''nnnnnn'';</code> | ||
::: <code>style = width:''N'' [em/%/px or width:auto];</code> | ::: <code>style = width:''N'' [em/%/px or width:auto];</code> | ||
خط ۱۷۵: | خط ۱۳۵: | ||
::: <code>style = clear:[''right/left/both/none''];</code> | ::: <code>style = clear:[''right/left/both/none''];</code> | ||
:; ''basestyle'' | :; ''basestyle''<nowiki>*</nowiki> | ||
:: CSS styles to apply to the ''title'', ''above'', ''below'', and ''group'' cells all at once. The styles are not applied to ''list'' cells. This is convenient for easily changing the basic color of the navbox without having to repeat the style specifications for the different parts of the navbox. Examples: | |||
<nowiki>*</nowiki> :: CSS styles to apply to the ''title'', ''above'', ''below'', and ''group'' cells all at once. The styles are not applied to ''list'' cells. This is convenient for easily changing the basic color of the navbox without having to repeat the style specifications for the different parts of the navbox. Examples: | |||
::: <code>basestyle = background:lightskyblue;</code> | ::: <code>basestyle = background:lightskyblue;</code> | ||
:; ''titlestyle'' | :; ''titlestyle''<nowiki>*</nowiki> | ||
:: [[برگههای سبک آبشاری|CSS]] styles to apply to ''title'', most often the titlebar's background color: | |||
::: <code><nowiki>titlestyle = background:</nowiki>''#nnnnnn'';</code> | |||
::: <code><nowiki>titlestyle = background:</nowiki>''name'';</code> | |||
:; ''groupstyle''<nowiki>*</nowiki> | |||
:: CSS styles to apply to the ''groupN'' cells. This option overrides any styles that are applied to the entire table. Examples: | |||
:; ''groupstyle'' | |||
<nowiki>*</nowiki> :: CSS styles to apply to the ''groupN'' cells. This option overrides any styles that are applied to the entire table. Examples: | |||
::: <code>groupstyle = background:#''nnnnnn'';</code> | ::: <code>groupstyle = background:#''nnnnnn'';</code> | ||
::: <code>groupstyle = text-align:[''left/center/right''];</code> | ::: <code>groupstyle = text-align:[''left/center/right''];</code> | ||
::: <code>groupstyle = vertical-align:[''top/middle/bottom''];</code> | ::: <code>groupstyle = vertical-align:[''top/middle/bottom''];</code> | ||
:; ''group<sub>n</sub>style'' | :; ''group<sub>n</sub>style''<nowiki>*</nowiki> | ||
:: CSS styles to apply to a specific group, in addition to any styles specified by the ''groupstyle'' parameter. This parameter should only be used when absolutely necessary in order to maintain standardization and simplicity. Examples: | |||
<nowiki>*</nowiki> :: CSS styles to apply to a specific group, in addition to any styles specified by the ''groupstyle'' parameter. This parameter should only be used when absolutely necessary in order to maintain standardization and simplicity. Examples: | |||
::: <code>group3style = background:red;color:white;</code> | ::: <code>group3style = background:red;color:white;</code> | ||
خط ۲۰۶: | خط ۱۵۸: | ||
::: <code>groupwidth = 9em</code> | ::: <code>groupwidth = 9em</code> | ||
:; ''liststyle'' | :; ''liststyle''<nowiki>*</nowiki> | ||
:: CSS styles to apply to all lists. Overruled by the ''oddstyle'' and ''evenstyle'' parameters (if specified) below. When using backgound colors in the navbox, see the [[#Intricacies|note below]]. | |||
<nowiki>*</nowiki> :: CSS styles to apply to all lists. Overruled by the ''oddstyle'' and ''evenstyle'' parameters (if specified) below. When using backgound colors in the navbox, see the [[#Intricacies|note below]]. | |||
:; '' | :; ''list<sub>n</sub>style''<nowiki>*</nowiki> | ||
:: CSS styles to apply to a specific list, in addition to any styles specified by the ''liststyle'' parameter. This parameter should only be used when absolutely necessary in order to maintain standardization and simplicity. Examples: | |||
::: <code>list5style = background:#dbe7ff;</code> | |||
<nowiki>*</nowiki> :: A number and unit specifying the padding in each ''list'' cell. The ''list'' cells come equipped with a default padding of 0.25em on the left and right, and 0em on the top and bottom. Due to complex technical reasons, simply setting "liststyle=padding:0.5em;" (or any other padding setting) will not work. Examples: | :; ''listpadding''<nowiki>*</nowiki> | ||
:: A number and unit specifying the padding in each ''list'' cell. The ''list'' cells come equipped with a default padding of 0.25em on the left and right, and 0em on the top and bottom. Due to complex technical reasons, simply setting "liststyle=padding:0.5em;" (or any other padding setting) will not work. Examples: | |||
::: <code>listpadding = 0.5em 0em; </code> (sets 0.5em padding for the left/right, and 0em padding for the top/bottom.) | ::: <code>listpadding = 0.5em 0em; </code> (sets 0.5em padding for the left/right, and 0em padding for the top/bottom.) | ||
::: <code>listpadding = 0em; </code> (removes all list padding.) | ::: <code>listpadding = 0em; </code> (removes all list padding.) | ||
خط ۲۲۸: | خط ۱۷۷: | ||
:: If set to <code>swap</code>, then the automatic striping of even and odd rows is reversed. Normally, even rows get a light gray background for striping; when this parameter is used, the odd rows receive the gray striping instead of the even rows. Setting to <code>even</code> or <code>odd</code> sets all rows to have that striping color. Setting to <code>off</code> disables automatic row striping. This advanced parameter should only be used to fix problems when the navbox is being used as a child of another navbox and the stripes do not match up. Examples and a further description can be found in the section on child navboxes below. | :: If set to <code>swap</code>, then the automatic striping of even and odd rows is reversed. Normally, even rows get a light gray background for striping; when this parameter is used, the odd rows receive the gray striping instead of the even rows. Setting to <code>even</code> or <code>odd</code> sets all rows to have that striping color. Setting to <code>off</code> disables automatic row striping. This advanced parameter should only be used to fix problems when the navbox is being used as a child of another navbox and the stripes do not match up. Examples and a further description can be found in the section on child navboxes below. | ||
:; ''abovestyle'' | :; ''abovestyle''<nowiki>*</nowiki> | ||
:; ''belowstyle''<nowiki>*</nowiki> | |||
<nowiki>*</nowiki> :; ''belowstyle'' | :: CSS styles to apply to the top cell (specified via the ''above'' parameter) and bottom cell (specified via the ''below'' parameter). Typically used to set background color or text alignment: | ||
<nowiki>*</nowiki> :: CSS styles to apply to the top cell (specified via the ''above'' parameter) and bottom cell (specified via the ''below'' parameter). Typically used to set background color or text alignment: | |||
::: <code>abovestyle = background:#''nnnnnn'';</code> | ::: <code>abovestyle = background:#''nnnnnn'';</code> | ||
::: <code>abovestyle = text-align:[''left/center/right''];</code> | ::: <code>abovestyle = text-align:[''left/center/right''];</code> | ||
:; ''imagestyle'' | :; ''imagestyle''<nowiki>*</nowiki> | ||
:; ''imageleftstyle''<nowiki>*</nowiki> | |||
<nowiki>*</nowiki> :; ''imageleftstyle'' | :: CSS styles to apply to the cells where the image/imageleft sits. These styles should only be used in exceptional circumstances, usually to fix width problems if the width of groups is set and the width of the image cell grows too large. Examples: | ||
<nowiki>*</nowiki> :: CSS styles to apply to the cells where the image/imageleft sits. These styles should only be used in exceptional circumstances, usually to fix width problems if the width of groups is set and the width of the image cell grows too large. Examples: | |||
::: <code>imagestyle = width:5em;</code> | ::: <code>imagestyle = width:5em;</code> | ||
خط ۲۴۷: | خط ۱۹۲: | ||
:<code>bodystyle = background:#fdfdfd; width:100%; vertical-align:middle;</code> | :<code>bodystyle = background:#fdfdfd; width:100%; vertical-align:middle;</code> | ||
:<code>titlestyle = background:# | :<code>titlestyle = background:#b3ccff; padding-left:1em; padding-right:1em; text-align:center;</code> | ||
:<code>abovestyle = background:# | :<code>abovestyle = background:#dbe7ff; padding-left:1em; padding-right:1em; text-align:center;</code> | ||
:<code>belowstyle = background:# | :<code>belowstyle = background:#dbe7ff; padding-left:1em; padding-right:1em; text-align:center;</code> | ||
:<code>groupstyle = background:# | :<code>groupstyle = background:#dbe7ff; padding-left:1em; padding-right:1em; text-align:right;</code> | ||
:<code>liststyle = background:transparent; text-align:left/center;</code> | :<code>liststyle = background:transparent; text-align:left/center;</code> | ||
:<code>oddstyle = background:transparent;</code> | :<code>oddstyle = background:transparent;</code> | ||
:<code>evenstyle = background:# | :<code>evenstyle = background:#f8f9fa;</code> | ||
Since ''liststyle'' and ''oddstyle'' are transparent, odd lists have the color of the ''bodystyle'', which defaults to #fdfdfd (white with a hint of gray). A list defaults to <code>text-align:left;</code> if it has a group, if not it defaults to <code>text-align:center;</code>. Since only ''bodystyle'' has a vertical-align all the others inherit its <code>vertical-align:middle;</code>. | Since ''liststyle'' and ''oddstyle'' are transparent, odd lists have the color of the ''bodystyle'', which defaults to #fdfdfd (white with a hint of gray). A list defaults to <code>text-align:left;</code> if it has a group, if not it defaults to <code>text-align:center;</code>. Since only ''bodystyle'' has a vertical-align all the others inherit its <code>vertical-align:middle;</code>. | ||
خط ۲۸۵: | خط ۲۳۰: | ||
''or'' (for example): | ''or'' (for example): | ||
<pre> | <pre><nowiki> | ||
<nowiki> | |||
|title = The books of <span class="fn">[[Iain Banks]]</span> | |title = The books of <span class="fn">[[Iain Banks]]</span> | ||
</nowiki> </pre> | </nowiki></pre> | ||
...and so forth. | ...and so forth. | ||
See [[ | See [[Wikipedia:WikiProject Microformats]] for more information on adding microformat information to Wikipedia, and [[microformat]] for more information on microformats in general. | ||
== Layout of table == | == Layout of table == | ||
خط ۳۹۵: | خط ۳۳۸: | ||
| title = [[Multimedia Super Corridor|MSC Malaysia]] | | title = [[Multimedia Super Corridor|MSC Malaysia]] | ||
| image = [[Image:Flag of Malaysia.svg|80px|link=|alt=]] | | image = [[Image:Flag of Malaysia.svg|80px|link=|alt=]] | ||
| list1 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}} | | list1 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}} | ||
[[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}} | [[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}} | ||
[[پوتراجایا]]{{·}} [[Cyberjaya]]{{·}} | [[پوتراجایا]]{{·}} [[Cyberjaya]]{{·}} | ||
خط ۵۲۱: | خط ۴۶۴: | ||
|list1 = List1 | |list1 = List1 | ||
|group2 = Group2 | |group2 = Group2 | ||
|list2 = | |list2 = | ||
{{Navbox|child | {{Navbox|child | ||
|evenodd = swap | |evenodd = swap | ||
خط ۵۳۶: | خط ۴۷۹: | ||
|group4 = Group4 | |group4 = Group4 | ||
|list4 = | |list4 = | ||
{{Navbox|child | {{Navbox|child | ||
|evenodd = swap | |evenodd = swap | ||
خط ۵۶۴: | خط ۵۰۷: | ||
|list1 = [[French rule in Algeria|Algeria]]{{·}} [[French Morocco|Morocco]] <small>([[Arguin|Arguin Island]])</small>{{·}} [[History of Tunisia|Tunisia]] | |list1 = [[French rule in Algeria|Algeria]]{{·}} [[French Morocco|Morocco]] <small>([[Arguin|Arguin Island]])</small>{{·}} [[History of Tunisia|Tunisia]] | ||
|group2 = [[ | |group2 = [[آفریقای غربی فرانسه]] | ||
|list2 = [[History of Côte d'Ivoire#French Period|Côte d'Ivoire]]{{·}} [[French Dahomey|Dahomey]]{{·}} [[French Sudan]]{{·}} [[French Guinea|Guinea]]{{·}} [[History of Mauritania#French colonization and post-colonial history|Mauritania]]{{·}} [[History of Niger#Colonization|Niger]]{{·}} [[History of Senegal|Senegal]]{{·}} [[French Upper Volta|Upper Volta]] | |list2 = [[History of Côte d'Ivoire#French Period|Côte d'Ivoire]]{{·}} [[French Dahomey|Dahomey]]{{·}} [[French Sudan]]{{·}} [[French Guinea|Guinea]]{{·}} [[History of Mauritania#French colonization and post-colonial history|Mauritania]]{{·}} [[History of Niger#Colonization|Niger]]{{·}} [[History of Senegal|Senegal]]{{·}} [[French Upper Volta|Upper Volta]] | ||
خط ۵۷۰: | خط ۵۱۳: | ||
|list3 = [[French Togoland]]{{·}} [[James Island (The Gambia)|James Island]] | |list3 = [[French Togoland]]{{·}} [[James Island (The Gambia)|James Island]] | ||
|group4 = [[ | |group4 = [[آفریقای استوایی فرانسه]] | ||
|list4 = [[Colonial Chad|Chad]]{{·}} [[History of Gabon|Gabon]]{{·}} [[History of the Republic of the Congo|Middle Congo]]{{·}} [[ | |list4 = [[Colonial Chad|Chad]]{{·}} [[History of Gabon|Gabon]]{{·}} [[History of the Republic of the Congo|Middle Congo]]{{·}} [[اوبانگی-شاری]] | ||
|group5 = [[مجمعالجزایر قمر]] | |group5 = [[مجمعالجزایر قمر]] | ||
|list5 = [[ | |list5 = [[آنژوان]]{{·}} [[گرند کومور]]{{·}} [[Mohéli]] | ||
|group6 = | |group6 = | ||
خط ۵۸۲: | خط ۵۲۵: | ||
|list2 = {{Navbox|child | |list2 = {{Navbox|child | ||
|name = Former French colonies in the Americas | |name = Former French colonies in the Americas | ||
|titlestyle = | |titlestyle = | ||
|title = [[تاریخ استعمارگری فرانسه|Former French colonies]] in the [[قاره آمریکا]] | |title = [[تاریخ استعمارگری فرانسه|Former French colonies]] in the [[قاره آمریکا]] | ||
|groupstyle = | |groupstyle = | ||
|list1 = [[فرانسه نو]]{{spaces|2}}<small>([[آکادی (مستعمره فرانسوی)]] • [[ | |list1 = [[فرانسه نو]]{{spaces|2}}<small>([[آکادی (مستعمره فرانسوی)]] • [[لوئیزیانا (فرانسه نو)|Louisiana]] • [[Canada, New France|Canada]] • [[نیوفاندلند (جزیره)|Terre Neuve]]) 1655 – 1763 </small> | ||
|list2 = [[Inini]]{{·}} [[Berbice]]{{·}} [[Saint-Domingue]] <small>([[هائیتی]])</small>{{·}} [[ | |list2 = [[Inini]]{{·}} [[Berbice]]{{·}} [[Saint-Domingue]] <small>([[هائیتی]])</small>{{·}} [[توباگو]]{{·}} [[History of the British Virgin Islands|Virgin Islands]]{{·}} {{nowrap|[[France Antarctique]]}}{{·}} {{nowrap|[[فرانسه استوایی]]}} | ||
|belowstyle = | |belowstyle = | ||
|below = [[French West India Company]] | |below = [[French West India Company]] | ||
}} | }} | ||
خط ۵۹۶: | خط ۵۳۹: | ||
|name = Former French colonies in Asia and Oceania | |name = Former French colonies in Asia and Oceania | ||
|title = [[تاریخ استعمارگری فرانسه|Former French colonies]] in [[آسیا]] and [[اقیانوسیه]] | |title = [[تاریخ استعمارگری فرانسه|Former French colonies]] in [[آسیا]] and [[اقیانوسیه]] | ||
|groupstyle = | |groupstyle = | ||
|group1 = [[هند فرانسوی]] | |group1 = [[هند فرانسوی]] | ||
|list1 = [[چندنگر]]{{·}} [[Coromandel Coast]]{{·}} [[History of Chennai|Madras]]{{·}} [[Malabar]]{{·}} [[Mahé, India|Mahé]]{{·}} [[History of Puducherry|Pondichéry]]{{·}} [[Karaikal]]{{·}} [[Yanam (India)|Yanaon]] | |list1 = [[چندنگر]]{{·}} [[Coromandel Coast]]{{·}} [[History of Chennai|Madras]]{{·}} [[Malabar]]{{·}} [[Mahé, India|Mahé]]{{·}} [[History of Puducherry|Pondichéry]]{{·}} [[Karaikal]]{{·}} [[Yanam (India)|Yanaon]] | ||
|group2 = [[ | |group2 = [[هندوچین فرانسوی]] | ||
|list2 = [[Colonial Cambodia|Cambodia]]{{·}} [[History of Laos to 1945#French Laos|Laos]]{{·}} [[ | |list2 = [[Colonial Cambodia|Cambodia]]{{·}} [[History of Laos to 1945#French Laos|Laos]]{{·}} [[هندوچین فرانسوی|Vietnam]] <small>([[Annam (French colony)|Annam]] • [[کوچین چین]] • [[Tonkin]])</small> | ||
|group3 = Other Asian | |group3 = Other Asian | ||
خط ۶۱۰: | خط ۵۵۳: | ||
|list4 = [[New Hebrides]] [[History of Vanuatu|(Vanuatu)]] | |list4 = [[New Hebrides]] [[History of Vanuatu|(Vanuatu)]] | ||
|belowstyle = | |belowstyle = | ||
|below = [[French East India Company]] | |below = [[French East India Company]] | ||
}} | }} | ||
خط ۶۱۹: | خط ۵۶۲: | ||
== Relationship with other Navbox templates == | == Relationship with other Navbox templates == | ||
This navbox template is specifically designed to work in conjunction two other sister templates: {{tl|Navbox with columns}} and {{tl|Navbox with collapsible groups}}. All three of these templates share common parameters for consistency and ease of use (such parameters are marked with a <sup>'''†'''</sup> in the complete parameter list above). Most importantly, all three of these templates can each be used as children of one another (by using the <code>border = child</code> parameter, or by specifying the first unnamed parameter to be <code>child</code> (i.e. use <code> | This navbox template is specifically designed to work in conjunction two other sister templates: {{tl|Navbox with columns}} and {{tl|Navbox with collapsible groups}}. All three of these templates share common parameters for consistency and ease of use (such parameters are marked with a <sup>'''†'''</sup> in the complete parameter list above). Most importantly, all three of these templates can each be used as children of one another (by using the <code>border = child</code> parameter, or by specifying the first unnamed parameter to be <code>child</code> (i.e. use <code><nowiki>{{Navbox|child</nowiki></code>, <code><nowiki>{{Navbox with columns|child</nowiki></code>, or <code><nowiki>{{Navbox with collapsible groups|child</nowiki></code>). For examples on how this is done, see the page on [[Template:Navbox/doc/Advanced examples|advanced navbox examples]]. | ||
<nowiki>{{Navbox|child</nowiki> </code>, <code> | |||
<nowiki>{{Navbox with columns|child</nowiki> </code>, or <code> | |||
<nowiki>{{Navbox with collapsible groups|child</nowiki> </code>). For examples on how this is done, see the page on [[Template:Navbox/doc/Advanced examples|advanced navbox examples]]. | |||
== Technical details == | == Technical details == | ||
خط ۶۴۹: | خط ۵۸۶: | ||
===Known bugs=== | ===Known bugs=== | ||
If the heading of the navbox spans more than one line, the second line will be displayed to the right of center. This can be avoided by hard-coding linebreaks with {{nowrap|<code> | If the heading of the navbox spans more than one line, the second line will be displayed to the right of center. This can be avoided by hard-coding linebreaks with {{nowrap|<code><nowiki><br clear=all></nowiki></code>.}} | ||
<nowiki><br clear=all></nowiki> </code>.}} | |||
== See also == | == See also == | ||
خط ۶۷۰: | خط ۶۰۵: | ||
<includeonly> | <includeonly> | ||
<!--Categories--> | <!--Categories--> | ||
[[رده:جعبههای ناوبری| ]] | |||
[[رده:فراالگوهای ویکیپدیا]] | |||
[[رده:مستثنی از چاپ|{{PAGENAME}}]] | |||
[[رده:الگو:مبتنی بر لوآ]] | |||
</includeonly> | </includeonly> | ||