Template:Infobox conditional section

From Dwaia Wiki
Jump to navigation Jump to search

How to use:

<table class="infobox">
{{Infobox conditional section | cond = {{PAGENAME}} | title = big info |
{{Infobox conditional caption | Hey this page has a name: {{PAGENAME}} }}
}}
</table>
big info
Hey this page has a name: Infobox conditional section

Becomes:

The parameter "cond" is checked to determine whether or not to show the section. An empty string is processed as false. Additionally, not adding the cond parameter at all is also processed as false. Note that you have to close the double braces to end the section.