コンテンツにスキップ

モジュール:Lang/doc

言語コードを明示するためのモジュールです。

使い方[編集]

書式[編集]

{{#invoke:Lang|機能名|code=<code>|text=<text>|italic=<yes/no>}}

[編集]

  • lang ()
    • {{#invoke:Lang|lang|code=it|text=testo}}
      • 出力 → <i lang="it" title="イタリア語表記">testo</i>
      • 表示 → testo
    • {{#invoke:Lang|lang|code=it|text=testo|italic=no}}
      • 出力 → <span lang="it" style="font-style:normal;" title="イタリア語表記">testo</span>
      • 表示 → testo
  • name_from_tag ()
    • {{#invoke:Lang|name_from_tag|code=ru}}
      • 出力 → ロシア語
      • 表示 → ロシア語
  • lang_xx_inherit ()
    • {{#invoke:Lang|lang_xx_inherit|code=en|text=text}}
      • 出力 → <a href="/wiki/%E8%8B%B1%E8%AA%9E" title="英語">英語</a>: <span lang="en">text</span>
      • 表示 → 英語: text

関連項目[編集]