テンプレート:Languages/Flag
This template gives a small icon of the language you put as first variable (2 letters, 639-1 ISO codes).
If you don't put the second variable, then the template assumes you are checking if the page where you put the template exists in the specified language.
If you provide a second variable, the flag will link to a page named as that variable.
Examples:
{{Languages/Flag|fr}}
returns (links to Template:FR/Languages/Flag/doc)
Putting
{{Languages/Flag|fr|Doc:FR/Manual}}
returns (links to Doc:FR/Manual which exists, hence the bright flag)
{{Languages/Flag|fr|Doc:FR/doesnt-exist}}
returns (links to Doc:FR/doesnt-exist which doesn't exist, hence the dark flag)
Note
The template code is quite simple, hence you have to know how you are using it. For example:
{{Languages/Flag|fr|Doc:IT/doesnt-exist}}works, but it returns the french flag ![]() |
Note for new languages
![]() [[Meta:Sandbox/Doc:MK/Manual/foo]] . If those pages will be complete then admins will add your flag to the headers.
|
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.