Template:Ill-2/doc: Difference between revisions

update
(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 may 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 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 other templates, such as translation templates.
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 "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.
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|name of page|Language code of page}}
*{{Tlx|ill-2|Language code of page|name of page}}
*{{Tlx|ill-2|name of page|Language code of page|dir=rtl}}
*{{Tlx|ill-2|Language code of page|name of page|dir=rtl}}


=== Examples ===
=== Examples ===


*{{Tlx|ill-2|Hauptseite|de}}  
*{{Tlx|ill-2|de}}  
*:{{ill-2|Hauptseite|de}}
*:{{ill-2|de}}
*{{Tlx|ill-2|Argentina: Archivos y Bibliotecas|es}}  
*{{Tlx|ill-2|de|Hauptseite}}
*:{{ill-2|Argentina: Archivos y Bibliotecas|es}}
*:{{ill-2|de|Hauptseite}}
*{{Tlx|ill-2|Help:Template|en}}  
*{{Tlx|ill-2|es|Argentina: Archivos y Bibliotecas}}  
*:{{ill-2|Help:Template|en}}
*:{{ill-2|es|Argentina: Archivos y Bibliotecas}}
*{{Tlx|ill-2|עמוד ראשי|he|dir=rtl}}  
*{{Tlx|ill-2|en|Help:Template}}  
*:{{ill-2|עמוד ראשי|he|dir=rtl}}
*:{{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>
2,605

edits