Difference between revisions of "Template:Infobox Japanese name"

From Yugipedia
Jump to: navigation, search
(Allow italics in the translated name.)
(While "#if: {{{header|}}}" sufficiently achieves what the parameter was created for, its purpose is not intuitive and reads like it has the opposite meaning. "child = yes" should only be applied when the header is turned off. Adding "bodyclass" parameter.)
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|data1=</noinclude>{{Infobox
   | child      = yes
+
   | child      = {{ #ifeq: {{{header|}}} | no | yes }}
   | bodyclass  = {{ #if: {{{header|}}} || collapsible }}
+
   | 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}}} | background-color: #DDF; text-align: left; }}
 
   | headerstyle = {{ #if: {{{headerstyle|}}} | {{{headerstyle}}} | background-color: #DDF; text-align: left; }}
Line 8: Line 8:
 
   | datastyle  = {{ #ifeq: {{NAMESPACE}} | Template | word-break: break-all; }}
 
   | datastyle  = {{ #ifeq: {{NAMESPACE}} | Template | word-break: break-all; }}
  
   | header1    = {{ #if: {{{header|}}} || Japanese {{ #if: {{{short_header|}}} || name }} }}
+
   | header1    = {{ #ifeq: {{{header|}}} | no || Japanese {{ #if: {{{short_header|}}} || name }} }}
  
 
   | label2      = Japanese
 
   | label2      = Japanese

Revision as of 11:13, 2 June 2019

Japanese name
Japanese{{{ja_name}}}
Base rōmaji{{{base_romaji_name}}}
Base translated{{{ja_base_trans_name}}}
Rōmaji{{{romaji_name}}}
Translated{{{ja_trans_name}}}