Template:Query concept/render text by languange codes

From TDWG Terms Wiki
< Template:Query concept
Revision as of 10:54, 10 January 2014 by Andreas Plank (Talk | contribs) (Created page with "<noinclude> This template renders text by replacing languange codes to natural language: ''en: english text, de: deutscher Text, ja:和文'' becomes something like <di...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template renders text by replacing languange codes to natural language:

en: english text,  de: deutscher Text,  ja:和文

becomes something like

<div lang="en">English: english text</div><div lang="de">Deutsch: deutscher Text</div> etc.

Parameters

text 
the text to be rendered (“en: english text, de: deutscher Text, ja:和文”)
languages 
languages to be applied to the text parameter (“en, de, ja” i.e. comma separated)

Dependencies