FANDOM


m
m
Line 1: Line 1:
 
<noinclude>{{documentationpage}}</noinclude>
 
<noinclude>{{documentationpage}}</noinclude>
'''Template:J''' is f used to display Japanese characters and pronunciation.
+
'''Template:J''' is used to display Japanese characters and pronunciation.
   
 
For a generalized documentation of the template, see [[w:c:dev:Global Lua Modules/Japanes|dev:Japanese]]. The specific ''Final Fantasy'' Wiki implementation is described below
 
For a generalized documentation of the template, see [[w:c:dev:Global Lua Modules/Japanes|dev:Japanese]]. The specific ''Final Fantasy'' Wiki implementation is described below

Revision as of 03:16, January 14, 2020

This page contains usage information for Template:J.

Template:J is used to display Japanese characters and pronunciation.

For a generalized documentation of the template, see dev:Japanese. The specific Final Fantasy Wiki implementation is described below

This template depends on Module:Japanese
This template uses Lua. To make adjustments to this template, edit the module page.

Usage

{{J|<Japanese> |<Rōmaji> |<Literal meaning>}}

Results in: (Japanese, Rōmaji?, lit. Literal meaning)

This is used in two typical ways:

In infoboxes

This template is included within infoboxes to format Japanese characters. In these cases, the template should be used to format the parameters passed through the infobox itself. Ideally, this should also link to the translation page for the game the infobox is about.

For example:

{{J|[[Final Fantasy XII translations|{{{japanese}}}]]|{{{romaji}}}|{{#if:{{{lit|}}}|{{{lit}}}}}|fmt=j(r)}}

Will allow an infobox to take the parameters japanese, romaji, and lit, and format them using the tmeplate, while also creating a link to Final Fantasy XII translations.

For a more generalized use, the codenames module can produce these links automatically, such as:

{{J|{{#if:{{#invoke:codename|rel|{{{release|}}}|link}}|[[{{#invoke:codename|rel|{{{release}}}|link}} translations|{{{japanese}}}]]|{{{japanese}}}}}|{{{romaji}}}|{{#if:{{{lit|}}}|{{{lit}}}}}|fmt=j(r)}}

In articles

For pages without infoboxes, place the template following next to the bolded name of the article. For example:

'''Necron''' {{J|永遠の闇|Eien no Yami|Darkness of Eternity}}

Produces:

Necron (永遠の闇, Eien no Yami?, lit. Darkness of Eternity)

Parameters

The unnamed parameters can be used in any order as necessary.

Required

<unnamed 1>

The Japanese characters to be used.

Required

<unnamed 2>

The romanization of the Japanese name, or rōmaji.

Optional

<unnamed 3>

A literal translation of the Japanese name.

Optional

fmt
(default: "(j,r)" )

The format of the Japanese output. Instances of j are replaced with the input Japanese, r with the rōmaji, and l with the lit. translation. If l is not used and there is a literal translation given, it always goes after either the Japanese or rōmaji, whichever is used second (although both would be required).

Spacing is ignored and handled automatically. To preserve spacing and to print "j", "r", or "l" characters, square brackets can be used and their contents remain. Square brackets can be printed literally inside of square brackets, however the "j", "r", and "l" values cannot appear inside them.

Examples of this can be seen below.

Examples

Type {{J|リヴァイアサン|Rivaiasan|fmt=j(r)}}
Result リヴァイアサン (Rivaiasan?)
Type {{J|リヴァイアサン|Rivaiasan|fmt=r(j)}}
Result Rivaiasan (リヴァイアサン?)
Type {{J|リヴァイアサン|fmt=j}}
Result リヴァイアサン?
Type {{J|リヴァイアサン|Rivaiasan|fmt=j,r}}
Result リヴァイアサン, Rivaiasan?
Type {{J|リヴァイアサン|Rivaiasan|Leviathan|fmt=[Japanese [katakana]: ]j[, Rōmaji: ]r[, Lit. translation: ]l}}
Result Japanese [katakana]: リヴァイアサン, Rōmaji: Rivaiasan?, Lit. translation: Leviathan
Community content is available under CC-BY-SA unless otherwise noted.