Jump to content

Template:Translatable template name/he

shortcuts: {{TNTN}} {{tntn}}
From mediawiki.org
This page is a translated version of the page Template:Translatable template name and the translation is 100% complete.
תיעוד תבנית

מטרה

תבנית זו משמשת להחזרת שם של תבניות הניתנות לתרגום בשפת הדף הנוכחי. Templates, like all other MediaWiki pages, can be translated using the תרגום extension, which creates subpages with the form "pagename/language code". התבנית בודקת תחילה אם שם הדף מכיל קוד שפה. אם כן, היא בודקת אם לשם התבנית שניתן כפרמטר ראשון יש תרגום בשפה זו. אם שם הדף אינו מכיל קוד שפה, או אם תבנית הניווט אינה קיימת בשפה זו, התבנית באנגלית תוצג.

כיצד להשתמש

  • {{ {{Translatable template name|name of navigation template}}|parameters....}}
  • {{ {{TNTN|name of navigation template}}|parameters....}}
  • {{ {{tntn|name of navigation template}}|parameters....}}

Example (from translatable meta:Template:Meta, used in translatable page meta:Meta:About):

{{Translatable template name|Navbar}} or {{TNTN|Navbar}}

which returns the translated versions of {{סרגל ניווט }} if it exists, or the English version if translations don't exist.

פרמטרים

הגרסה הנוכחית של התבנית עשויה כעת לכלול כל סוג של פרמטרים בעלי שם או ממוספרים, שערכם יועברו לתבנית הנקראת (למעט פרמטר 1 המכיל את שם הבסיס של התבנית הניתנת לתרגום שיש להכליל). פרמטרים ממוספרים יוזזו למטה בנקודה אחת, כל הפרמטרים בעלי השם יועברו ללא שינוי.

פרמטר אחד בעל שם מטופל באופן מיוחד:

  • {{Translatable template name|tntns=:somename:|page name}}
  • {{TNTN|tntns=:somename:|page name}}
  • {{tntn|tntns=:somename:|page name}}

This tntns will be used to specify another namespace from which the translatable pagename will be transcluded, instead of referencing the page name from the default :Template: namespace. Note that this parameter is also passed (without modification) within the parameters of the transclusion.

Example with one parameters (from meta:Meta:About which is translatable):

  • {{ {{TNTN|Navbar}} |Meta:About}}

תלות

ראו גם