Site notice
Welcome! Please check To-Do List to see what pages need help, who is working on what, etc.

Difference between revisions of "Template:Jp"

From Mega Man Wiki
Line 1: Line 1:
{{{1}}} (<span style="font-family:Arial Unicode MS,Code2000,EPSON,Meiryo" lang="ja">{{rollover|{{{2}}}|{{{3|Japanese text}}}|{{#if:{{{2|}}}|y|}}}}</span>)<noinclude>
{{{1}}} (<span style="font-family:Arial Unicode MS,Code2000,EPSON,Meiryo" lang="ja"> {{rollover|{{{2}}}|{{{3|Japanese text}}}|{{#if:{{{2|}}}|y|}}}}</span> {{#if:{{{4| {{{extra|}}} }}} |{{#if:{{{3|}}}|,|<span></span>}} {{{4| {{{extra}}} }}}}})<noinclude>


==Use==
==Use==
Displays Japanese characters. For example, <nowiki>{{jp|Rockman|ロックマン|Rokkuman}}</nowiki> gives: {{jp|Rockman|ロックマン|Rokkuman}}.
Displays Japanese characters. The 1 parameter should be the text in the English alphabet, 2 should be the Japanese text, 3 should be a rōmaji transcription, and 4 is an extra slot that can be used for a more literal translation or whatever you want.
The 1 parameter should be the English translation, 2 should be the Japanese text, and 3 should be a rōmaji transcription.


This template helps avoid character display errors should a user's font not support Japanese characters, done by specifying a list of fonts known to have such support and that combined should be on every possible computer. The fonts used are, in the order they are attempted:
For example, <nowiki>{{jp|'''Rockman'''|ロックマン|Rokkuman|lit. ''Rockman''}}</nowiki> displays as: {{jp|'''Rockman'''|ロックマン|Rokkuman|lit. ''Rockman''}}.
 
This template avoids character display errors should a user's font not support Japanese characters, by specifying a list of fonts known to have such support and that combined should be on every possible computer. The fonts used are, in the order they are attempted:
*Arial Unicode MS (any system with Microsoft Office, Mac OS X x10.5+)
*Arial Unicode MS (any system with Microsoft Office, Mac OS X x10.5+)
*Code2000 (older well-known Unicode font)
*Code2000 (older well-known Unicode font)

Revision as of 00:25, 8 September 2024

{{{1}}} ( {{{2}}} )

Use

Displays Japanese characters. The 1 parameter should be the text in the English alphabet, 2 should be the Japanese text, 3 should be a rōmaji transcription, and 4 is an extra slot that can be used for a more literal translation or whatever you want.

For example, {{jp|'''Rockman'''|ロックマン|Rokkuman|lit. ''Rockman''}} displays as: Rockman ( ロックマン , lit. Rockman).

This template avoids character display errors should a user's font not support Japanese characters, by specifying a list of fonts known to have such support and that combined should be on every possible computer. The fonts used are, in the order they are attempted:

  • Arial Unicode MS (any system with Microsoft Office, Mac OS X x10.5+)
  • Code2000 (older well-known Unicode font)
  • EPSON
  • Meiryo (all Windows since Vista)