Template:Infobox conditional section

From Dwaia Wiki
Revision as of 14:30, 10 March 2019 by WikiSysop (talk | contribs) (Created page with "<onlyinclude>{{#if:{{{cond|}}}|<tr> <th colspan="2" style="font-size:16px">{{{title}}}</td> </tr>{{{1}}}|}}</onlyinclude><noinclude> How to use: <pre> <table class="infobox">...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.