Template:Nihongo/doc: Difference between revisions

From Little Tail Wiki
Jump to navigationJump to search
Created page with "<pre>{{nihongo|English|Kanji|Romaji|extra|extra2|type1=|lineBreak=|noParenthesis=|hover=}}</pre> '''Default:'''<br /> {{Nihongo|English|Kanji|Romaji|extra|extra2}}<br /> '''With type1=J:'''<br /> {{Nihongo|Kanji|Romaji|type1=J|extra|extra2}} '''With type1=J and blank Romaji:'''<br /> {{Nihongo|Kanji||type1=J|extra|extra2}} '''With type1=R:'''<br /> {{Nihongo|Romaji|Kanji|type1=R|extra|extra2}} '''With type1=R and blank Kanji:'''<br /> {{Nihongo|Romaji||type1=R|extra..."
 
No edit summary
 
Line 1: Line 1:
This is the default Nihongo template. By default, English is first, then Japanese, then Romaji, followed by extra fields. The first field type can be changed via setting ''type1'' to J, in case Japanese needs to be displayed first. This would set the second field type to Romaji automatically, if Romaji is included. The parenthesis can be removed by setting ''noParenthesis''. Functionality to display the third field in a standalone box while hovering over the second field (or the second when hovering over the first, if the third field is blank) can be enabled by setting ''hover''. A line break after the first parameter can be added by setting ''lineBreak''.
<pre>{{nihongo|English|Kanji|Romaji|extra|extra2|type1=|lineBreak=|noParenthesis=|hover=}}</pre>
<pre>{{nihongo|English|Kanji|Romaji|extra|extra2|type1=|lineBreak=|noParenthesis=|hover=}}</pre>



Latest revision as of 21:09, 5 February 2025

This is the default Nihongo template. By default, English is first, then Japanese, then Romaji, followed by extra fields. The first field type can be changed via setting type1 to J, in case Japanese needs to be displayed first. This would set the second field type to Romaji automatically, if Romaji is included. The parenthesis can be removed by setting noParenthesis. Functionality to display the third field in a standalone box while hovering over the second field (or the second when hovering over the first, if the third field is blank) can be enabled by setting hover. A line break after the first parameter can be added by setting lineBreak.

{{nihongo|English|Kanji|Romaji|extra|extra2|type1=|lineBreak=|noParenthesis=|hover=}}

Default:
English (Kanji, Romaji, extra) extra2

With type1=J:
Kanji (Romaji, extra) extra2

With type1=J and blank Romaji:
Kanji

With type1=R:
Romaji (Kanji, extra) extra2

With type1=R and blank Kanji:
Romaji