Difference between revisions of "Template:Lang"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Dbachmann
(usage note)
imported>Dbachmann
Line 3: Line 3:
 
This template tags strings of non-English text. The first parameter is the [[ISO 639]] code of the string's language, the second parameter is the string itself. Example:
 
This template tags strings of non-English text. The first parameter is the [[ISO 639]] code of the string's language, the second parameter is the string itself. Example:
  
<code><nowiki>{{lang|fr|français}}</nowiki></code> yields: {{lang|fr|français}}
+
<code><nowiki>{{lang|fr|français}}</nowiki></code> yields <code><nowiki><span lang="fr" xml:lang="fr">français</span></nowiki></code>: {{lang|fr|français}}
  
 
==See also==
 
==See also==

Revision as of 19:51, 6 April 2007

Template:Protected template{{{2}}}

Usage

This template tags strings of non-English text. The first parameter is the ISO 639 code of the string's language, the second parameter is the string itself. Example:

{{lang|fr|français}} yields <span lang="fr" xml:lang="fr">français</span>: français

See also

  • {{ISOtranslit}} for transliteration of non-Latin scripts

de:Vorlage:lang es:Plantilla:Lang bg:Шаблон:lang ko:Template:lang ja:Template:lang zh:Template:lang zh-yue:Template:lang