Jump to content

Template:Lang: Difference between revisions

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
>Gonnym
mNo edit summary
 
Simplified template - removed dependency on missing Module:Lang
 
Line 1: Line 1:
<includeonly>{{#invoke:Lang|{{{fn|lang}}}}}</includeonly><noinclude>
<includeonly><span lang="{{{1|}}}">{{{2|{{{text|}}}}}}</span></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
== Usage ==
Displays text in a specified language with appropriate HTML lang attribute.
<code><nowiki>{{lang|de|Guten Tag}}</nowiki></code> → <span lang="de">Guten Tag</span>
== Parameters ==
* '''1''' (unnamed): Language code (e.g., de, fr, es, ja)
* '''2''' (unnamed) or '''text''': Text to display
</noinclude>
</noinclude>

Latest revision as of 18:14, 13 December 2025

This is the documentation page for Template:Template:Lang

This page is transcluded from Template:Template:Lang/doc.

Usage

Displays text in a specified language with appropriate HTML lang attribute.

{{lang|de|Guten Tag}}Guten Tag

Parameters

  • 1 (unnamed): Language code (e.g., de, fr, es, ja)
  • 2 (unnamed) or text: Text to display