({{الگو:ISO 639 name {{{1}}}}})

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

This template is used to indicate to readers that an external link is in a foreign language.

It should generally be placed after the external link, although this is not set in stone; for more information, see ویکی‌پدیا:شیوه‌نامه/پیونددهی. English is the default language, and does not need to be noted using this template, unless there is a reason the reader would assume the link to be in a foreign language (e.g. a foreign title).

For citations, the |language= parameter of the various citation templates ({{cite web}}, {{cite news}}, {{cite journal}}, etc.) should be used instead.

Usage ویرایش

{{link language|<language code>}}

The کد زبان is usually an ایزو ۶۳۹ code but it may be any valid IETF language tag.

Note that language codes do not always coincide with کد کشورs; see the list of ایزو ۳۱۶۶–۱ codes.

Examples ویرایش

ایزو ۱–۶۳۹ code for زبان فرانسوی:

  • Usage: {{link language|fr}}
  • Output: (فرانسوی)

ایزو ۲–۶۳۹ and ایزو ۳–۶۳۹ code for زبان آستوری:

  • Usage: {{link language|ast}}
  • Output: (Asturian)

IETF language tag code for پرتغالی برزیلی:

  • Usage: {{link language|pt-BR}}
  • Output: کد زبان نامعتبر است.

User-defined CSS ویرایش

Logged in users can change the appearance of the template's output using سی‌اس‌اس CSS with the languageicon class. For example, edit Special:MyPage/common.css and add span.languageicon { font-weight: bold; }. That would result in {{link language|fr}} being displayed as (فرانسوی) instead of (فرانسوی).

TemplateData ویرایش

این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده می‌شود. گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده Link language

Displays a language name based on an ISO 639 code, often used after a foreign language reference following the manual of style.

پارامترهای الگو[ویرایش داده‌های الگو]

استفاده از قالب‌بندی درون‌خطی برای پارامترهای این الگو ارجح است.

پارامترتوضیحاتنوعوضعیت
language code1

The ISO 639 language code or IETF language tag, e.g. 'fr' for French, 'pt-BR' for Brazilian Portuguese

رشتهضروری

See also ویرایش