الگو:موضوع قاره آمریکا

توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

الگوهای موضوع قاره/منطقه توانایی ساخت الگوهای ناوبری برای نوشتارهایی دربارهٔ یک موضوع مشترک در کشورهای گوناگونِ یک قاره/سرزمین را در کمترین زمان ممکن فراهم می‌کنند. این الگو الگو:جعبه ناوبری را برای ساخت جعبهٔ ناوبری به کار می‌گیرد.
فهرست کشورهایی که در الگوهای «موضوع قاره» به کار گرفته شده، همان فهرستی است که در الگوهای «کشورهای قاره» نیز به کار برده می‌شود.
برای نمونه، روش رایج دربارهٔ اقیانوسیه این است که قاره اقیانوسیه در بر گیرندهٔ استرالیا و کشورهای اقیانوس آرام است ولی جزیره‌هایی که رابطهٔ نزدیکتری با آسیا یا آمریکا دارند در آن قاره‌ها جای می‌گیرند.

استفاده ویرایش

پارامتر اول (پیشوند) ویرایش

The most basic usage of template is with a single unnamed parameter in the format {{Continent/region topic|Topic [of/in]}}، replacing Continent/region with the name of a continent or region and Topic with the name of a topic followed by "of" or "in". برای مثال، {{موضوع آفریقا|جغرافیای}} generates a navigation box titled "جغرافیای آفریقا" with a list of country names linked to articles such as جغرافیای آنگولا، غیره.

کد
{{موضوع آفریقا|جغرافیای}}
نتیجه

می‌توان پارامتر نام‌دار prefix (:پیشوند) را به جای نخستین پارامتر بی‌نام به کار برد.

کد
{{موضوع آسیا|prefix=جغرافیای}}
نتیجه

پارامتر دوم (پسوند) ویرایش

The template accepts a second unnamed parameter for text to be placed after the country name. There is no space between the country name and the suffix، to allow for links to articles such as List of اسپانیا-موضوع مرتبط.

کد
{{موضوع اروپا|فهرست|-موضوع مرتبط}}
نتیجه

An underscore can be used to place a space between the country name and the text:

کد
{{موضوع آمریکای شمالی|فهرست اصلی|_موضوع}}
نتیجه

Note that in the above example the links work but the underscore is displayed in the title. This can be fixed by specifying a title (see next section) or by using the named parameter suffix which always places a space between the country name and text.

کد
{{موضوع آمریکای جنوبی|prefix=فهرست اصلی|suffix=موضوع}}
نتیجه


تغییر عنوان ویرایش

The title parameter is used to specify text which appears in the title bar at the top of the navigation box. This is optional because the use of prefix، suffix or both will automatically generate a title، as shown in the previous examples. This title is not automatically ویکی‌متنed، so add brackets as needed.

The following shows a navigation box with links to articles such as پرچم استرالیا، but replaces the default title «پرچم‌های قاره اقیانوسیه» with the specified title «پرچم‌های قاره اقیانوسیه».

کد
{{موضوع اقیانوسیه|پرچم|title=[[پرچم‌های قاره اقیانوسیه]]}}
نتیجه

نمایش الگو در حالت show ویرایش

These navigation boxes are set to autocollapse when there is more than one on a page. To force it into collapsed or expanded mode use the state parameter. If set to collapsed، the navbox will always start out in a collapsed state. If set to blank or anything other than autocollapse or collapsed، the navbox will always start out in an expanded state.

کد
{{موضوع آفریقا|prefix=جغرافیای|state=expand}}
نتیجه

Disabling dependencies and other territories ویرایش

Not all قلمروی وابسته or similar territories have their own articles on particular topics. To disable the inclusion of such territories in a template (that would otherwise appear as Wikipedia:Red links)، include the parameter "countries_only=yes".

کد
{{موضوع اروپا|prefix=اسلام در|state=expanded|countries_only=yes}}:
نتیجه

ایجاد یک الگوی تازه ویرایش

Although these templates can be used in an article، they can also be used to create a new template. The name parameter is mandatory when creating a new template، because it allows the "v • d • e" links to work properly. The following example shows code that could be used to create الگو:پرچم‌های اروپا.

{{موضوع اروپا
|name   = پرچم‌های اروپا
|state  = {{{state|}}}
|title  = [[پرچم‌های اروپا]]
|prefix = پرچم
}}<noinclude>
[[رده:الگو:اروپا]]
</noinclude>

The template can then be added to articles using {{پرچم اتحادیه اروپا}} یا {{پرچم‌های اروپا|state=expand}}.

هنگام استفاده الگوها ویرایش

  1. Before implementing these templates in a topic، check for red links. If there are several red links، consider whether a separate article in the topic for each country is warranted.
  2. Some topics می use a different navigational scheme. In general، don't use this template if there are already navigational templates in several of the articles of a topic.

Examples of appropriate articles for these templates are {{موضوع آفریقا|فرهنگ}} یا {{موضوع آمریکای شمالی|List of airports in}}، both of which have a number of blue links، and where the majority of red links could have a reasonable article written about them.

Examples of inappropriate articles for these templates are {{موضوع آمریکای شمالی|مایا در}}، where articles could only be written for a small number of nations and {{موضوع اقیانوسیه|Music of}}، where articles already have templates which use a different navigational scheme.

تغییرمسیرها ویرایش

When there are a small number of links for which an article is not appropriate، consider making a redirect to the broader article in which the topic is included. For example، Hinduism in کامبوج redirects to Hinduism in Southeast Asia and جغرافیای جزایر ماریانای شمالی redirects to جزایر ماریانای شمالی#Geography and cلیماte. For another example، both ایرلند national rugby union team and ایرلند national rugby union team redirect to ایرلند national rugby union team، the single national team that represents the entire island.

یادداشت‌ها ویرایش

الگوهای ناوبری معمولاً در پایان مقاله قرار داده شده‌است.


استفاده ویرایش

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

مقایسه الگوهای بر پایه قاره
آفریقا آسیا اروپا اقیانوسیه آمریکای شمالی آمریکای جنوبی
جهان {{قاره‌های جهان}} · {{مناطق جهان}} · {{فهرست‌های کشورها بر پایه قاره}}
تولیدکننده {{موضوع آفریقا}} {{موضوع آسیا}} {{موضوع اروپا}} {{موضوع اقیانوسیه}} {{موضوع آمریکای شمالی}} {{موضوع آمریکای جنوبی}}
{{موضوع قاره آمریکا}}
{{موضوع اهالی آفریقا}} {{موضوع اهالی آسیا}} {{موضوع اهالی اروپا}} {{موضوع اهالی اقیانوسیه}} {{موضوع اهالی آمریکای شمالی}} {{موضوع اهالی آمریکای جنوبی}}
{{موضوع اهالی آمریکا}}
{{موضوع قاره}} · {{موضوع آسیای جنوب شرقی}} · {{موضوع ایالات متحده آمریکا}} · {{موضوع کارائیب}} · {{موضوع آمریکای لاتین و کارائیب}}
"کشورهای..." {{...آفریقا}} {{...آسیا}} {{...اروپا}} {{...اقیانوسیه}} {{...آمریکای شمالی}} {{...آمریکای جنوبی}}
{{...قاره آمریکا}}
"فهرست پایتخت‌های ..." {{...آفریقا...}} {{...آسیا...}} {{...اروپا...}} {{...اقیانوسیه...}} {{...آمریکای شمالی...}} {{...آمریکای جنوبی...}}