پرش به محتوا

الگو:Countyrow

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

This creates an entry in a table of counties in the United States. Features:

{{Countyrow |Name= |N= |Num= |Seat= |Data1= |Data2= ... |Data6= |Population= |Area= |Alt= }}

  • Name= is the name of the county without the word "County" as used in the link, e.g. Los Angeles County, California or شهرستان آرلینگتون، ویرجینیا you would use Name=Los Angeles or Name=Arlington etc.
  • N= is the two-digit FIPS state code of the county's state, e.g. N=04 for Arizona, N=10 for Delaware, etc. The name of the state will be composed from this number.
  • Num= is the three-digit fips county code for that county, e.g. N=001 or N=037 etc.
  • Seat= is the county seat. The state's name is included automatically in the wikilink. Can be replaced with noseat parameter (see below)
  • Population= is the population of the county. This must be given as a raw number without any commas, as the etmplate formats this value using the {{nts}} template.
  • Area= is the total area of the county:
    • If this is a raw number, then the template will assume its the area in square miles, format it with {{nts}}, and also give the area in square kilometers.
    • If this isn't a raw number, then the value is displayed unaltered
  • A map is automically generated, using the information from the parameters given, with a size of 150px. See also map and size paramets below.
  • Type= Normally, the county link is of the form [['name' county, state|'name' county]]. If non-empty, then link becomes [['name' 'type', state|'name' 'type']].
    • Notype=yes results in no addition being appended to the county name. (e.g. for City and County of Honolulu).
  • Noseat= is used when a county doesn't have one seat. The value of this parameter is displayed instead. (For example, a note about the lack of seat, or the details of multiple seats)
  • Data1=... Data6= up to six columsn of additional information can be included. Convention is to include (in the following order):
    1. The county's licence plate code (where applicable)
    2. County's creation date/year
    3. The county's origin (which counties it was formed out of)
    4. The etymology of the county name
  • Map= is the name of the image to used for the county map when the autmatically generated version doesn't work. The Image: prefix must not be included. Default size is 150px.
  • Alt= is the alt text for the map, for visually impaired readers; it is used both for automatically generated maps and for explicitly specified maps. Please see WP:ALT for more about alt text. The default alt text is Map of state highlighting {county name}.
  • Size= is used when 150px produces a map that is too big. Example: Size=100px
  • Showstate=yes results in the state's name being appended to the county name, and the full FIPS code for the county being displayed (i.e. including state two digit code).

نشانه‌گذاری اچ‌تی‌ام‌الی که این الگو تولید می‌کند، شامل یک ریزقالب اچ‌کارت است که نام و موقعیت مکان را برای رایانه‌ها تجزیه‌پذیر می‌سازد؛ خواه به‌صورت خودکار برای فهرست‌بندی مقاله‌ها در سراسر ویکی‌پدیا، خواه از راه ابزاری در مرورگر که کاربری آن را به‌کار می‌برد تا برای نمونه موضوع را به دفترچهٔ نشانی‌ها بیفزاید. درون این اچ‌کارت، یک ریزقالب جئو جای دارد که افزون بر آن، مختصات (طول و عرض جغرافیایی) را نیز تجزیه‌پذیر می‌کند تا برای نمونه بتوان آن‌ها را روی نقشه یافت یا در دستگاه جی‌پی‌اس بارگیری کرد. برای آگاهی بیشتر دربارهٔ کاربرد ریزقالب‌ها در ویکی‌پدیا، لطفاً پروژهٔ میکروفرمت را ببینید.

اگر مکان دارای تاریخ «ساخت»، «پایه‌گذاری»، «گشایش» یا مانند آن است از {{تاریخ آغاز}} استفاده کنید. مگر اینکه تاریخ گاه‌شماری دوران مشترک پیش از ۱۵۸۳ باشد.

اگر پیوند دارد از {{نشانی وب}} استفاده کنید.

خواهشمند است کاربردهای این زیرالگوها را حذف نکنید.

hCard از کلاس‌های HTML زیر استفاده می‌کند:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

مختصات با فراخوانی {{coord}} و استفاده از کلاس‌های اچ‌تی‌م‌ال زیر تولید می‌شود:

  • geo
  • latitude
  • longitude

خواهشمند است این کلاس‌ها را تغییرنام ندهید یا حذف نکنید. عناصر تودرتویی که از آنها استفاده می‌کنند را نیز به حالت جمع‌شده درنیاورید.

هنگام ارائه مختصات، خواهشمند است از سطح مناسبی از دقت استفاده کنید. پارامتر |name= از الگوی {{coord}} را بکار نبرید.

For further help or information, see WP:COUNTYLISTS