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
Unknowni123 (talk | contribs) |
Unknowni123 (talk | contribs) |
||
Line 1: | Line 1: | ||
<span style="font-family:Arial Unicode MS,Code2000,EPSON,Meiryo" lang="ja">{{{1}}}{{rollover|{{{2}}}|{{{3|Japanese text}}}|{{#if:{{{2|}}}|y|}}}}</span><noinclude> | <span style="font-family:Arial Unicode MS,Code2000,EPSON,Meiryo" lang="ja">{{{1}}} ({{rollover|{{{2}}}|{{{3|Japanese text}}}|{{#if:{{{2|}}}|y|}}}})</span><noinclude> | ||
==Use== | ==Use== | ||
Displays Japanese characters. For example, <nowiki>{{jp|Mega Man|ロックマン}}</nowiki> gives {{jp|Mega Man|ロックマン}}. | Displays Japanese characters. For example, <nowiki>{{jp|Mega Man|ロックマン}}</nowiki> gives {{jp|Mega Man|ロックマン}}. | ||
The first parameter should be the text, and the third (optional) should be the hover text, where "Japanese text" is the default (example: {{jp|ロックマン|Rokkuman}}). | The first parameter should be the text, and the third (optional) should be the hover text, where "Japanese text" is the default (example: {{jp|Mega Man|ロックマン|Rokkuman}}). | ||
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: | 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: |
Revision as of 00:29, 4 November 2023
{{{1}}} ({{{2}}})
Use
Displays Japanese characters. For example, {{jp|Mega Man|ロックマン}} gives Mega Man (ロックマン). The first parameter should be the text, and the third (optional) should be the hover text, where "Japanese text" is the default (example: Mega Man (ロックマン)).
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:
- 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)