Template:Infobox: Difference between revisions

Undo revision 12310 by Michael Harris, still fixing
(improving template to standard code, and hiding cells with no information)
(Undo revision 12310 by Michael Harris, still fixing)
Line 1: Line 1:
<table border="1" cellpadding="2" cellspacing="2" class="toccolours" style="float: right; width: 25em; margin: 0 0 1em 1em; border-collapse: collapse; font-size: 95%; clear: right;">
<table border="1" class="toccolours" style="float: right; width: 25em; margin: 0 0 1em 1em; border-collapse: collapse; font-size: 95%; clear: right;">
  <tr>
<tr><td colspan="2" align="center" bgcolor="#ffffcc"><i><b>{{{fullname}}}</b></i></td></tr>
    <td colspan="2" align="center" bgcolor="#ffffcc"><i><strong>{{{fullname}}}</strong></i></td>
<tr><td><b>Location</b></td><td>{{{location}}}</td></tr>
  </tr>
<tr><td><b>IATA code</b></td><td>{{{iata}}}</td></tr>
  {{#if:{{{location|}}}
<tr><td><b>ICAO code</b></td><td>{{{icao}}}</td></tr>
  <tr>
<tr><td><b>[[Airport type]]</b></td><td>{{{aptype}}}</td></tr>
    <td><strong>Location</strong></td>
<tr><td><b>Website</b></td><td>[{{{website}}} {{{website}}}]</td></tr>
    <td>{{{location}}}</td>
<tr><td><b>Overview map</b></td><td>[{{{mapurl}}} {{{mapsource}}}]</td></tr>
  </tr>
<tr><td colspan="2" align="center"><b>Communications</b></td></tr>
  }}
<tr><td><b>Tower</b></td><td>{{{atctower}}}</td></tr>
  {{#if:{{{iata|}}}
<tr><td><b>Ground</b></td><td>{{{atcground}}}</td></tr>
  <tr>
<tr><td><b>Clearance</b></td><td>{{{atcclearance}}}</td></tr>
    <td><strong>IATA code</strong></td>
<tr><td><b>Approach</b></td><td>{{{atcapproach}}}</td></tr>
    <td>{{{iata}}}</td>
<tr><td><b>Departure</b></td><td>{{{atcdeparture}}}</td></tr>
  </tr>
<tr><td><b>ATIS</b></td><td>{{{atcatis}}}</td></tr>
  }}
<tr><td><b>CTAF/Unicom</b></td><td>{{{atcunicom}}}</td></tr>
  {{#if:{{{icao|}}}
  <tr>
    <td><strong>ICAO code</strong></td>
    <td>{{{icao}}}</td>
  </tr>
  }}
  {{#if:{{{aptype|}}}
  <tr>
    <td><strong>[[Airport type]]</strong></td>
    <td>{{{aptype}}}</td>
  </tr>
  }}
  {{#if:{{{website|}}}
  <tr>
    <td><strong>Website</strong></td>
    <td>[{{{website}}} {{{website}}}]</td>
  </tr>
  }}
  {{#if:{{{mapurl|}}}
  <tr>
    <td><strong>Overview map</strong></td>
    <td>[{{{mapurl}}} {{{mapsource}}}]</td>
  </tr>
  }}
  <tr>
    <td colspan="2" align="center"><strong>Communications</strong></td>
  </tr>
  {{#if:{{{atctower|}}}
  <tr>
    <td><strong>Tower</strong></td>
    <td>{{{atctower}}}</td>
  </tr>
  }}
  {{#if:{{{atcground|}}}
  <tr>
    <td><strong>Ground</strong></td>
    <td>{{{atcground}}}</td>
  </tr>
  }}
  {{#if:{{{atcclearance|}}}
  <tr>
    <td><strong>Clearance</strong></td>
    <td>{{{atcclearance}}}</td>
  </tr>
  }}
  {{#if:{{{atcapproach|}}}
  <tr>
    <td><strong>Approach</strong></td>
    <td>{{{atcapproach}}}</td>
  </tr>
  }}
  {{#if:{{{atcdeparture|}}}
  <tr>
    <td><strong>Departure</strong></td>
    <td>{{{atcdeparture}}}</td>
  </tr>
  }}
  {{#if:{{{atcatis|}}}
  <tr>
    <td><strong>ATIS</strong></td>
    <td>{{{atcatis}}}</td>
  </tr>
  }}
  {{#if:{{{atcunicom|}}}
  <tr>
    <td><strong>CTAF/Unicom</strong></td>
    <td>{{{atcunicom}}}</td>
  </tr>
  }}
</table>
</table>