الگو:Infobox record label

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

Usage[ویرایش]

{{{name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|{{{image_alt}}}]]
{{{caption}}}
شرکت مادر {{{parent}}}
تأسیس‌شده {{{founded}}}
مؤسس {{{founder}}}
غیرفعال یا منحل‌شده {{{defunct}}}
وضعیت {{{status}}}
توزیع‌کنندگان {{{distributor}}}
ٰٰژانر {{{genre}}}
کشور مبدأ {{{country}}}
مکان {{{location}}}
وب‌گاه رسمی {{{url}}}

{{Infobox record label}} adds an infobox to the article page of a ناشر موسیقی. The template's code should go at the top of the page, before the article lead section, but below disambiguation notices (see also WP:WAI).

Pre-filled sample[ویرایش]

For simple use, you can directly cut-n-paste the sample code below (filling in the relevant fields, deleting the irrelevant fields, and leaving out with their self-documentation comments the fields you don't know or that can be used later):

{{Infobox record label <!-- See Wikipedia:WikiProject_Music -->
| name        = <!-- "label name" displayed in box title, defaults to page title -->
| image       = <!-- logo, such as "LABEL-LOGO.jpg" -->
| image_size  = <!-- size -->
| image_alt   = <!-- WP:ALT text describing the image -->
| caption     = <!-- a caption for the image -->
| parent      = <!-- parent company, such as "[[Warner Music Group]]" -->
| founded     = <!-- year of foundation, such as {{start date|1950}} -->
| founder     = <!-- name of founders, separate with commas or <br /> -->
| fate        = <!-- explain the reason of the closing-->
| defunct     = <!-- year the label dissolved, such as {{end date|1990}} -->
| status      = <!-- leave blank unless "Inactive" -->
| distributor = <!-- distributors, separate with commas or <br /> -->
| genre       = <!-- such as "[[World music|World]]" or "Various", separate with commas or <br /> -->
| country     = <!-- origin, such as "U.S." or "{{Flag|Turkey}}" -->
| location    = <!-- headquarters city and state -->
| url         = <!-- such as "{{URL|www.atlanticrecords.com}}" -->
}}

Empty sample[ویرایش]

If you already know exactly what goes into each field, this version too can be cut-n-pasted directly into your article and filled on the spot, without having to delete the helper comments as you fill it:

{{Infobox record label <!-- See Wikipedia:WikiProject_Music -->
| name        = 
| image       = 
| image_size  =
| image_alt   =
| caption     =  
| parent      = 
| founded     = <!-- {{Start date|YYYY}} -->
| founder     = 
| fate        = 
| defunct     = <!-- {{End date|YYYY}} -->
| status      = 
| distributor = 
| genre       = 
| country     = 
| location    = 
| url         = <!-- {{URL|example.com}} -->
}}

Fields[ویرایش]

All fields are currently optional (in that not filling them won't cause a display error), but it is recommended to try and fill as much as possible within sourced informations, especially founded and country. An empty {{Infobox record label}} will generate only the blue heading with the name of the article.

name 
(Defaults to article name.) Label name displayed in infobox title.
image 
Label logo, such as LABEL-LOGO.jpg.
image_size
preferably between 100 pixels and 200 pixels wide, depending on its portrait or landscape orientation—default is 180px.
image_alt 
alternative text which describes the image
caption 
a caption for the image
parent 
Parent company, such as [[Warner Music Group]].
founded 
Foundation year, just 4 digits, such as "1950", using {{Start date}}
founder 
Name of founders, separate with commas or <br /> .
fate 
explain the reason of the closing
defunct 
Dissolved year, just 4 digits, such as "1990", using {{end date}}
status 
Leave blank unless Inactive.
distributor 
Distributors, separate with commas or <br /> .
genre 
Such as [[World music|World]] or Various, separate with commas or <br /> .
country 
Origin, such as U.S. or {{Flag|Turkey}}.
location 
Headquarters city and state.
url 
Specifies official site of record label using {{[[Template:URL|URL}}, for example:
{{URL|www.atlanticrecords.com}} (concise)
{{URL|www.kalan.com/english/scripts|Kalan.com}} (qualified)

Additional field not provided by default:

bgcolor 
(Deprecated, defaults to "LightBlue".) Background color for box title, not to be used unless justified need.

Example[ویرایش]

Republic Records
Wikipedia-logo-v2-en.svg
شرکت مادر Universal Music Group
تأسیس‌شده ۱۹۹۵ (۱۹۹۵)
مؤسس
توزیع‌کنندگان
ٰٰژانر Various
کشور مبدأ United States
مکان New York City
وب‌گاه رسمی www.republicrecords.com
{{Infobox record label <!-- See Wikipedia:WikiProject_Music -->
| name        = Republic Records
| image_name  = Wikipedia-logo-v2-en.svg
| image_size  = 100px
| parent      = [[Universal Music Group]]
| founded     = {{Start date|1995}}
| founder     = {{ubl| [[Monte Lipman]] | Avery Lipman }}
| distributor = {{ubl| Universal Music Group (Worldwide) | [[Virgin EMI Records]] (in the UK) }}
| genre       = Various
| country     = United States
| location    = New York City
| url         = {{URL|www.republicrecords.com}}
}}

The above template code example produces the infobox displayed at right.

  • The actual logo is not displayed on this documentation page because of fair-use limitations (it can be used only to illustrate the article about it). A Wikipedia logo is used here to demonstrate logo use and placement.
  • Notice in the distributor field how you can go to a new line for a sub-item by hiding the newline in the middle of the <br /> . Doing so is not required (the founder field doesn't use it), and neither version affects the output, but it can make the wikicode more readable and editable with long sub-items.
  • Two fields have been deleted: image_bg (because the default white color is to be used here), and status (because the company is neither inactive nor defunct, and currently unlikely to require the field in the near future).

Categories[ویرایش]

The template does not create any automatic categorization of the article. You have to add your article to the relevant categories. Suggested categories (and their subcategories) to investigate include:

Plus one or more possible special case such as:

And possibly more from:

Microformat[ویرایش]

کد اچ‌تی‌ام‌ال تولیدشده توسط این الگو محتوی یک میکروفرمت hCard می‌باشد، که جزئیات سازمان را برای رایانه‌ها قابل تجزیه می‌کند.

الگوهای زیرمجموعه[ویرایش]

  • اگر نهاد تاریخ بنیادگذاری یا آغاز یا گشایش یا ... دارد می‌توانید از {{تاریخ آغاز}} استفاده کنید. ().
  • برای نشانی وبگاه نهاد از {{نشانی وب}} استفاده کنید.
  • اگر نهاد مختصات جغرافیایی دارد، از {{Coord}} استفاده کنید برای نمایش ، که دستگاه مختصات جغرافیایی (طول و عرض) با تجزیهٔ دستور نمایش می‌دهد.parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit.

Please do not remove instances of these sub-templates.

Classes[ویرایش]

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

    • adr
    • agent
    • category
    • country-name
    • extended-address
    • fn
    • geo
    • label
    • latitude
    • locality
    • longitude
    • nickname
    • note
    • org
    • region
    • street-address
    • url
    • vcard

لطفا این کلاس‌ها یا تغییر نام یا حذف نکنید؛ nor collapse nested elements which use them.

See also[ویرایش]