「テンプレート:Languages/Language」の版間の差分

提供: wiki
移動先: 案内検索
(added/updated from newiki)
 
(1版 をインポートしました)
 
(相違点なし)

2018年6月29日 (金) 03:42時点における最新版

This template is used to get the language of the page where you put it in.

If the page where you put this template is in English, the template returns nothing. If the page where you put this template is not in English, the template returns the language of the page.


Examples

Page you put this in You type You get
Doc:Manual {{Languages/Language}}
Doc:2.4/Manual {{Languages/Language}}
Doc:BR/Manual {{Languages/Language}}
Doc:BR/2.4/Manual {{Languages/Language}}
whichever {{Languages/Language|page=Doc:Manual}}
whichever {{Languages/Language|page=Doc:2.4/Manual}}
whichever {{Languages/Language|page=Doc:BR/Manual}}
whichever {{Languages/Language|page=Doc:BR/2.4/Manual}}


For english pages, if you provide an argument if will be the output instead of nothing.
For non-english pages, the first argument will be ignored.

Page you put this in You type You get
Doc:Manual {{Languages/Language|EN}} EN
Doc:BR/Manual {{Languages/Language|EN}} EN




This template is part of the blend-doc repository. We use categories to retrieve templates in order to commit it in that repository: please don't remove the categorization from this template.