Template:Exist: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 2: Line 2:
{{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>}}
{{Code|<nowiki>{{exist|<page name>|<showing page name>(unnecessary)|suf=:<lang code>}}</nowiki>}}
|content/zh-cn=本模板用于链接多语言页面。如果页面不存在,模板将返回英文页面的链接。所以它用于防止链接是空的。'''它用于模板页面。'''
|content/zh-cn=本模板用于链接多语言页面。如果页面不存在,模板将返回英文页面的链接。所以它用于防止链接是空的。'''它用于模板页面。'''
== 用法 ==
== 用法 ==
{{Code|<nowiki>{{exist|<页面名称>|<显示的页面名称>(非必要)|suf=:<语言代码>}}</nowiki>}}
{{Code|<nowiki>{{exist|<页面名称>|<显示的页面名称>(非必要)|suf=:<语言代码>}}</nowiki>}}
}}
}}

Latest revision as of 15:12, 28 January 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [create]
Icon-translate.png Available doc translations
Info.png
The Template:Exist/doc documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.

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

{{exist|<page name>|<showing page name>(unnecessary)|suf=:<lang code>}}