۴۲۵٬۲۲۵
ویرایش
جز (۱ نسخه واردشده) |
بدون خلاصۀ ویرایش |
||
خط ۱: | خط ۱: | ||
{{الگوی محافظت شده}} | |||
{{زیرصفحه توضیحات}} | {{زیرصفحه توضیحات}} | ||
{{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> متن نوار عنوان؛ مثلا <nowiki>[[شهرهای باستانی و تاریخی ایران]]</nowiki> | :<code>title -</code> متن نوار عنوان؛ مثلا | ||
:<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>درج تصویر اختیاری در سمت چپ الگو. تصویر به نوعی زینتی است و باید به صورت <nowiki>[[Image:XX.jpg|90px|link=|alt=]]</nowiki> کدنویسی شود. | :<code>image - </code>درج تصویر اختیاری در سمت چپ الگو. تصویر به نوعی زینتی است و باید به صورت | ||
<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>متنی است که پیوندهای ویکی را فهرست میکند. این پیوندها اغلب با میاننقطه ({{·}}) جدا میشوند. مانند <nowiki>[[فیزیک]]{{·}}[[شیمی]]</nowiki> که میشود: [[فیزیک]]{{·}}[[شیمی]]. | :<code>list<sub>n</sub> - </code>متنی است که پیوندهای ویکی را فهرست میکند. این پیوندها اغلب با میاننقطه ({{·}}) جدا میشوند. مانند | ||
<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 <nowiki>*</nowiki> are common to all three master templates. | {{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. | |||
=== Setup parameters === | === Setup parameters === | ||
:; ''name''<nowiki>*</nowiki> | :; ''name'' | ||
:: 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'' | |||
<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><nowiki><noinclude>uncollapsed</noinclude></nowiki> | :* <code>state = </code> | ||
:* 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><nowiki>| state = {{{state<includeonly>|your_desired_initial_state</includeonly>}}}</nowiki></tt> | :*<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''<nowiki>*</nowiki> | :; ''navbar'' | ||
:: 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. | |||
<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): | |||
:::<code> | |||
<nowiki>{{Navbox|child</nowiki> </code> | |||
::::<code>... | ::::<code>... | ||
:::<code><nowiki>}}</nowiki></code> | :::<code> | ||
<nowiki>}}</nowiki> </code> | |||
=== Cells === | === Cells === | ||
:; ''title''<nowiki>*</nowiki> | :; ''title'' | ||
:: 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> :: 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. | |||
:; ''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. | |||
:; ''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> | |||
:; '' | :; ''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. | |||
:: 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'' | :; ''above'' | ||
:; ''below''<nowiki>*</nowiki> | <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. | ||
:: 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}}. | |||
:; ''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}}. | |||
=== 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 Wikishia. However, the option to modify styles is given. | ||
:; ''style''<nowiki>*</nowiki> | :; ''style'' | ||
:: 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''<nowiki>*</nowiki> | :; ''basestyle'' | ||
:: 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'' | ||
:; ''groupstyle''<nowiki>*</nowiki> | <nowiki>*</nowiki> :: [[برگههای سبک آبشاری|CSS]] styles to apply to ''title'', most often the titlebar's background color: | ||
:: CSS styles to apply to the ''groupN'' cells. This option overrides any styles that are applied to the entire table. Examples: | ::: <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: | |||
::: <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''<nowiki>*</nowiki> | :; ''group<sub>n</sub>style'' | ||
:: 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''<nowiki>*</nowiki> | :; ''liststyle'' | ||
:: 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: | |||
:: 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:#ddddff;</code> | ::: <code>list5style = background:#ddddff;</code> | ||
:; ''listpadding''<nowiki>*</nowiki> | :; ''listpadding'' | ||
:: 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: | |||
<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''<nowiki>*</nowiki> | :; ''abovestyle'' | ||
:; ''belowstyle''<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: | <nowiki>*</nowiki> :; ''belowstyle'' | ||
<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''<nowiki>*</nowiki> | :; ''imagestyle'' | ||
:; ''imageleftstyle''<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: | <nowiki>*</nowiki> :; ''imageleftstyle'' | ||
<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> | ||
خط ۲۳۰: | خط ۲۸۵: | ||
''or'' (for example): | ''or'' (for example): | ||
<pre><nowiki> | <pre> | ||
<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 [[Wikishia:WikiProject Microformats]] for more information on adding microformat information to Wikishia, 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 = [[French West Africa]] | ||
|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 = [[French Equatorial Africa]] | ||
|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]]{{·}} [[Oubangui-Chari]] | ||
|group5 = [[مجمعالجزایر قمر]] | |group5 = [[مجمعالجزایر قمر]] | ||
|list5 = [[ | |list5 = [[Anjouan]]{{·}} [[Grande Comore]]{{·}} [[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 (New France)|Louisiana]] • [[Canada, New France|Canada]] • [[نیوفاندلند (جزیره)|Terre Neuve]]) 1655 – 1763 </small> | ||
|list2 = [[Inini]]{{·}} [[Berbice]]{{·}} [[Saint-Domingue]] <small>([[هائیتی]])</small>{{·}} [[ | |list2 = [[Inini]]{{·}} [[Berbice]]{{·}} [[Saint-Domingue]] <small>([[هائیتی]])</small>{{·}} [[Tobago]]{{·}} [[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 = [[French Indochina]] | ||
|list2 = [[Colonial Cambodia|Cambodia]]{{·}} [[History of Laos to 1945#French Laos|Laos]]{{·}} [[ | |list2 = [[Colonial Cambodia|Cambodia]]{{·}} [[History of Laos to 1945#French Laos|Laos]]{{·}} [[French Indochina|Vietnam]] <small>([[Annam (French colony)|Annam]] • [[Cochinchina]] • [[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><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]]. | 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]]. | |||
== 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><nowiki><br clear=all></nowiki></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>.}} | |||
== See also == | == See also == | ||
خط ۶۰۵: | خط ۶۷۰: | ||
<includeonly> | <includeonly> | ||
<!--Categories--> | <!--Categories--> | ||
[[رده: | |||
[[رده: | |||
</includeonly> | |||
[[رده:Navbox (navigational) templates|Navbox (navigational) templates]] | |||
[[رده:Templates generating microformats]] | |||
[[رده:Wikishia metatemplates|{{PAGENAME}}]] | |||
[[رده:مستثنی از چاپ|{{PAGENAME}}]] | [[رده:مستثنی از چاپ|{{PAGENAME}}]] | ||
ویرایش