Template:Infobox/section: Difference between revisions
Jump to navigation
Jump to search
(created section) |
No edit summary Tag: 2017 source edit |
||
(One intermediate revision by one other user not shown) | |||
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>[[Category:Infobox templates|*]] | ||
{{Documentation}}</noinclude> |
Latest revision as of 06:35, 15 December 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 --> }} }}