Jump to content

Template:US county navigation box: Difference between revisions

add if statement to hide code for image if not defined
(restore line break in header)
(add if statement to hide code for image if not defined)
Line 11: Line 11:
|abovestyle = text-align: center; {{#if:{{{color|}}}|background:{{{color}}};}}{{#if:{{{text_color|}}}|color:{{{text_color}}};}}
|abovestyle = text-align: center; {{#if:{{{color|}}}|background:{{{color}}};}}{{#if:{{{text_color|}}}|color:{{{text_color}}};}}


|image = [[Image:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{{map_size|}}}px|180px}}|center|{{{map_caption|{{{county|County/Parish}}} map}}}]]
|image = {{#if: {{{image|}}} | [[Image:{{{map_image|}}}|{{#if:{{{map_size|}}}|{{{map_size|}}}px|180px}}|center|{{{map_caption|{{{county|County/Parish}}} map}}}]] |}}
|titleclass=adr
|titleclass=adr
|title = Municipalities and communities of<br clear=left><span class="region" style="font-size:110%; font-weight:bold;">[[{{{county}}}, {{{state}}}|<span {{#if:{{{text_color|}}}|style="color:{{{text_color}}}"}}>{{{county}}}</span>]], [[{{#switch:{{{state}}}
|title = Municipalities and communities of<br clear=left><span class="region" style="font-size:110%; font-weight:bold;">[[{{{county}}}, {{{state}}}|<span {{#if:{{{text_color|}}}|style="color:{{{text_color}}}"}}>{{{county}}}</span>]], [[{{#switch:{{{state}}}
90,866

edits