Difference between revisions of "Template:Eigo/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Bsherr
m (as found, replacing Template:Tld with Template:Tlc or adding/updating category placement comments, plus general and typo fixes, typo(s) fixed: ’s → 's)
 
Line 3: Line 3:
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
{{TOCright}}
 
{{TOCright}}
 +
 
==Usage==
 
==Usage==
 
<!--
 
<!--
Line 24: Line 25:
 
This template marks the <code>Kanji</code> segment as being in Japanese Kanji, which helps web browsers display it correctly. It also applies it the <kbd>t_nihongo_kanji</kbd> CSS style class.
 
This template marks the <code>Kanji</code> segment as being in Japanese Kanji, which helps web browsers display it correctly. It also applies it the <kbd>t_nihongo_kanji</kbd> CSS style class.
  
The optional y?= parameter gives the option of turning on the Japanese language character sets installation help, shown as a link of a superscript question mark: {{Ja help icon}} . This superscript question mark help link is not shown by default in this template’s output because most computers nowadays can automatically properly display Japanese characters (when this template was first written that was not so common) and because this template primarily outputs the kanji, so is used in places in articles on Japanese subjects where Japanese characters would already have been relatively commonly used via other templates, such as the {{Tld|Nihongo}} template used in the opening line for Japanese articles to introduce the Japanese original text of the name of the article. The {{Tld|Nihongo}} template (& {{Tld|Nihongo3}}) has the superscript question mark help link on by default, therefore the reader would always have already had the opportunity to use the superscript question mark help link from those first occurrences of it, if their display was not rendering Japanese character sets.
+
The optional y?= parameter gives the option of turning on the Japanese language character sets installation help, shown as a link of a superscript question mark: {{Ja help icon}} . This superscript question mark help link is not shown by default in this template's output because most computers nowadays can automatically properly display Japanese characters (when this template was first written that was not so common) and because this template primarily outputs the kanji, so is used in places in articles on Japanese subjects where Japanese characters would already have been relatively commonly used via other templates, such as the {{tlc|Nihongo}} template used in the opening line for Japanese articles to introduce the Japanese original text of the name of the article. The {{tlc|Nihongo}} template (& {{tlc|Nihongo3}}) has the superscript question mark help link on by default, therefore the reader would always have already had the opportunity to use the superscript question mark help link from those first occurrences of it, if their display was not rendering Japanese character sets.
  
 
==Examples==
 
==Examples==
Line 68: Line 69:
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||
  
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Japonic multilingual support templates|{{PAGENAME}}]]
 
[[Category:Japonic multilingual support templates|{{PAGENAME}}]]
  
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 23:17, 9 August 2020

Template:TOCright

Usage

Syntax
Code {{Eigo|Kanji|furi=Furigana|Rōmaji|English|extra|y?=any value}}
Gives Kanji (FuriganaRōmaji?, English) extra
Code {{Eigo|Kanji}}
Gives Kanji

This template marks the Kanji segment as being in Japanese Kanji, which helps web browsers display it correctly. It also applies it the t_nihongo_kanji CSS style class.

The optional y?= parameter gives the option of turning on the Japanese language character sets installation help, shown as a link of a superscript question mark: ? . This superscript question mark help link is not shown by default in this template's output because most computers nowadays can automatically properly display Japanese characters (when this template was first written that was not so common) and because this template primarily outputs the kanji, so is used in places in articles on Japanese subjects where Japanese characters would already have been relatively commonly used via other templates, such as the {{Nihongo}} template used in the opening line for Japanese articles to introduce the Japanese original text of the name of the article. The {{Nihongo}} template (& {{Nihongo3}}) has the superscript question mark help link on by default, therefore the reader would always have already had the opportunity to use the superscript question mark help link from those first occurrences of it, if their display was not rendering Japanese character sets.

Examples

Code {{Eigo|翼手|yokushu|lit. wing hand}}
Gives 翼手 (yokushu, lit. wing hand)

A name with furi:

Code {{Eigo|葉月|furi=はづき|Hazuki}}
Gives 葉月 (はづきHazuki)

A sentence with furi and y?=1 giving a superscript question mark: ?, a link to Japanese character set help:

Code The word chimera was written with the characters {{Eigo|死美獣|furi=キメラ|kimera||meaning "deadly beautiful beast"|y?=1}}.
Gives The word chimera was written with the characters 死美獣 (キメラkimera?) meaning "deadly beautiful beast".

User style

User style can be set by adding code similar to

*[lang=ja] { color: green; font-family: Arial; }

or

.t_nihongo_kanji { color: green; font-family: Arial; }

to common.css.

See also

  • {{Nihongo}}, for English on the outside of the parenthesies and Kanji on the inside
  • {{Nihongo2}}, for Kanji only