Template:Language icon: Difference between revisions
Jump to navigation
Jump to search
Red Leader (talk | contribs) m (Link to http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) |
m (→Usage: Template:Wikipedia) |
||
Line 10: | Line 10: | ||
<nowiki>{{</nowiki>'''Language icon'''<nowiki>|</nowiki>code<nowiki>|</nowiki>name<nowiki>|</nowiki>''text''<nowiki>}}</nowiki> | <nowiki>{{</nowiki>'''Language icon'''<nowiki>|</nowiki>code<nowiki>|</nowiki>name<nowiki>|</nowiki>''text''<nowiki>}}</nowiki> | ||
; code: Mandatory ISO 639-1 two letter language code ( | ; code: Mandatory ISO 639-1 two letter language code (See {{wikipedia|List of ISO 639-1 codes}} for a list). | ||
; name: Mandatory plain name of the language that will show in a mouse over text box, for example '''English'''. | ; name: Mandatory plain name of the language that will show in a mouse over text box, for example '''English'''. |
Revision as of 12:18, 14 February 2015
({{{1}}})
The following template description is not displayed when the template is inserted in an article.
Goal
This template is the base for the language icon templates. Their purpose is to indicate the language of a paragraph of text to the reader.
See the section "Related templates" below for a list of language icon templates.
Usage
{{Language icon|code|name|text}}
- code
- Mandatory ISO 639-1 two letter language code (See List of ISO 639-1 codes for a list).
- name
- Mandatory plain name of the language that will show in a mouse over text box, for example English.
- text
- Optional text.
Examples
{{Language icon|sv|Swedish}}
(sv)
{{Language icon|en|English|Describing descriptive description.}}
(en) Describing descriptive description.
Related templates
- {{lang}} – Will indicate the language in a span of text to the web browser.
Existing language icons
These are using this template.