模板:Ill

来自Ubuntu中文
Oneleaf留言 | 贡献2007年4月26日 (四) 22:54的版本 (New page: <span lang="{{{2}}}" xml:lang="{{{2}}}">[[{{{1}}}|{{#language:{{{2}}}}}]]</span> ({{{2}}}) <noinclude> ---- ;Syntax: :This template generates a link to an alternate language of th...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

[[{{{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:

模板:Evaldemo.


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:| |... }}}}.


模板:Ph:MediaWiki help policy