This is the documentation page for Module:Language/text
| Alpha | This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
This module is meant for replacing {{lang}} and all lang-x templates.
Usage
In templates
{{#invoke:Language/text|plain|code={code}|text={text}}}
{{#invoke:Language/text|named|code={code}|text={text}}}
Examples
{{#invoke:Language/text|plain|code=fr|text=''pain''}}(unnamed)
- pain
{{#invoke:Language/text|named|code=fr|text=''pain''}}(named)
- French: pain
{{#invoke:Language/text|named|code=gkm|text=εἴμαι}}(printed lang tag different to code value)
- Medieval Greek: εἴμαι
In other modules
local languageText = require("Module:Language/text")
languageText._plain{code="fr", text="''pain''"}
languageText._named{code="fr", text="''pain''"}
