2,605
edits
(→Syntax) |
(update) |
||
Line 6: | Line 6: | ||
'''Note:''' This template is not intended to be used on article pages. For that purpose, see {{Tl|H-langs}} instead. | '''Note:''' This template is not intended to be used on article pages. For that purpose, see {{Tl|H-langs}} instead. | ||
This template | This template can be used on talk pages and user pages, although the same result can be accomplished by creating an [[Help:Create an external link|external link]]. An external link has the added benefit of being able to display a link different than that of the page name. | ||
This template was originally created so that links to pages in other languages can be included in | This template was originally created so that links to pages in other languages can be included in templates, such as translation templates. | ||
=== Use === | === Use === | ||
Line 14: | Line 14: | ||
This template will generate a link to a page on one of the [[FamilySearch Wiki:Non-English versions of the wiki|Non-English versions]] of Research Wiki. | This template will generate a link to a page on one of the [[FamilySearch Wiki:Non-English versions of the wiki|Non-English versions]] of Research Wiki. | ||
It is similar to the | It is similar to the {{Tl|ill}} template that is used for the "H-langs" template, except that it return a link displaying that page name, rather than a link displaying the language name. (note: H-langs uses the reverse order its parameters) | ||
If the language code passed in is the same as the CONTENTLANG, the language text is automatically made bold and will not be a link. | If the language code passed in is the same as the CONTENTLANG, the language text is automatically made bold and will not be a link. | ||
Line 20: | Line 20: | ||
=== Syntax === | === Syntax === | ||
*{{Tlx|ill-2| | *{{Tlx|ill-2|Language code of page|name of page}} | ||
*{{Tlx|ill-2| | *{{Tlx|ill-2|Language code of page|name of page|dir=rtl}} | ||
=== Examples === | === Examples === | ||
*{{Tlx|ill-2 | *{{Tlx|ill-2|de}} | ||
*:{{ill-2|Hauptseite|de}} | *:{{ill-2|de}} | ||
*{{Tlx|ill-2|Argentina: Archivos y Bibliotecas | *{{Tlx|ill-2|de|Hauptseite}} | ||
*:{{ill-2|Argentina: Archivos y Bibliotecas | *:{{ill-2|de|Hauptseite}} | ||
*{{Tlx|ill-2|Help:Template | *{{Tlx|ill-2|es|Argentina: Archivos y Bibliotecas}} | ||
*:{{ill-2|Help:Template | *:{{ill-2|es|Argentina: Archivos y Bibliotecas}} | ||
*{{Tlx|ill-2|עמוד ראשי | *{{Tlx|ill-2|en|Help:Template}} | ||
*:{{ill-2|עמוד ראשי | *:{{ill-2|en|Help:Template}} | ||
*{{Tlx|ill-2|he|עמוד ראשי|dir=rtl}} | |||
*:{{ill-2|he|עמוד ראשי|dir=rtl}} | |||
<includeonly> | <includeonly> | ||
[[Category:Utility templates]] | [[Category:Utility templates]] | ||
<includeonly> | <includeonly> |
edits