Template:Infobox government agency: Difference between revisions

m
Only include infobox on transcluded pages.
(TemplateData)
m (Only include infobox on transcluded pages.)
Line 1: Line 1:
<includeonly>{{#if:{{{remove_whitespace|true}}}| {{#replace:{{{content|}}}|^\s+|\n}} | {{#replace:{{{content|}}}|^\s+|\n}} }}
<onlyinclude><includeonly>{{#if:{{{remove_whitespace|true}}}| {{#replace:{{{content|}}}|^\s+|\n}} | {{#replace:{{{content|}}}|^\s+|\n}} }}
<table class="infobox">
<table class="infobox">
  <caption class="infobox-title" style="font-size: 125%;">{{{title|Infobox Title}}}</caption>
  <caption class="infobox-title" style="font-size: 125%;">{{{title|Infobox Title}}}</caption>
Line 19: Line 19:
   {{#ifeq:{{{budget|}}}|{{{budget}}}| {{#if: {{{budget|}}} | <tr><th scope="row" class="infobox-label">Budget</th><td class="infobox-data">{{{budget}}}</td></tr> | }} |  }}
   {{#ifeq:{{{budget|}}}|{{{budget}}}| {{#if: {{{budget|}}} | <tr><th scope="row" class="infobox-label">Budget</th><td class="infobox-data">{{{budget}}}</td></tr> | }} |  }}
   {{#ifeq:{{{chief1_name|}}}|{{{chief1_name}}}| {{#if: {{{chief1_name|}}} | <tr><th scope="row" class="infobox-label">Agency executive</th><td class="infobox-data">{{{chief1_name}}}</td></tr> | }} |  }}
   {{#ifeq:{{{chief1_name|}}}|{{{chief1_name}}}| {{#if: {{{chief1_name|}}} | <tr><th scope="row" class="infobox-label">Agency executive</th><td class="infobox-data">{{{chief1_name}}}</td></tr> | }} |  }}
</table></includeonly>
</table></onlyinclude></includeonly>
<templatedata>
<templatedata>
{
{