Template:Exist: Difference between revisions
Jump to navigation
Jump to search
1416006136 (talk | contribs) No edit summary |
1416006136 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if:{{{2|}}}|{{#ifexist:{{{1}}}{{{suf|}}}|[[{{{1}}}{{{suf|}}}|{{{2}}}]]|[[{{{1}}}|{{{2}}}]]}}|{{#ifexist:{{{1}}}{{{suf|}}}|[[{{{1}}}{{{suf|}}}]]|[[{{{1}}}]]}}}}</onlyinclude></includeonly> | <includeonly><onlyinclude>{{#if:{{{2|}}}|{{#ifexist:{{{1}}}{{{suf|}}}|[[{{{1}}}{{{suf|}}}|{{{2}}}]]|[[{{{1}}}|{{{2}}}]]}}|{{#ifexist:{{{1}}}{{{suf|}}}|[[{{{1}}}{{{suf|}}}]]|[[{{{1}}}]]}}}}</onlyinclude></includeonly> | ||
{{doc|content=This template is used to link multi-language pages. If the page doesn't exist, the template will return the link of English page. So it is used to prevent the link is none. Used in template pages. | {{doc|content=This template is used to link multi-language pages. If the page doesn't exist, the template will return the link of English page. So it is used to prevent the link is none. '''Used in template pages.''' | ||
== Usage == | == Usage == | ||
{{MdCode|<nowiki>{{exist|<page name>|<showing page name>(unnecessary)|suf=:<lang code>}}</nowiki>}} | {{MdCode|<nowiki>{{exist|<page name>|<showing page name>(unnecessary)|suf=:<lang code>}}</nowiki>}} | ||
|content/zh-cn= | |content/zh-cn=本模板用于链接多语言页面。如果页面不存在,模板将返回英文页面的链接。所以它用于防止链接是空的。'''它用于模板页面。''' | ||
== 用法 == | == 用法 == | ||
{{MdCode|<nowiki>{{exist|<页面名称>|<显示的页面名称>(非必要)|suf=:<语言代码>}}</nowiki>}} | {{MdCode|<nowiki>{{exist|<页面名称>|<显示的页面名称>(非必要)|suf=:<语言代码>}}</nowiki>}} | ||
}} | }} |