Template:Infobox: Difference between revisions

From SpottersWiki
Jump to navigation Jump to search
(improving template to standard code, and hiding cells with no information)
(Undo revision 17180 by David)
Tag: Undo
 
(14 intermediate revisions by 4 users not shown)
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" cellpadding="2" cellspacing="2" 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><strong>{{{fullname}}}</strong></i></td>
     <td colspan="2" align="center" bgcolor="#ffffcc"><em><strong>{{{fullname}}}</strong></em></td>
   </tr>
   </tr>
  {{#if:{{{location|}}}
   <tr>
   <tr>
     <td><strong>Location</strong></td>
     <td><strong>Location</strong></td>
     <td>{{{location}}}</td>
     <td>{{{location}}}</td>
   </tr>
   </tr>
  }}
  {{#if:{{{iata|}}}
   <tr>
   <tr>
     <td><strong>IATA code</strong></td>
     <td><strong>IATA code</strong></td>
     <td>{{{iata}}}</td>
     <td>{{{iata}}}</td>
   </tr>
   </tr>
  }}
  {{#if:{{{icao|}}}
   <tr>
   <tr>
     <td><strong>ICAO code</strong></td>
     <td><strong>ICAO code</strong></td>
     <td>{{{icao}}}</td>
     <td>{{{icao}}}</td>
   </tr>
   </tr>
  }}
  {{#if:{{{aptype|}}}
   <tr>
   <tr>
     <td><strong>[[Airport type]]</strong></td>
     <td><strong>[[Airport type]]</strong></td>
     <td>{{{aptype}}}</td>
     <td>{{{aptype}}}</td>
   </tr>
   </tr>
  }}
  {{#if:{{{website|}}}
   <tr>
   <tr>
     <td><strong>Website</strong></td>
     <td><strong>Website</strong></td>
     <td>[{{{website}}} {{{website}}}]</td>
     <td>[{{{website}}} {{{website}}}]</td>
   </tr>
   </tr>
  }}
  {{#if:{{{mapurl|}}}
   <tr>
   <tr>
     <td><strong>Overview map</strong></td>
     <td><strong>Overview map</strong></td>
     <td>[{{{mapurl}}} {{{mapsource}}}]</td>
     <td>[{{{mapurl}}} {{{mapsource}}}]</td>
   </tr>
   </tr>
  }}
   <tr>
   <tr>
     <td colspan="2" align="center"><strong>Communications</strong></td>
     <td colspan="2" align="center"><strong>Communications</strong></td>
   </tr>
   </tr>
  {{#if:{{{atctower|}}}
   <tr>
   <tr>
     <td><strong>Tower</strong></td>
     <td><strong>Tower</strong></td>
     <td>{{{atctower}}}</td>
     <td>{{{atctower}}}</td>
   </tr>
   </tr>
  }}
  {{#if:{{{atcground|}}}
   <tr>
   <tr>
     <td><strong>Ground</strong></td>
     <td><strong>Ground</strong></td>
     <td>{{{atcground}}}</td>
     <td>{{{atcground}}}</td>
   </tr>
   </tr>
  }}
  {{#if:{{{atcclearance|}}}
   <tr>
   <tr>
     <td><strong>Clearance</strong></td>
     <td><strong>Clearance</strong></td>
     <td>{{{atcclearance}}}</td>
     <td>{{{atcclearance}}}</td>
   </tr>
   </tr>
  }}
  {{#if:{{{atcapproach|}}}
   <tr>
   <tr>
     <td><strong>Approach</strong></td>
     <td><strong>Approach</strong></td>
     <td>{{{atcapproach}}}</td>
     <td>{{{atcapproach}}}</td>
   </tr>
   </tr>
  }}
{{#if: {{{atcdeparture|}}} |<tr><td><strong>Departure</strong></td><td>{{{atcdeparture}}}</td></tr> | }}
  {{#if:{{{atcdeparture|}}}
  <tr>
    <td><strong>Departure</strong></td>
    <td>{{{atcdeparture}}}</td>
  </tr>
  }}
  {{#if:{{{atcatis|}}}
   <tr>
   <tr>
     <td><strong>ATIS</strong></td>
     <td><strong>ATIS</strong></td>
     <td>{{{atcatis}}}</td>
     <td>{{{atcatis}}}</td>
   </tr>
   </tr>
  }}
{{#if: {{{atcunicom|}}} |<tr><td><strong>Departure</strong></td><td>{{{atcunicom}}}</td></tr> | }}
  {{#if:{{{atcunicom|}}}
{{#if: {{{atcdirector|}}} |<tr><td><strong>Director</strong></td><td>{{{atcdirector}}}</td></tr> | }}
  <tr>
{{#if: {{{atcradar|}}} |<tr><td><strong>Radar</strong></td><td>{{{atcradar}}}</td></tr> | }}
    <td><strong>CTAF/Unicom</strong></td>
{{#if: {{{psh|}}} |<tr><td colspan="2" align="center">[{{{psh}}} Plane Spotting Hotels guide]</td></tr> | }}
    <td>{{{atcunicom}}}</td>
  </tr>
  }}
</table>
</table>

Latest revision as of 05:50, 17 March 2022

{{{fullname}}}
Location {{{location}}}
IATA code {{{iata}}}
ICAO code {{{icao}}}
Airport type {{{aptype}}}
Website [{{{website}}} {{{website}}}]
Overview map [{{{mapurl}}} {{{mapsource}}}]
Communications
Tower {{{atctower}}}
Ground {{{atcground}}}
Clearance {{{atcclearance}}}
Approach {{{atcapproach}}}
ATIS {{{atcatis}}}