Template:Infobox/section: Difference between revisions
Jump to navigation
Jump to search
(created section) |
No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude>{{#if: {{{2|}}}|{{Infobox/header|{{{1|}}}|style={{{style|}}}}}{{{2|}}}|<nowiki />}}</onlyinclude> | <onlyinclude>{{#if: {{#invoke: Infobox|makeEmptyPartEmpty|{{{2|}}}}}|{{Infobox/header|{{{1|}}}|style={{{style|}}}}}{{{2|}}}|<nowiki />}}</onlyinclude> | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> |
Revision as of 16:30, 26 October 2024
Documentation
Header 1 with section | |
---|---|
abc | def |
This is like a header except it has a second unnamed parameter where you can put the following contents so that the header only displays when there is actual content after it. Here is an example of the usage, taken from the infobox on the right:
{{Infobox| {{Infobox/section|Header 1 with section|style=background:lightgreen| {{Infobox/row|abc|def}} }} {{Infobox/section|Header 2 with no section| {{Infobox/row|abc|}} <!-- This row has no data so it does not display --> }} }}