Template:Sky: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span id="coordinates" class="plainlinks nourlexpansion">[[wikipedia:Celestial coordinate system|Coordinates]]: [[ | <includeonly><span id="coordinates" class="plainlinks nourlexpansion">[[wikipedia:Celestial coordinate system|Coordinates]]: [[File:Celestia.png|20px|link=|Sky map]] [http://www.wikisky.org/?ra={{#expr:{{{1}}}+{{{2}}}/60+{{{3}}}/3600}}&de={{#expr:{{{4|+}}}{{{5}}}+{{{4|+}}}{{{6}}}/60+{{{4|+}}}{{{7}}}/3600}}&zoom={{#expr:ln{{{8|100000}}}/ln10+1 round 0}}&show_grid=1&show_constellation_lines=1&show_constellation_boundaries=1&show_const_names=1&show_galaxies=1&img_source=IMG_all {{{1}}}<sup>h</sup> {{{2}}}<sup>m</sup> {{{3}}}<sup>s</sup>, {{#ifeq:{{{4}}}|-|−|+}}{{{5}}}° {{{6}}}′ {{{7}}}″]</span></includeonly><noinclude>{{template doc}}</noinclude> |
Revision as of 22:50, 9 June 2010
Template:Template doc page transcluded
Usage
- Syntax
Code | {{Nihongo|English|Kanji|Rōmaji|extra|extra2}}
|
Gives | English (Kanji Rōmaji, extra) extra2 |
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.
Parameters 1 and 2 are required. Parameters 4 and 5 can also be directly invoked with extra=
and extra2=
. Parameter extra2 is useful only in ";" definitions (extra2 will be displayed without bold, whereas text following the template will get the bold).
Examples
Code | {{Nihongo|'''Motojirō Kajii'''|梶井 基次郎|Kajii Motojirō|1901–1932}}
|
Gives | Motojirō Kajii (梶井 基次郎 Kajii Motojirō, 1901–1932) |
With extra2
:
Code |
|
Gives |
|
Without extra2
:
Code |
|
Gives |
|
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
- {{Nihongo3}}, essentially the same as this template, but gives Romaji first and English inside the parentheses
- {{Nihongo2}}, also displays the kanji properly, but without adding anything in parentheses, without Romaji and without the extra parameters
eo:Ŝablono:Nihongo
es:Plantilla:Nihongo
fr:Modèle:Japonais
it:Template:Nihongo
ru:Шаблон:Нихонго
sr:Шаблон:Nihongo
vi:Tiêu bản:Nihongo
zh:Template:Nihongo