Difference between revisions of "Template:Infobox Japanese name"
(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 = {{ # | + | | 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 = {{ # | + | | header1 = {{ #ifeq: {{{header|}}} | no || Japanese {{ #if: {{{short_header|}}} || name }} }} |
| label2 = Japanese | | label2 = Japanese |
Revision as of 11:13, 2 June 2019
|