模板:Ill
[[{{{1}}}|{{{2}}}]] ({{{2}}})
- Syntax:
- This template generates a link to an alternate language of the page.
- {{ill{{#if:Link to page|
|Link to page }}{{#if:Language code of page| |Language code of page }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |... }}}}
- Examples:
- {{ill{{#if:Hilfe:Vorlage|
|Hilfe:Vorlage }}{{#if:de| |de }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |... }}}}
- {{ill{{#if:Help:Template|
|Help:Template }}{{#if:en| |en }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |... }}}}
- Usage:
- Use this on Template:H-langs:NAMEOFPAGE style pages. Always finish off with a {{edi{{#if:NAMEOFTEMPLATE|
|NAMEOFTEMPLATE }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |... }}}}, so that you have an edit link and a "terminator" required by older layouts. For details see Help page footer templates.
- Example of a template using this technique:
- Templates using ill on separate lines can't be used within a list, e.g. 模板:Evaldemo
The template doesn't support dir="rtl" automatically. Maybe use 模板:Tlsp and insert the direction manually in its output for languages like ar and he, for examples see {{MetaHomePages{{#if:| |{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |... }}}}.