Difference between revisions of "Template:Infobox Japanese name"
(rv. italic resetting. Other templates should really avoid applying italics to massive sections, which can contain some non-italic text.) |
Dinoguy1000 (talk | contribs) (rm collapsible class if {{{header}}} is defined; allow overriding styles) |
||
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 | ||
− | | bodyclass = collapsible | + | | bodyclass = {{ #if: {{{header|}}} || collapsible }} |
− | | 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 = background-color: #DDF; text-align: left; | + | | headerstyle = {{ #if: {{{headerstyle|}}} | {{{headerstyle}}} | background-color: #DDF; text-align: left; }} |
− | | labelstyle = background-color: #EEF; width: 10em; | + | | labelstyle = {{ #if: {{{labelstyle|}}} | {{{labelstyle}}} | background-color: #EEF; width: 10em; }} |
| datastyle = {{ #ifeq: {{NAMESPACE}} | Template | word-break: break-all; }} | | datastyle = {{ #ifeq: {{NAMESPACE}} | Template | word-break: break-all; }} | ||
Revision as of 23:24, 30 December 2018
|