Difference between revisions of "Template:Infobox Japanese name"
Dinoguy1000 (talk | contribs) (<includeonly>) |
(Restoring revision 4764563 by User:Dinoguy1000 on 2021-09-05 23:48:23. "add {{{ja_name_ref}}} so references can be added to the Japanese name without affecting properties/etc.") |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ #if: {{{ja_name<includeonly>|</includeonly>}}}{{{romaji_name|}}}{{{ja_trans_name|}}} | {{ #if: {{{ja_name<includeonly>|</includeonly>}}}{{{romaji_name|}}}{{{ja_trans_name|}}} | ||
− | | <noinclude>{{Infobox|data1=</noinclude>{{Infobox | + | | <noinclude>{{Infobox|bodyclass=infobox-yugipedia|data1=</noinclude>{{Infobox |
| child = {{ #ifeq: {{{header|}}} | no | yes }} | | child = {{ #ifeq: {{{header|}}} | no | yes }} | ||
| bodyclass = {{ #ifeq: {{{header|}}} | no || collapsible }} {{{bodyclass|}}} | | bodyclass = {{ #ifeq: {{{header|}}} | no || collapsible }} {{{bodyclass|}}} | ||
| bodystyle = {{ #if: {{{bodystyle|}}} | {{{bodystyle}}} | border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px); }} | | bodystyle = {{ #if: {{{bodystyle|}}} | {{{bodystyle}}} | border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px); }} | ||
− | | headerstyle = {{ #if: {{{headerstyle|}}} | {{{headerstyle}}} | | + | | headerstyle = {{ #if: {{{headerstyle|}}} | {{{headerstyle}}} | text-align: left; }} |
− | | labelstyle = {{ #if: {{{labelstyle|}}} | {{{labelstyle}}} | | + | | labelstyle = {{ #if: {{{labelstyle|}}} | {{{labelstyle}}} | width: 10em; }} |
| datastyle = {{ #ifeq: {{NAMESPACE}} | Template | word-break: break-all; }} | | datastyle = {{ #ifeq: {{NAMESPACE}} | Template | word-break: break-all; }} | ||
Line 12: | Line 12: | ||
| label2 = Japanese | | label2 = Japanese | ||
| data2 = {{ #if: {{{ja_name<includeonly>|</includeonly>}}} | | data2 = {{ #if: {{{ja_name<includeonly>|</includeonly>}}} | ||
− | | <span lang="ja-Jpan">{{{ja_name}}}</span>[[Japanese name::{{{ja_name}}}| ]] | + | | <span lang="ja-Jpan">{{{ja_name}}}</span>{{{ja_name_ref|}}}[[Japanese name::{{{ja_name}}}| ]]{{ #if: {{NAMESPACE}} || {{ #if: {{{romaji_name|}}} || [[Category:Pages needing a romaji name]] }} }} |
}} | }} | ||
Line 22: | Line 22: | ||
| label4 = Base ''rōmaji'' | | label4 = Base ''rōmaji'' | ||
| data4 = {{ #if: {{{base_romaji_name<includeonly>|</includeonly>}}} | | data4 = {{ #if: {{{base_romaji_name<includeonly>|</includeonly>}}} | ||
− | | <span lang="ja-Latn-hepburn">''{{{base_romaji_name}}}''</span>[[Base romaji name::{{{base_romaji_name}}}| ]] | + | | <span lang="ja-Latn-hepburn">''{{{base_romaji_name}}}''</span>[[Base romaji name::{{{base_romaji_name}}}| ]]{{ #if: {{NAMESPACE}} || {{ #if: {{{ja_name|}}} | {{ #if: {{Ruby/detect|{{{ja_name}}}}} || [[Category:Pages with a romaji base name but no Japanese base name]] }} | [[Category:Pages with a romaji name but no Japanese name]] }} }} |
}} | }} | ||
| label5 = Base translated | | label5 = Base translated | ||
| data5 = {{ #if: {{{ja_base_trans_name<includeonly>|</includeonly>}}} | | data5 = {{ #if: {{{ja_base_trans_name<includeonly>|</includeonly>}}} | ||
− | | {{{ja_base_trans_name}}}[[Translated Japanese base name::{{{ja_base_trans_name}}}| ]] | + | | {{{ja_base_trans_name}}}[[Translated Japanese base name::{{{ja_base_trans_name}}}| ]]{{ #if: {{NAMESPACE}} || {{ #if: {{{ja_name|}}} | {{ #if: {{Ruby/detect|{{{ja_name}}}}} || [[Category:Pages with a translated Japanese base name but no Japanese base name]] }} | [[Category:Pages with a translated Japanese name but no Japanese name]] }} }} |
}} | }} | ||
Line 37: | Line 37: | ||
| label7 = {{ #if: {{{base_romaji_name|}}} | Furigana ''rōmaji'' | ''Rōmaji'' }} | | label7 = {{ #if: {{{base_romaji_name|}}} | Furigana ''rōmaji'' | ''Rōmaji'' }} | ||
| data7 = {{ #if: {{{romaji_name<includeonly>|</includeonly>}}} | | data7 = {{ #if: {{{romaji_name<includeonly>|</includeonly>}}} | ||
− | | <span lang="ja-Latn-hepburn">''{{{romaji_name}}}''</span>[[Romaji name::{{{romaji_name}}}| ]] | + | | <span lang="ja-Latn-hepburn">''{{{romaji_name}}}''</span>[[Romaji name::{{{romaji_name}}}| ]]{{ #if: {{NAMESPACE}} || {{ #if: {{{ja_name|}}} || [[Category:Pages with a romaji name but no Japanese name]] }} }} |
}} | }} | ||
| label8 = {{ #if: {{{ja_base_trans_name|}}} | Furigana translated | Translated }} | | label8 = {{ #if: {{{ja_base_trans_name|}}} | Furigana translated | Translated }} | ||
| data8 = {{ #if: {{{ja_trans_name<includeonly>|</includeonly>}}} | | data8 = {{ #if: {{{ja_trans_name<includeonly>|</includeonly>}}} | ||
− | | {{ #if: {{{italic_name|}}} | ''{{{ja_trans_name}}}'' | {{{ja_trans_name}}} }}[[Translated Japanese name::{{{ja_trans_name}}}| ]] | + | | {{ #if: {{{italic_name|}}} | ''{{{ja_trans_name}}}'' | {{{ja_trans_name}}} }}[[Translated Japanese name::{{{ja_trans_name}}}| ]]{{ #if: {{NAMESPACE}} || {{ #if: {{{ja_name|}}} || [[Category:Pages with a translated Japanese name but no Japanese name]] }} }} |
}} | }} | ||
}} | }} | ||
− | }}<noinclude>}}</noinclude> | + | }}<noinclude>}}{{Documentation}}</noinclude> |
Latest revision as of 02:30, 15 March 2023
|
{{Infobox Japanese name}} is an infobox template to add the Japanese name, as well as a rōmaji reading and (if necessary) an English translation, to pages. It can either be used directly on articles, or embedded in other infobox templates. Embedding this template in other infoboxes is preferred over hardcoding Japanese name support in them, in order to standardize this support and simplify potential future edits.
Usage[edit]
See also[edit]
- {{Japanese names}}