Template:Ja/doc

Revision as of 16:45, 29 August 2025 by ReinDevildom (talk | contribs) (Created page with "{{Documentation/Header}} {{Lua|Lang}} This template is a shorthand for formatting Japanese text by using {{T|Lang|mini=1|selective=1}} as a base. ==Syntax== All fields are optional except the Japanese text.<br> {{F|t=1|Ja|v1=Japanese text|v2=rm=Romanisation of the Japanese text|v3=tl=Translation of the Japanese text|v4=lit=Literal Translation of the Japanese Text}} ==Examples== {{T|Ja|p1=こんにちは、旅人さん|p2=rm=Konnichiwa, Tabibito-san|p3=tl=Hello, Traveler...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page for Ja.
It contains usage information, categories, and other content not part of the original template page.
This template uses Module:Lang, a script written in Lua.

This template is a shorthand for formatting Japanese text by using {{Lang|selective = 1|mini = 1}} as a base.

Syntax

All fields are optional except the Japanese text.
{{Ja|Japanese text|rm = Romanisation of the Japanese text|tl = Translation of the Japanese text|lit = Literal Translation of the Japanese Text}}

Examples

{{Ja|こんにちは、旅人さん|rm = Konnichiwa, Tabibito-san|tl = Hello, Traveler|lit = Good Day, Traveler}} yields:
こんにちは、旅人さん Konnichiwa, Tabibito-san, "Hello, Traveler," lit. "Good Day, Traveler"

Template Data

Template for formatting japanese

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Japanese texttx 1

Japanese text to be formatted

Stringrequired
Romanizationrm 2

Romanization of the Japanese text

Stringoptional
Translationtl 3

Translation of the Japanese text

Stringoptional
Literal Translationlit 4

Literal translation of the Japanese text

Stringoptional